Weglot ‑ Translate Your Store
Sam Forde avatar
Written by Sam Forde
Updated over a week ago

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

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.

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 | Zapiet - Pickup + Delivery -->  {% include 'storepickup' %}  <!-- Zapiet | Zapiet - Pickup + Delivery -->

Replace the code above with the code below:

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

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


  • 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?