Country selector updates prices but fails to update localization object in Theme Editor
Reproduction steps
The country/region selector in the Theme Editor does not switch countries when selected. This issue occurs across all themes tested, including Dawn and Horizon. The selector works correctly on the live storefront, indicating the issue is specific to the Theme Editor environment.
Steps to reproduce:
Go to Online Store → Themes → Edit theme (Theme Editor)
Ensure the “Country/region selector” section is enabled and visible in the footer or header
Attempt to select a different country from the dropdown selector
Observe that the selected country does not change
Additional info
I used the following Liquid code to inspect the context:
{{ localization.country | json }}
On the live storefront, this output updates correctly when switching countries. In the Theme Editor, it always renders the same country (in my case, “Ascension Island”), no matter what is selected in the Country/region selector. The prices do update correctly to the selected country’s currency format.
I am experiencing this issue as well. This has only started happening this week as it was working fine when I was developing in this store at the start of the week.
@Liam-Shopify are you able to confirm if Shopify have altered the way the country selector in the theme editor bar works recently please?
@Paige-Shopify I checked a couple of stores, all of them dev stores. We don’t have market settings under Settings > Locations. Markets are listed separately in the admin, outside of Settings.
Hi everyone, I contacted the support, and they had a workaround for this until the issue is fixed at core; you must use the preview link without the preview_token in the URL
@Paige-Shopify Unfortunately, I don’t see this getting fixed for us. I’ve checked three different stores across multiple themes and browsers. Do we need to clear the cache or do something similar?
Thanks for letting me know you’re not seeing the issue fixed on your end Anton.
I’ll look into whether there’s an issue with the fix or deployment process and get back to you.
@Anton, can you confirm for me if the countries you’re switching to have markets with their own customizations? At the moment the fix we deployed relies on this which might explain what you’re experiencing.