Documentation You are here: start ยป snippets

Snippets

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

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.

Filtered by category=Add to cart form

NameLinkSupported versions
Nothing found

"Add to Cart" Form Snippets

Filtered by category=Add to cart form

NameLinkSupported versions
Add To Cart Form Field Validationform_field_validation0.7.0, 0.7.1, 0.7.2, 1.0, 1.1
Add products to the cart without Colorboxadd_products_without_colorbox0.7.0, 0.7.1, 0.7.2, 1.0, 1.1
Automatically adding a coupon codeautomatically_adding_coupon_code0.6.0, 0.7.2, 1.0, 1.1
Form with radio options for price with an option for user to enter any amount they wantform_with_radio_options_for_price_with_an_option_to_enter_any_amount0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1
Restore a Cart, Persistent Cartpersistent_cart_restore_cart1.0, 1.1
Set the sub start/end date to a relative future dateset_sub_start_end_date_to_future_date0.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 datesset_sub_startdate_to_closest_shipment_date0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1
Updating a total element to reflect selected price modifiers in your pageupdating_total_element_to_reflect_selected_price_modifiers_in_page0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1
Using a calendar date-picker to add dates to products.using_calendar_date_picker0.6.0
Very, very large form with lots of datavery_large_form_with_lots_of_data0.6.0
 

Tax Tips and Tricks

Filtered by category=Add to cart form

NameLinkSupported versions
Nothing found

Miscellaneous Cart and Checkout

Filtered by category=Add to cart form

NameLinkSupported versions
Nothing found

Checkout

Filtered by category=Add to cart form

NameLinkSupported versions
Nothing found

Receipt

Filtered by category=Add to cart form

NameLinkSupported versions
Nothing found

Multiple Store / Session / Cookie Tweaks

Site Tools