Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

RemiB commented on Currency switcher displays symbol. How do I prevent that?

$
0
0

Hi Askel,

Sorry for the variable name's mistake, damn minification!

The problem now might be that you changed all the d's :)
Only the first d (the variable name) has to be an "e". The other d's are part of regular expressions, they represent digits.

Try again with:

case"amount_with_comma_separator":e=floatToString(b/100,2).replace(/\./,",").replace(/(\d+)(\d{3}[\.,]?)/,"$1.$2");break;


Viewing all articles
Browse latest Browse all 25503

Trending Articles