settings
The theme’s global settings. The configuration items it contains are defined by the theme’s theme.config.json file.
Example
The following example dynamically triggers different cart opening methods after products are added, based on the different values of the cart_add_type field in the global theme settings. This allows you to use the same theme code to meet different interaction requirements.
{{#if settings.cart_add_type == "drawer"}}
Open the drawer cart.
{{#else/}}
Jump to cart page.
{{/if}}
Was this article helpful to you?