-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make available exchange rate in checkout ui extensions API #613
Comments
Duplicate request: #1084 |
I've love to see a reimplementation of what Shopify Functions provides:
https://shopify.dev/docs/api/functions/reference/delivery-customization/graphql/input This would enable quick multi-currency conversions within extensions without looking up or caching currency rates. |
Is there still no implementation for exchange rates? |
so still nothing? I feel this is a huge oversight. |
I just came across another scenario where multiple currency exchange rates are needed in a Shopify headless integration using An update on this would be great, thank you! |
Also watching this. We have a store credit threshold in place (spend $100 USD) and if the cart currency is in EUR I have no way of checking in the checkout extension if the cart total/cost is above or below $100 USD. |
We need this feature right now for one of our clients using Markets Pro! How are we supposed to localize our UI extensions for clients selling outside the US? |
This is blocking our company from properly adopting checkout extensions. |
Same need. We want to convert price infos based on our store's currency to the customer's currency. For example: |
Hi Everyone, at Bluedge USA we solved this issue by using “money” metaobjects instead of metafields. We create a metaobject definition with a single value type of "money", we create a single entry in this metaobject with a static handle and a value of "1". Then inside our checkout UI extensions, we query the storefront API using the context directory with the current country iso_code set in the checkout to get the exact currency exchange rate. Something like this:
For now, this is the best we would come up with, but a native, Shopify made solution is still 100% needed to avoid querying the storefront directly. Please release this as soon as possible! |
Also watching this. |
@benjitastic thank you for the detailed step-to-step solution. const subtotalUSD = amount * 10000 / currencyConversion?.amount and to get the general presentmentCurrencyRate as requested in the previous comments: const presentmentCurrencyRate = currencyConversion?.amount / 10000; |
Is there a solution available for Customer account extension? The country code doesn't exist in the localization object there. It's the only missing step for me |
Thank you for your help that link was exactly what I needed. |
Please list the related package(s)
checkout-ui-extensions
If this related to specific APIs or components, please list them here
https://shopify.dev/api/checkout-extensions/checkout/extension-points -> Shopify specific globals
Is your feature request related to a problem? Please describe.
When developing a checkout ui extension app, we do not have acces via the existing API to current currency exchange rate.
For example, in regular Shopify stores, we have this info available by accessing
window.Shopify.currency.rate
, which describes the exchange rate between the store's primary market currency and the current store currency.Currently, checkout UI extensions API provides currency information under
localization.currency.current.isoCode
, but no details about the exchange rate.Describe the changes you are looking for
To have the exchange rate provided via API similarly with
localization.currency.current.isoCode
The text was updated successfully, but these errors were encountered: