Examples

Liquid features usage examples

Create new currency switcher

        
            
        
    

Overriding localized page title and description

Make global overrides in "ls-overrides.liquid" snippet.

        
            
        
    

Add language value for product property

        
            
        
    

Use sections only for certain language

        
            
        
    

Show content only for default language

        
            
        
    

Include different snippets per each language

        
            
        
    

Replace product image output with localized version

Default usage

        
            
        
    

Localization

        
            
        
    

Use image ALT localization

Default usage

        
            
        
    

Localization

        
            
        
    

Load Facebook SDK with localization parameter

        
{%- assign FB_LANGUAGE = LS_LANGUAGE | replace: "-", "_" -%}

<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "https://connect.facebook.net/{{ FB_LANGUAGE }}/sdk.js#xfbml=1&version=v3.0";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
        
    

Start your 3-day free trial today!

Try LangShop free for 3 days by entering your domain of Shopify store.