Pre-purchase upsell shows base price instead of localized market price

Hi!

Based on the pre-purchase example code provided by Shopify, I’ve noticed that the product price shown doesn’t match the localized price in the checkout. It always uses the base price instead. Does anyone know how to solve this?

Hey @CLab - you should be able to localize product details in a Checkout UI extension (to reflect the correct currencies by using presentment currencies from your query responses, etc.): About checkout UI extension localization

You can use the @inContext directive with the storefront API inside the UI extensions to grab localized pricing as well: Support international pricing on storefronts

Those links there are a decent place to start, but let me know if I can help out further!