buy-button-js
buy-button-js copied to clipboard
Wrong currency symbol in cart
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' } } } });
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 ($).
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)