Skip to content

Conversation

@daun
Copy link
Contributor

@daun daun commented Jul 31, 2025

We ran into a few snags syncing translated products and variants into a multisite setup.

  • Following the docs, we set the collections to propagate, but localizations are currently only created if the product or variant is actually translated in Shopify. This will lead to unpublished products in non-default locales on the Statamic side of things. Which differs from the default behavior of a Shopify theme, which would show the untranslated product and fall back to the default locale for display. Checking for the propagate flag of the collection and always creating those entries seems to work here.

  • When compiling variants data, translated entries currently don't have any price or inventory data, leading to exceptions when calculating in-stock status and displaying prices. Switching from data() to values() and filtering down to unique variant ids seems to work here.

daun added 4 commits July 31, 2025 19:28
Signed-off-by: Philipp Daun <post@philippdaun.net>
Signed-off-by: Philipp Daun <post@philippdaun.net>
Signed-off-by: Philipp Daun <post@philippdaun.net>
Signed-off-by: Philipp Daun <post@philippdaun.net>
@ryanmitchell
Copy link
Contributor

Thanks again, you're great!

@ryanmitchell ryanmitchell merged commit 03f206c into statamic-rad-pack:main Jul 31, 2025
4 checks passed
@daun daun deleted the fix/multisite-propagation branch July 31, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants