BEST Currency Converter Integration Guide

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

1
App Information

2
BEST Currency Converter Integration Benefit

  • Covert preferable prices on your product list.

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


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());<br>

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-customization.js.
4
Add the code snippet below to the boost-sd-customization.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!
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