Using Clerk.io with WPML in WooCommerce

Clerk.io can be integrated in several languages that share the same WooCommerce backend

When using WPML in WooCommerce, you should be able to differentiate your languages by URL, like this:

If you have unique URLs like this, you can extend the WooCommerce plugin to support WPML.

It is also ok to define the language via the lang paramter. Eg.

1. Create Stores

The easiest way to implement Clerk.io in multiple domains in standard setups is by creating a separate Store for each domain in my.clerk.io.

This way, you can separate products, sales, currencies etc. to keep track of each domain.

1. Start by creating your main Store and follow the Setup Guide to connect your Store to Clerk.io, and choose the Recommendations and/or Search Results you that you want to display on your webshop.

2. When you are done with the initial setup, go back to the start page of my.clerk.io (by clicking the Clerk.io logo in the upper left side corner of the side-menu) and then click "+ Add new store" the last option of the scroll down list (generally under you the existing store(s) and your company name):

3. On the Add New Store page, click Advanced to see all settings.

4. Fill in the details of your webshop, and choose your main Store from the Copy Content From Existing Store dropdown, then click Add Store.

This will carry over the Content and Designs from your main Store.

Remember to translate Headlines, in Content-> Edit -> Select Design to the right language as well.

2. Install and Configure

Official support for WPML has been added to the Clerk.io WooCommerce Extension, which means that as long as you use that version or a newer one, WPML should be supported.

In the settings panel for woocommerce you will see the settings as normal. If WPML is active and configured on your WordPress site, you will see Multi Language Scope with the current language towards the top of the settings page.

In order to swap the language simply use the selector on the top panel. You should select the language you wish to configure Clerk for, and provide your desired settings. Repeat this for each language.

Note that selecting ‘All Languages’ from this dropdown, is not advised when saving your configuration, since it will only save your settings as a fallback only.

3. Sync your domains

Once you have extended the plugin, you can now sync each of your Stores with their language domain.

As you have already installed the extension you can skip the first step directly start configuring it and syncing data.

8. When the Sync has finished, your domain is ready and using the same setup as your main Store.