Country selector updates prices but fails to update localization object in Theme Editor

Short description of issue

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:

  1. Go to Online Store → Themes → Edit theme (Theme Editor)
  2. Ensure the “Country/region selector” section is enabled and visible in the footer or header
  3. Attempt to select a different country from the dropdown selector
  4. 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.

What type of topic is this

Bug report

1 Like

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?

facing the same issue, but also on the normal storefront

Same issue here! Tried multiple themes, same result.

Hi everyone, thanks for reaching out about this.

For the affected stores, can you share if the Markets settings are in Settings under Settings > Locations?

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

Thanks for sharing Anton.

We’re looking into this now and will share an update as soon as we have more information.

1 Like

We will have a fix going out for this soon. I’ll provide another update once it has been shipped.

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

Can confirm that this issue is now fixed, thanks Shopify.

Would be good to understand what happened or caused this if you can share any details @Paige-Shopify - thanks.

The fix has been deployed now.

Thanks for confirming it’s working on your end, and thanks for the report as well @zigojacko :slight_smile:

It turned out to be an unintended side effect of a separate fix related to themes.

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

1 Like

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.

1 Like

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

@Paige-Shopify We don’t have any Markets-level customizations set up for the countries we’re switching to. They are using our default/global settings.

1 Like

Thanks for confirming. That explains why it’s still happening on your end. I’ll look into a follow-up fix to address the remaining issue.