Merging two stores and setting HREFLANGS

Topic summary

Issue: After merging two Magento stores (Spain/International and Germany) into one Shopify store using Shopify Markets, the team needs correct hreflang tags (HTML annotations that indicate language/region versions to search engines) for all language–country combinations and an x-default.

Context:

  • Old setup: Spain/International (es-ES, en-ES) and Germany (en-DE, de-DE).
  • New setup: Two markets (Spain & International, Germany), with localized pages (e.g., /collections/optical and /collections/optical-germany) and translations in Spanish, German, and English.

Expected hreflang set (examples provided in code snippet):

  • es-ES, es-DE
  • de-ES, de-DE
  • en-ES, en-DE
  • x-default (pointing to the English international URL)

Current behavior (per screenshot):

  • Shopify outputs only es-ES, en-ES, and de-ES.
  • Missing DE-region alternates (en-DE, de-DE) and others like es-DE and x-default.

Status:

  • No replies or solutions yet; multiple follow-ups from the poster.
  • Discussion remains open with unresolved questions on how to configure full hreflang coverage in Shopify Markets for both ES and DE regions across three languages.
Summarized with AI on December 19. AI used: gpt-5.

Hi everyone.

We were in the process of merging two Magento stores into one Shopify, and would like to know how to properly set the HREFlangs

  1. The first magento was for Spain/International, with hreflangs es-Es and en-ES

  2. The second magento was for Germany with hreflangs en-DE and de-DE

Currently we are using Shopify Markets to manage some diferences beetween countries (prices, text, etc) manged throught diferent pages ( optical and optical-germany)

Also both markets (Spain & International and German, are translated to Spanish, German and English

This would be the expected result

But instead Shopify is displaying this one, only es-ES, en-ES, de-ES

Screenshot_6.jpg

Could you please let us now how to proceed with this? Kind regards and trully thanks in advance, we are struggling with this

Please need help with this.

Kind regards

Let me know, we are stuck on this, thanks in advance.