Re: Get Cart in store main currency without changing user selected currency in frontend.

Get Cart in store main currency without changing user selected currency in frontend.

devnip
Shopify Partner
5 0 0

In my api I need to send cart in store main currency from cart page.
So I make call like below
`/cart.json?currency=AUD`
Here AUD is store main currency.
Now what happen after this ajax call user selected currency is change to AUD.
I can stop that with make ajax call again with 
`/cart.json?currency=${window.Shopify.currency.active}`
but cart can change many time it is not proper solution 

So any help regrading get cart in main currency without change user selected currency would be great.

I'll also try to convert cart in main currency manually via js but not getting exactly same value as don't know exact conversion api rules.

The main goal I try to achieve get cart in store main currency on cart page.

Replies 2 (2)

Small_Task_Help
Shopify Partner
1052 45 101

Hi,

 

Need to check your backend if you want you can contact us.

To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad
devnip
Shopify Partner
5 0 0

Well issue is related to frontend so I don't think we need access of backend
If you can provide any solution for frontend then it would be great