Documentation You are here: start » v » 0.6.0 » docs » checkout » javascript

Checkout JavaScript, Events, & Advanced Helper Functions

Please note that the functionality listed on this page is for advanced users only, and due to the nature of customizations that make use of this code we cannot offer support in our forum. That's not to say “Don't ask,” but if you don't have a really solid javascript foundation you probably don't want to attempt anything found on this page.

Also note that the functions described on this page may not be available in all versions of FoxyCart. When in doubt, use the latest version and compare from there.

Helper Functions

''FC.checkout.overload()''

The FC.checkout.overload() function allows you to call other functions before or after any javascript function on the checkout page. It can be called like this:

FC.checkout.overload("existingFoxyCartFunction", "functionToRunBefore", "functionToRunAfter");
FC.checkout.overload("existingFoxyCartFunction2", null, "functionToRunAfter");

''FC.checkout.override()''

The FC.checkout.override() function allows you to redefine any existing FoxyCart checkout javascript function.

FC.checkout.override("existingFoxyCartFunction", "yourNewCustomFunction");

JavaScript Functions & Events on the Checkout

This list is incomplete, and is provided for reference only.

  • checkEmail
  • checkLogin
  • updateTaxes
  • updateCodes
  • updateErrorDisplay
  • updatePrice
  • updatePriceDisplay
  • updateShipping
  • updateShipTo
  • updateTaxDisplay
  • validateAndSubmit

Site Tools