Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify multicurrency switch with JS only

Shopify multicurrency switch with JS only

Mladen_Terzic
Shopify Partner
21 1 4

I'm trying to implement Shopify multi currency with using JS - so no SSR option.

 

I am able to make a switch to desired currency by appending: ?currency=USD to the URL and also I can notice a cookie being updated: "cart_currency".

 

Although when I wanna reset the cookie and revert to the default options regarding currency this cookie cannot be deleted. It deletes but then after refresh it returns back to how it was.

 

Any developer help and guidance on this topic would be appreciated. I've read all possible forums, documentation, etc... I don't wanna implement form with liquid or SSR I am just focused on how to reset this cookie/ currency code.

Shopify Expert
Replies 0 (0)