Bundle Theme Settings
Our Bundle app has some settings that are not present in the app admin, these settings are code related settings to change specific behaviors.
Those settings can be found on your theme files, in the file Snippets/revy-bundle-script.liquid
An example of these settings are:
<script> window.revyBundleThemeSettings = { cart: {{ cart | json }}, locale: '{{ request.locale.iso_code }}', reloadOnLineItemProperties: true, disableReloadOnCartUpdate: true }; </script>
Theme Settings List
cart
The cart option is used to boost the performance of the app, making it load faster on your theme, we recommend shops to use this option. The value of this option should be your liquid cart converted to json(see below).
Possible values: {{ cart | json }}
disableReloadOnCartUpdate
Our Bundle app has a feature that detect cart updates on the cart page and reloads the page automatically if a cart change is detected, this option can be used to disable this feature. Some themes have some codes that update the cart on every page load, on this cases a infinite page reloading can happen, in those cases we do recommend to enable this option(disable this feature).
Possible values: true/false
locale
This option is used just in shops that are using Bundle discount codes, for most of the shops this is not used, but if using discount codes this option value will be used to redirect the customer to checkout and use this value as the locale parameter, eg: redirect to "/checkout?locale=en". This option is used to translate the Shopify checkout into some language.
Possible values: ISO Code of a country
reloadOnLineItemProperties
Option used just if the shop is using the ScriptEditor Integration(Exclusive for Shopify Plus shops), this option is required to setup the integration properly.
Possible values: true/false
If you have any questions or want some help with the Bundle Theme Settings please ping us at [email protected] and we will be happy to help ;)