You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this related to specific APIs or components, please list them here
useShop seems the most appropriate
Is your feature request related to a problem? Please describe.
Checkout.liquid and liquid in general has shop.address.country.iso_code which allowed us to do specific things according to the shop location, for compliance, etc, while this isn't possible in Checkout Extensibility
Describe the changes you are looking for
Adding an address object in useShop, so we can do something like the following
const address = useShop().address
OR
const territory = useShop().address.country
if (territory.iso_code == 'US') {
...
} else if (territory.iso_code == 'GB') {
...
} else {
...
}
Describe alternatives you’ve considered
Thought about adding a cart attribute in the theme, but this seems extremely tricky to manage and easy to end up being missed/incorrect, eg if customer gets to the checkout via a third party sales channel
The text was updated successfully, but these errors were encountered:
Please list the related package(s)
If this related to specific APIs or components, please list them here
Is your feature request related to a problem? Please describe.
shop.address.country.iso_code
which allowed us to do specific things according to the shop location, for compliance, etc, while this isn't possible in Checkout ExtensibilityDescribe the changes you are looking for
Describe alternatives you’ve considered
The text was updated successfully, but these errors were encountered: