FunnelKit Documentation
Get unstuck with our helpful reference material

Setup Funnels with Polylang

If your business caters to different countries, you can set up a multilingual website with Polylang.

FunnelKit integrates with Polylang to help you create sales funnels in different languages for your users.

This way, a user from a particular country will only be able to view their regional-translated pages.

It’ll help you build revenue-boosting funnels in various languages to serve your users internationally.

In this document, we’ll demonstrate how you can set up different language-translated sales funnels with Polylang using FunnelKit.

Step 1: Setup Polylang for different languages

Go to Polylang > Setup

From there, add different languages for your store.

Make sure to enable the translation in the next step.

Once you've completed the setup, click on Finish.

Step 2: Create sales funnels for each language

Here, we’ll create two different store checkouts for each language.

First, select the language and click on Add New Funnel to start creating your sales funnels.

To identify the language of your sales funnel, we advise you to add the language name next to the name of your funnel.

As you can see, we have created two store checkouts here:

Add the rest of the steps for each language to your funnel.

If you’re new to FunnelKit, click here to learn more about creating a sales funnel for your website.

As you notice, we have added the Checkout, Order Bump, Upsell and Thank you page for each language.

Step 3: Add the custom snippet to map each language with your checkout page

Install and activate the Code Snippets plugin on your website.

Next, go to Snippets > Add New from your WordPress menu.

Add the snippet code provided below and map your checkout page ID for separate languages. Click on Activate when done.

Please note that this is the snippet code you've to insert and activate:

Let’s first understand a few things here:

14 is the checkout page ID of our base language; while 57 is for the Spanish (es) checkout page.

For our snippet, we can modify this line as:

$map_checkout = [
      '15' => ['es_ES' => 57]

If you have more languages, you can modify the code as ['de_DE' =>58, 'fr_FR' =>59].

You can find your Checkout page ID by clicking on ‘Edit’ next to your checkout page in your funnel.

Once you have successfully mapped the different languages of your checkout pages in the snippet, you’re all set!

Now when a user enters this funnel from a specific region and goes to the checkout page, FunnelKit will automatically load the corresponding translated checkout page.

For users in Spain, it’ll show the Spanish checkout ID template, and so on.

This is how you can create sales funnels in different languages with WPML using FunnelKit.