---
title: "settings"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/object/settings'
  md: 'https://developer.shopline.com/docs/sline/object/settings.md'
---

# settings


    The theme’s global settings. The configuration items it contains are defined by the theme’s [theme.config.json](https://developer.shopline.com/docs/online-store-3-0-themes/theme-structure/theme-config-json.md) 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.


            

            
<SlineExample path={''} objects={ 
    [""] 
}>
```sline
{{#if settings.cart_add_type == "drawer"}}
Open the drawer cart.
{{#else/}}
Jump to cart page.
{{/if}}
```
</SlineExample>
            
        
    
