Config
spiffy.config(configObj)
Modify the global Spiffy.js config before spiffy.load()
configObj
- object of config propertieshideSummary:
false
- Hide/show the order summary on checkoutshideCoupon:
false
- Hide/show coupon field on checkoutshideSidebar:
true
- Hide/show sidebar content on checkoutshideHeader:
true
- Hide/show page header on checkoutshideFooter:
true
- Hide/show page footer on checkoutshidePortalCustomer:
false
- Hide/show logged in customer details in portalhidePortalHeader:
false
- Hide/show logo and title header in portalhidePortalSubscriptions:
false
- Hide/show subscription management in portalhidePortalPaymentPlans:
false
- Hide/show payment plan management in portalhidePortalToggle:
false
- Hide/show the button to toggle between customer/affiliate portalhidePortalOrders:
false
- Hide/show list of orders in portalhidePortalPasswordChange:
false
- Hide/show password change option in portalhidePortalLogout:
false
- Hide/show logout button in portalpageTakeover:
true
- Enable/disable full-page for checkouts upsells/thank you pagesupsellPageTakeover:
true
- Enable/disable full-page for checkouts upsell pagesthanksPageTakeover:
true
- Enable/disable full-page for checkouts thank you pagepopupEnabled:
false
- Enable/disable opening Spiffy checkout links in popup modalpopupPrefetch:
true
- Enable/disable prefetching popup when link is moused over
compatibilityMode:
true
- Enable/disable the use of<div>
's for componentstrackingEnabled:
true
- Enable/disable the tracking/analytics featuresautoIdentify:
true
- Uses form submissions to improve customer recognition and affiliate trackingpreserveUrlParams:
false
- Append the current url's parameters to any links on the page. Useful for passing affiliate tracking or UTM data to subsequent pageslinkExclusions
:[]
- Array of strings of element selectors that should be ignored for link modification (preserve params, etc.). This is useful for issues with SpiffyJS messing with other scripts on your site.
Example Config
This should be added before spiffy.load()
in your SpiffyJS code.
Last updated