buy-button-js icon indicating copy to clipboard operation
buy-button-js copied to clipboard

Wrong currency symbol in cart

Open ignacio-dev opened this issue 3 years ago • 2 comments

Price in cart shows GBP value but with USD symbol. Trying to override it in the options like so did not work:

ui.createComponent('cart', { options: { cart: { text: { currency: 'GBP' } } } });

ignacio-dev avatar Mar 09 '21 21:03 ignacio-dev

Also seeing this issue!

On initial load the the correct currency symbol appears (£) but upon a page refresh the symbol changes to a dollar sign ($).

ghost avatar Jul 29 '21 12:07 ghost

Not ideal that thetext: { currency: 'GBP' } doesn't work in cart options but managed to override the default $ sign using... ui.createComponent("cart", { moneyFormat: '£{{amount}}', options: { ...cartOptions, }, }); with ui being ShopifyBuy.UI.init(shopifyClient)

Another downside is this needs declaring twice (both product and cart)

dominicthomas avatar Apr 19 '22 16:04 dominicthomas