Table of Contents
Advanced Code Snippets with Reference to Forum Posts
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.2'
"Add to Cart" Form Snippets
Filtered by versions='0.7.2'
Name | Link | ↓ Supported versions |
---|---|---|
Automatically adding a coupon code | automatically_adding_coupon_code | 0.6.0, 0.7.2, 1.0, 1.1 |
Updating a total element to reflect selected price modifiers in your page | updating_total_element_to_reflect_selected_price_modifiers_in_page | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Form with radio options for price with an option for user to enter any amount they want | form_with_radio_options_for_price_with_an_option_to_enter_any_amount | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Set the sub_startdate to the next closest date from a group of dates | set_sub_startdate_to_closest_shipment_date | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Add products to the cart without Colorbox | add_products_without_colorbox | 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Add To Cart Form Field Validation | form_field_validation | 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Set the sub start/end date to a relative future date | set_sub_start_end_date_to_future_date | 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
Tax Tips and Tricks
Filtered by versions='0.7.2'
Name | Link | ↓ Supported versions |
---|---|---|
Nothing found |
Miscellaneous Cart and Checkout
Filtered by versions='0.7.2'
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 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 |
Product Bundles/Addons | product_bundles_addons | 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 |
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 |
Checkout
Filtered by versions='0.7.2'
Name | Link | ↓ Supported versions |
---|---|---|
Override Sales Tax During Checkout | override-sales-tax-during-checkout | 0.7.2 |
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 |
Smarty Streets Address Validation | smarty-streets-address-validation | 0.7.2, 1.0 |
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
Filtered by versions='0.7.2'
Name | Link | ↓ Supported versions |
---|---|---|
Nothing found |
Multiple Store / Session / Cookie Tweaks
Filtered by versions='0.7.2'
Name | Link | ↓ Supported versions |
---|---|---|
Nothing found |
Filter by Category | Filter by Versions |
---|---|
|
|