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.
Are you using FoxyCart version 2.0? Due to a complete revamp of the javascript in version 2.0, none of the below snippets will work in the new version. See this page for snippets for 2.0.
Shipping Snippets
Versions 0.7.1 and older: 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. A fix is in place for versions 0.7.2 and newer.
Custom shipping snippets do not work for subscriptions. The reason for this is because the snippets are done as Javascript modifications and run in the browser, while subscriptions run completely on the server side and never touch the browser. Subscriptions will always calculate shipping on the server side based on how the category is configured.
Filtered by versions='0.7.1' & category='Misc cart and checkout'
Filtered by versions='0.7.1' & category='Misc cart and checkout'
Tax Tips and Tricks
Filtered by versions='0.7.1' & category='Misc cart and checkout'
Miscellaneous Cart and Checkout
Filtered by versions='0.7.1' & category='Misc 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 |
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
Filtered by versions='0.7.1' & category='Misc cart and checkout'
Receipt
Filtered by versions='0.7.1' & category='Misc cart and checkout'
Multiple Store / Session / Cookie Tweaks
Filtered by versions='0.7.1' & category='Misc cart and checkout'
Filter by Category |
Filter by Versions |
|
|