Skip to main content
All CollectionsThird-Party App IntegrationMulti-Currencies
BEST Currency Converter Integration Guide
BEST Currency Converter Integration Guide

Here is our guide for BEST Currency Converter integration with Boost AI Search & Discovery app.

Thomas Ta avatar
Written by Thomas Ta
Updated over 4 months ago

๐Ÿ“– BEST Currency Converter works with 160+ currencies including Bitcoin. Converts prices instantly, on any devices, any theme, even if you use ajax. You can even add all the currencies with the push of a button. Here is our guide for BEST Currency Converter integration with Boost AI Search & Discovery app.


About BEST Currency Converter

App Information

BEST Currency Converter Integration Function

  • Covert preferable prices on your product list.

๐Ÿ’ช 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 BEST Currency 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. Then search for this line of code:

ProductList.prototype.afterRender

4

Add this code snippet below into the function (between the { })

if (typeof DoublyGlobalCurrency !== 'undefined' && jQ('[name=doubly-currencies]').length > 0) {
DoublyGlobalCurrency.convertAll(jQ('[name=doubly-currencies]').val());
}

5. Go back to Asset folder, find boost-pfs-instant-search.js file. Then search for this line of code:

InstantSearch.prototype.afterBindEvents

6. Add this code snippet below into the function (between the { })

InstantSearchResult.prototype.afterRender = function() {
if (typeof DoublyGlobalCurrency !== 'undefined' && jQ('[name=doubly-currencies]').length > 0) {
DoublyGlobalCurrency.convertAll(jQ('[name=doubly-currencies]').val());
}
};

7. Click Save to save all the changes you've just made 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: 'best' }, window.boostSDAppConfig.integration || {});}

It should look like this:

5. Click Save and you're all set!

โš ๏ธ Due to the exchange rate differences between the currencies, it is expected to be a 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(
{ currencies: 'best' },
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?