Skip to main content
All CollectionsThird-Party App IntegrationMulti-Currencies
Auto Currency Switcher Integration Guide
Auto Currency Switcher Integration Guide
Thomas Ta avatar
Written by Thomas Ta
Updated over 5 months ago

πŸ“– Auto Currency Converter app helps you target international customers all over the world and increase your global sales. Here is our guide for integration between Auto Currency Converter and Boost AI Search & Discovery app.


About Auto Currency Switcher

App Information

Auto Currency Switcher Integration Function

  • Display the home currency of price on the product items.

πŸ’ͺ When prices are converted using currency converter apps, the resulting values may include several decimal places. To enhance readability and maintain consistency, we round the prices to a more concise format.

For example, a converted price like $3.134223 may be rounded to $3.13.


How to integrate Auto Currency Switcher with Boost AI Search & Discovery

⚠️ This feature only works with Boost AI Search & Discovery V2 and above. To find out which version of our app your store's current theme is installed with, please follow this article.

1. From your Shopify admin, go to Online Store > Themes.

2. Find the theme you'd like to integrate the app and click Actions (β‹―) > Edit code.

From the 3rd step, it will be different for each version, select one of the options below for the app version that your theme is installed with (if you have not known it, yet, please follow this article to find out):

V2 or V3 or Turbo.

V2

3. In Asset folder, find boost-pfs-filter.js file.


​

4. In the file, search for this line of code:

Filter.prototype.afterRender

5. Copy and paste this snippet code below into the Filter.prototype.afterRender function (between the { }):

if ((typeof Currency !== "undefined" && typeof Currency.moneyFormats !== "undefined") || 
(typeof ACSCurrency !== "undefined" && typeof ACSCurrency.moneyFormats !== "undefined") &&
typeof mlvedaload !== "undefined") {
mlvedaload();
}

6. Back to Asset folder, find boost-pfs-instant-search.js file.

7. In the file, search for this line of code:

InstantSearchResult.prototype.afterRender

8

Copy and paste this snippet code below into the InstantSearchResult.prototype.afterRender function (between the { })

InstantSearchResult.prototype.afterRender = function() {
if ((typeof Currency !== "undefined" && typeof Currency.moneyFormats !== "undefined") ||
(typeof ACSCurrency !== "undefined" && typeof ACSCurrency.moneyFormats !== "undefined") &&
typeof mlvedaload !== "undefined") {
mlvedaload();
}
};

9. Click Save and you're all set!

V3

3. In Asset folder, find this file named: boost-sd-custom.js.

4. Add the code snippet below to the boost-sd-custom.js file:

if (window.boostSDAppConfig) {
window.boostSDAppConfig.integration = Object.assign(
{ currencies: 'auto' },
window.boostSDAppConfig.integration || {}
);
}​

5. Click Save and you're all set!

⚠️Due to the exchange rate differences between the currencies, it is expected to be minor discrepancy in the product price after the conversion. Therefore, the Price range slider & the search results (Filter) for product prices may vary for different currencies but very insignificantly.

Turbo

1. Go to Boost AI Search & Discovery > Integration > Shopify Integration > Select your preferred theme > Edit code.

image.png

2. Locate this file customization.js & add the following code at the end of it:

if (window.boostWidgetIntegration) {
window.boostWidgetIntegration.integration = Object.assign({
currency: 'auto'
}, window.boostWidgetIntegration.integration || {});
}

3. Click Save.

If you encounter any issues during the integration process, please don't hesitate to contact our support team for further assistance at [email protected].

Did this answer your question?