1. Home
  2. Docs
  3. Magento 1 B2B Extensions
  4. Wholesale Fast Order
  5. Common Problems

Common Problems

1. Having problems with Currency Decimal separator?

In some countries Currency separator is ", " while ". " is used in US or UK. To fix a problem when installing Wholesale Fast Order on the store using Decimal separator as ","  please follow below changes:

Edit file: /skin/frontend/base/default/js/bss/fastorder.js

Change:

finalprice   = Number(finalprice.replace(/[^0-9\.]+/g,""));

Into:

finalprice = Number(finalprice.replace("," , "."));

Change:

function convertPrice(price) {
              price = parseFloat(price).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
              return price;
     }

Into:

function convertPrice(price) {
              price = parseFloat(price).toFixed(2);
              price = price.replace(".",",");
              price = price.replace(/(\d)(?=(\d{3})+\,)/g, "$1.")
              return price;
     }

 

 

Was this article helpful to you? Yes No

How can we help?