This is an old revision of the document!
Table of Contents
Advanced Code Snippets with Reference to Forum Posts
Please note that advanced manipulation of the cart or checkout via javascript is not supported by FoxyCart, and you can break things causing lost orders, errors, and global catastrophe. The links here are provided for reference, and they very likely will not work without tinkering requiring at least intermediate javascript knowledge.
Shipping Snippets
Note that applying javascript shipping modifications using either live or flat rates where you are setting custom values has been found to not work as expected for subscription based products where you need the shipping to apply to each subscription renewal. We are currently working on a fix for this issue for version 0.7.2+
"Add to Cart" Form Snippets
Tax Tips and Tricks
Name | Link | Supported versions |
---|---|---|
Tax-Inclusive prices for Australia, UK VAT, etc. | tax_inclusive_prices | |
More Tax-inclusive prices, perhaps a better solution. | more_tax_inclusive_prices | 060 |
Miscellaneous Cart and Checkout
Name | Link | Supported versions |
---|---|---|
Showing the "minicart" on cart and checkout | showing_the_mini_cart | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0 |
Product images in the cart | product_images_in_the_cart | 0.6.0 |
Removing PayPal from the Cart to force customers to FC checkout first | removing_paypal_from_the_cart | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1, 2.0 |
Product Bundles/Addons | product_bundles_addons | 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Product Upselling on the cart/checkout | product_upselling | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0 |
Reverse Order of Items in Cart | reverse_cart_items | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0 |
Creating an Add To Cart link based on an existing cart session | creating_add_to_cart_link_from_existing_cart_session | 0.7.0, 0.7.1, 0.7.2, 1.0 |
Checkout
Name | Link | Supported versions |
---|---|---|
Adding an email confirmation box | adding_an_email_confirmation_box | |
Pre-populating checkout values, without invoking "single-use customers" | pre_populating_checkout_values | |
Adding an email confirmation field to the checkout | adding_email_confirmation_field_to_the_checkout | |
Adding a coupon code field to the checkout | adding_a_coupon_code_field | |
Adding a gift-wrapping checkbox to the checkout. | adding_gift_wrapping_checkbox | |
Making shipping address fields mirror billing fields | making_shipping_address_fields_mirror_billing_fields | 070 |
Displaying PO payment option | displaying_po_payment_option | |
Making the the shipping and payment fields hidden until a valid selection is made for guest/login step of checkout | making_shipping_and_payment_fields_hidden | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0 |
Hiding the Purchase Order payment option | hiding_po_payment_option | 0.7.0, 0.7.1, 0.7.2, 1.0 |
Making checkout fields required | making_checkout_fields_required | 0.6.0, 0.7.1, 0.7.2, 1.0 |
Performing actions when customer has logged in on the checkout | performing_actions_when_customer_logged_in_on_checkout | 0.7.0, 0.7.1, 0.7.2, 1.0 |
Override Sales Tax During Checkout | override-sales-tax-during-checkout | 0.7.2 |
Smarty Streets Address Validation | smarty-streets-address-validation | 0.7.2, 1.0 |
Age Validation For Alcohol Purchase | age-validation-for-alcohol-purchase | 1.0, 1.1 |
Adding a "Consent to safe data transfer" checkbox to the checkout | adding_a_consent_to_data_transfer_checkbox | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Receipt
Name | Link | Supported versions |
---|---|---|
Print CSS on the receipt | print_css_on_the_receipt | |
Display Conditional Content | conditional_content | 2.0 |
Multiple Store / Session / Cookie Tweaks
Name | Link | Supported versions |
---|---|---|
Two stores, one URL | two_stores_one_url | |
Filter by Category | Filter by Versions |
---|---|
|
|