Integrating Weglot with Store Pickup + Delivery will depend on the widget version your store is on.

Which version of the widget am I using?


Online store 2.0

If you are using our widget on Online store 2.0, no additional steps are needed.

Versions 7.1.2. and older

If you're on version 7.1.2., follow the steps below.

If you're on a version older than 7.1.2., please contact us so we can make sure you are on the newest version of our app.

Please reach out to us at [email protected]—we’ll be happy to implement this for you. Only proceed if you are comfortable editing code yourself.

Step 1

Download storepickup-weglot.liquid file below.

Download storepickup-weglot.liquid file

Step 2

Create a snippet file called storepickup-weglot.liquid. Copy and paste the content from the storepickup-weglot.liquid file you downloaded in Step 1.

Step 3

Within the storepickup-weglot.liquid search for the code below (lines 43 and 44)

if (lang == 'X') {cached_config = 
{{ shop.metafields.zapiet['settings.X'] }};

Replace X with the with the destination language locale code.

Example: if your store's destination language is French, the "X" argument will be replaced by "fr":

if (lang == 'fr') {cached_config = 
{{ shop.metafields.zapiet['settings.fr'] }};

If you're not sure what your locale code is, switch to the destination language on your online store. Then, type Weglot.getCurrentLang(); in the console.

Step 4

Open Layout/theme.liquid and search for:

<!-- Zapiet | Store Pickup + Delivery -->  
{% include 'storepickup' %}
<!-- Zapiet | Store Pickup + Delivery -->

Replace the code above with the code below:

<!-- Zapiet | Store Pickup + Delivery   Custom version of storepickup.liquid to support latest version of Weglot, by Zapiet --> 
{% include 'storepickup-weglot' %}
<!-- Zapiet | Store Pickup + Delivery -->

The widget language should now match the destination language by Weglot.


Considerations

  • The version of the widget in this file is 7.1.2. Should you need to update the version, please contact us at [email protected].

Did this answer your question?