Hello everyone ! Quick question here, we are tryin...
# suitecommerce
m
Hello everyone ! Quick question here, we are trying to setup the native currency selector on sca but we are not getting the prices on the selected currency from the item API. The settings are: • Multi Currency is enabled on the enabled features • The account has only 1 subsidiary • The website record has USD (primary) enabled and CAD enabled • The items has pricing for both currencies • The customer record, under the financial tab has both currencies enabled (primary is USD) When using the native currency selector (after selecting CAD as the currency) the site reloads and : • For Guest users works as expected and the prices from the item API are correct • For Logged in users is not working, the item API always return prices on USD. I've also tried to force the
setShopperCurrency
of the commerce api , but is not updating the session (
setShopperCurrency
with CAD, and then
getShopperCurrency
still returning USD. Does someone knows why this could be happening ? Just to clarify I've try hitting directly the item API using CAD as the parameter and I am getting the same result (Guest users works as expected but not logged in customers)
c
That SCA currency selector issue with logged-in users likely stems from NetSuite locking to their last order’s USD default, unlike guests. Uncheck "Disable Currency Selection" on the customer’s Financials, or add a client script to force setShopperCurrency on login/cart reload. Ensure CAD’s in website currencies and item rates are current.
m
Thank you for your answer ! We found 2 problemas by using the client script to change the currency: • Primary problem: If the customer has at least 1 order, the currency selector gets disabled • Secondary problem: Our merchant ask us to not change the primary currency We'll create a case with NetSuite to see if this can be sorted with another workaround 🙂
m
The only solution we found was: • Updating the customer's primary currency • Telling the user to logout/login to reinitialize the environment/session If you find a simpler solution, I would love to know.
👍 1
s
I'm pretty sure we don't let logged-in customers change their currencies
m
understood, thank you Steve !