# Weglot Integration

&#x20;**Weglot** is a SaaS tech start-up that helps businesses turn their websites multilingual. To successfully integrate Weglot with the Beans applications, you need to ensure that you have installed the app in your Shopify store and the language switch button appears in your store.\
\
Here is the Weglot guide to set it up in your Shopify store:\
<https://support.weglot.com/article/84-shopify-integration-setup>

After you have successfully installed the app, you need to go to the Weglot app settings, To do this:\
Go to the App section of the Shopify Admin and click on Weglot.

![click on weglot](https://lh4.googleusercontent.com/MmK0SRsZ2ifAU8Umlv55D0IQN3CTRTIftQl4ovctXjPlYDjTfBNBSW_UODhbt5DOAiECLcDNvMZnh8Hqyv2ke3rnHkmWz__kIkOOqd3c_2Np29JJg9SuI1iUfGxUe-CYC0_vsB_w)

When you click on the Weglot app other options will appear, you need to scroll down through the other options, there you will see the option labeled Dynamic elements.

![Here you will add the referral program properties](https://lh6.googleusercontent.com/63HavWe3AWwW18py0ntmk9rJQKSmZ-HFEQ3zV1r3Fpm3JUURIEZMoXKUA9z-iASadSJw69mWhCS9RSCvgCkmyYZ7LOCFBrMsTRTguWATgM5QJpGJC7LXESiWRPbLcw4SE_ZdSED1)

### To Integrate With Liana

Add the rewards program page container id (#liana-rewards-page). In the Input labeled Dynamic elements.\
For Liana, you will be adding: **#liana-rewards-page**<br>

![](https://lh6.googleusercontent.com/TsvxKkNtUDt0m8ajSvQ_mrUDFbn5om5PWn64iMjzjgl2U_CLfl2WMIdB3H4Bfr6E2BUihIib5gtDNIDRocYFLAuVj9jcuXVXo_kzT_JHjjuKyvVecFRTdddxJNR1xksG-0xtWV3q)

Click On Save.

### To Integrate With Bamboo

Add the referral program page container id (#bamboo-referral-page)  and the Bamboo popup container id (#bamboo-popup-container) in the dynamic element section, You need to add them individually.\
For Bamboo you will be adding:\
\&#xNAN;**#bamboo-referral-page**\
**#bamboo-popup-container**

![](https://lh3.googleusercontent.com/BZv63MsR9bjd8bg11sKO3_XWe9ZAfdmlGbETcNAAHZdwmqHZqekWCIxRWTcwOkKIgSJyYxro0yKd1Jq3VriXGsKRrWkSY5TbxEDP-yX5gqklArNCTdmIjpr8e73AGZ8aqCEZ8MBV)

Click On Save.

### To Integrate With Arrow

Add arrow button class (.beans-arrow) and arrow popup class (.beans-arrow-popup).\
For Arrow you will be adding:\
\&#xNAN;**.beans-arrow**\
**.beans-arrow-popup**<br>

![](https://lh3.googleusercontent.com/kVLl28PSWsaLfsbtzY34uWgPl9Hpw8AgutAPh40FghVup5BoJSAsv9K4dlf7-C6SRw4d0dN3kMWCGdImFw8V6KFbIpi35oHGNT5C0hI2tG2pCycug-DKFiHmgu5nGSCzBLBn0l97)

Click On Save.\
\
To test if the Weglot integration works for Arrow\
\
Go to your store Login/Register page and switch the language. Confirm that the Connect with Facebook button text is translated to the currently selected language.

For the translations to be 100% effective you need to ensure that you activate  English as your store language in the admin interface. With this, the integration will work as expected.<br>

![](https://2594115985-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrUrAjOLzSq0l5p3itH%2F-M6EnsYGL-VW7xgIaBI8%2F-M6EoaqFxus0QoEp-WOC%2Fimage.png?alt=media\&token=71bd7eb6-7edf-408b-8f0d-8cda74d60676)

## Integrating Weglot On Shopify Checkout Page

The Poppy app has a pop-up that appears on the checkout page, In order for Weglot to be able to translate the Popup that appears on the checkout (thank\_you) page, A Weglot script must be loaded on that page.\
To do so, first obtain the JavaScript code snippet by following this guide :\
<https://weglot.com/documentation/setup-guides/generic-setup-guide/#js_inte>\ <br>

Here is a video explaining how you can get the JavaScript code snippet from Weglot:

{% embed url="<https://www.loom.com/share/3190535643a94535a843dbf28f7d2ddc>" %}

After you have successfully gotten the code snippet you need to add it to the checkout page. To do this go to the checkout page located in the settings section of the Shopify admin.\
Here is a direct link: [ https://www.shopify.com/admin/settings/checkout ](https://www.shopify.com/admin/settings/checkout)<br>

![](https://lh6.googleusercontent.com/DXc-KAv7XNklVeoQyW_gBW4sSg_f6ieyQDmowTy_EtKqWbYu-X2tF4f6EBAKUF5xFGhv1NKwCwHWq9XaF3_6zg9BdL3p2ciQ31OnprpU_MdqFi4oHBko2tlQB3OGNr8GIcPsxQb5)

Scroll down to the Order processing section, in the input labeled **Additional scripts,** paste the Weglot snippet as shown in the below screenshot.

![](https://lh6.googleusercontent.com/V2hXvA9rnVvZ9qo5n1iazNQwiJgup3ugckcYrwaa4Ssm3myQ-lwyurgOmKl7mXVkt1TBxXiPTOGkI4EOPPoPVFTWCpsbaBauOmo5-VWkhQ2ZmUARd8MuCs2_1QCIeY_vtHxrQFqi)

Click Save.

Here is a video showing how you can add the code snippet to the Shopify checkout page.\
\
<https://www.loom.com/share/eab2ddeea1624bf487a0e15817e53aff>\
\
After you have successfully added the coding snippet on the Checkout page the Popup will be translated to the language you select.
