Liquid bug with localization.country on product pages with collections handle in new version of Markets (Catalogs)

Hi! We’ve detected a potential issue with the new Shopify Markets version (Catalogs), specifically with the Liquid object localization.country.

When accessing a product through a collection-based URL (e.g., store.com/collections/collection-handle/products/product-handle), the Liquid object localization.country doesn’t render the actual country rendered on the storefront. Instead, it seems to incorrectly render the country inherited from the associated Catalog (at least that’s our current theory).

Important:
This issue does NOT occur when directly accessing the product URL without any collection (store.com/products/product-handle). In that scenario, the country renders correctly.

We’ve replicated this clearly in a fresh Dawn theme with all apps disabled. The browser console command Shopify.country returns the correct country being rendered, highlighting the discrepancy clearly.

Happy to share the exact store URL for reproducing this issue if needed with the Shopify Markets team!

Hey Roberto and others following this thread - thanks for the detailed report. We have a fix for this currently being reviewed and we expect this to deploy soon!

2 Likes

Hi everyone, apologies I failed to post a final reply here for everyone who is following - not long after my last message, a fix for this issue deployed. If you are still seeing any issues, please let us know.

1 Like

Thanks @coleatkinson!