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 1 found this helpful