Skip to content

Navigation Menu

Sign in
Sign up

Catalyst - Multi Currency Integration #1514

kathir-arizon started this conversation in General
Discussion options

Hi Team,

Do we have multi-currency support in the catalyst?

You must be logged in to vote

Replies: 4 comments 12 replies

Comment options

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:

  1. Build a currency selector with the site.currencies node.
  2. Save selected currency in a cookie of your choice.
  3. Use the cookie value when in queries that have a currencyCode field.
You must be logged in to vote
11 replies
Comment options

@chanceaclark Thanks for the clarification. I will look into it.

Comment options

@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.

Comment options

@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

Comment options

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?

Comment options

@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

Comment options

You must be logged in to vote
0 replies
Comment options

@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.

You must be logged in to vote
1 reply
Comment options

@developersupreme We have integrated it.

Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /