Set Zakeke to work properly with a multilanguage store

If you have a multilanguage store, please make sure to insert the following script inside the head tag of the theme.liquid template:

<script>
      window.zakekeUrl = '{{ request.locale.root_url }}/apps/zakeke'.replace('//', '/');
        window.zakekeShopLocales = [
      {% for locale in shop.published_locales %}
        {
          iso_code: {{ locale.iso_code | json }},
          root_url: {{ locale.root_url | json }},
          primary: {{ locale.primary | json }}
        },
        {% endfor %}
      ];
</script>
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.