Open navigation

Multi-Currency, Customer Groups and Price List

This content contains older information from our previous Javascript library. Please visit the link if you have implemented Klevu with the latest template JS.

BigCommerce allows merchants to display prices in multiple currencies and also allows to show customer groups wise prices and product visibility. In order to enable the same behavior in the Klevu Search results please follow the steps given below:


Steps for Stencil theme:

  1. Login into your BigCommerce Admin Panel
  2. Go to Storefront → My Theme
  3. Click on the current theme and go to Theme Options → Edit Theme Files
  4. Go to Templates → Layout & open base.html file.
  5. Insert the following JS code snippet before the </body>tag
    <script>
         var klevu_isMulticurrencyEnabled = true,
         klevu_currentCurrencyCode = "{{currency_selector.active_currency_code}}",
         klevu_loginCustomerGroup = "{{customer.customer_group_id}}" ? "{{customer.customer_group_id}}" : "{{customer_group_id}}",
         klevu_category = "";
            
        klevu_loginCustomerGroup = klevu_loginCustomerGroup === "0" ? "" : klevu_loginCustomerGroup;
        klevu_category = klevu_loginCustomerGroup ? "groupid_" + klevu_loginCustomerGroup : "";
     </script> 
  6. Click on Save File button


Steps for Blueprint theme:

  1. Login into your BigCommerce Admin Panel
  2. Go to Storefront → My Themes
  3. Click on Edit HTML/CSS
  4. Open the file Panels/Footer.html 
  5. Insert the following JS code snippet at the end of the file
    <script>
            var klevu_isMulticurrencyEnabled = true,
            klevu_currentCurrencyCode = "%%GLOBAL_SelectedCurrencyCode%%",
            klevu_loginCustomerGroup = "%%GLOBAL_CustomerGroupId%%",
            klevu_category = "";
    
    
        if (klevu_loginCustomerGroup) {
            klevu_loginCustomerGroup = klevu_loginCustomerGroup.replace('"', '');
            klevu_category = "groupid_" + klevu_loginCustomerGroup;
        }
     </script>
  6. Click on Save File button

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.