settings
You can access the theme's global settings via the theme.config.json file.
Example
How the shopping cart opens after adding a purchase
By determining the globally configured cart_add_type to execute different cart opening methods, it is convenient for 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?