-
Notifications
You must be signed in to change notification settings - Fork 359
Catalyst - Multi Currency Integration #1514
Hi Team,
Do we have multi-currency support in the catalyst?
All reactions
Replies: 4 comments 12 replies
Hey @kathir-arizon, we haven't built a currency selector in Catalyst, but we do have the necessary API's to support it. If you want to build it yourself, here's the rough steps I would take:
- Build a currency selector with the
site.currenciesnode. - Save selected currency in a cookie of your choice.
- Use the cookie value when in queries that have a
currencyCodefield.
All reactions
@chanceaclark Thanks for the clarification. I will look into it.
All reactions
@chanceaclark I have changed the PDP pricing logic to suspense and still see the cookie undefined issue. We are having the same price issue with the RelatedProducts.
When I enable the PPR and it throws an error to install the nextjs latest canary. Kindly recommend which version is suitable for the canary to enable the PPR.
The current Next Js version used in Catalyst is "14.2.13". If we switch to the latest canary it will upgrade to 15.x.x Is it fine to go with next 15?
Error: The experimental.ppr preview feature can only be enabled when using the latest canary version of Next.js. See more info here: https://nextjs.org/docs/messages/ppr-preview
Kindly provide your recommendation.
All reactions
@chanceaclark Could you please let me know how to disable cache for guest flow? I have installed the next js 15 canary and used the suspense boundary but the server component returns the cookies as undefined. I have managed to retrieve the data using the useEffect on the client component but In PLP, prices are updating one by one product and it doesn't look good.
I have cross-verified your commit and am still getting the same issue. 5555eda#diff-791b48067710e5f48f45a218435f5a7ab9b4bec30b7d75983b473dfd95fe633fR114
All reactions
Hey @kathir-arizon for guest shoppers we static page to improve performance for shoppers. You may be running into this specifically. You might want to look into Next.js Route Segments to see how you could tailor these pages more.
However, we have a ticket to add a currency selector in the next couple of weeks or so if you want to wait till we wrap that up?
All reactions
@chanceaclark Do we have any PR for that or any branch to check? We will upgrade it once it is live but I have removed the category page level cache to fix the guest customers.
Thanks for your help @chanceaclark
All reactions
All reactions
@kathir-arizon Did you successfully implement multi-currency functionality for pricing? We're looking to implement the same and would appreciate it if you could share the steps, if possible.
All reactions
@developersupreme We have integrated it.
All reactions
Hey everyone, thank you for waiting patiently! We just opened up a PR for our Currency Selector: #1912
The only issue with it right now is that we don't get back the default currency from the API but we are actively working on adding that. Test it out and let us know if you have any feedback.