Auto Currency Switcher Integration Guide



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.

In this article

About Auto Currency Switcher

1
App Information

2
Auto Currency Switcher Integration Function

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

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

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
Step 9: Click Save and you're all set!

V3


3
In Asset folder, find this file named:  boost-sd-customization.js.
4
Add the code snippet below to the boost-sd-customization.js file:
if (window.boostSDAppConfig) {
  window.boostSDAppConfig.integration =  Object.assign({
     currencies: 'auto'
 }, window.boostSDAppConfig.integration || {});
}

5
Click Save and you're all set!
If you encounter any issues during the integration process, please don't hesitate to contact our support team for further assistance at support@boostcommerce.net