Skip to content

Product title does not sync between sites #198

Closed

Description

@paulnzime

Description

Our Craft 5 install has 3 different sites.
On first sync of a new product, all is good.
If I then go into Shopify and change the product title and wait for those updates to sync back to Craft, it has only changed the title on our primary site. The other sites remain as they were and there is seemingly no way to change these?

We can get around it by creating a custom field to override the title, but that doesn't feel great.

I assume this is likely because of Crafts translations and having the ability to change the title per site - however I cannot see any option to be able to do this and make the title editable.

Webhooks have also been added for each site, but these don't appear to update the title either.

Steps to reproduce

  1. Ensure Craft has at least 2 sites defined
  2. Sync a new product to Craft
  3. Change that product title in Shopify and wait for it to sync again
  4. Note the title only changes on the primary site

Additional info

  • Craft version: 5.8.21
  • PHP version: 8.3
  • Database driver & version: MySQL 8
  • Plugins & versions: Shopify 6.1.3

Activity

  1. added
    bug
    Plugins → Shopify
    Plugins
    on Feb 17, 2026
  2. linear commented on Feb 17, 2026

    @linear
  3. olsp commented on Jun 10, 2026

    @olsp

    I think the root cause of my open issue is also the multisite setup. I asked Claude Fable 5 about it and got this as the answer:

    Root cause

    title is the only synced product attribute stored per site (elements_sites.title) — everything else lives in the site-agnostic shopify_data table, which is why only titles show this bug.

    Products::createOrUpdateProduct() loads the element in a single site (Product::find()->shopifyGid($id)->one() — no ->site()), sets the new title, and saves. During propagation, Craft only copies the title to sibling sites when the title translation keys match (craft\services\Elements::_propagateElement()):

    // Copy the title value?
    if (
        $element::hasTitles() &&
        (
            $siteElement->getTitleTranslationKey() === $element->getTitleTranslationKey() ||
            ($element->propagateRequired && empty($siteElement->title))
        )
    )
    

    Element::getTitleTranslationKey() defaults to TRANSLATION_METHOD_SITE, and Product doesn't override it — so the key is the site ID, the keys never match between sites, and the title is never copied. The empty($siteElement->title) escape is why the initial sync populates all sites correctly: only subsequent title changes fail to propagate.

    Proposed fix

    Since Shopify is the canonical source for product titles (any per-site edit would be overwritten by the next sync anyway), titles should be treated as non-translatable. Overriding the translation key on the Product element makes core propagation copy the title to all sites — a self-contained fix:

    // craft\shopify\elements\Product
    
    /**
     * Product titles are synced from Shopify and therefore identical across sites.
     * @inheritdoc
     */
    public function getTitleTranslationKey(): string
    {
        return ElementHelper::translationKey($this, Field::TRANSLATION_METHOD_NONE);
    }
    

    With TRANSLATION_METHOD_NONE the key is '' for every site, the comparison in _propagateElement() matches, and the synced title propagates on every save.

    Behavior change to note: installs that (perhaps unknowingly) have diverged per-site titles will see them overwritten with the Shopify title on the next sync — which is the intended bug fix, but worth a line in the changelog. Existing stale titles can be corrected after upgrading via php craft resave/shopify-products. If per-site title translation is considered a feature worth keeping, this could alternatively be gated behind a plugin setting (e.g. propagateProductTitles, default true).

    @AugustMiller what do you think about it?

  4. nfourtythree commented on Jun 11, 2026

    @nfourtythree
    Contributor

    Thank you for reporting this issue.

    We have pushed up a fix which will be included in the next release of the plugin.

    To get this early, change your craftcms/shopify requirement in your project's composer.json to:

    "require": {
      "craftcms/shopify": "7.x-dev as 7.1.2",
      "...": "..."
    }

    Then run composer update.

    After a resynchronisation of the products will be required if the titles are out of sync.

    Thanks!

  5. nfourtythree commented on Jun 18, 2026

    @nfourtythree
    Contributor

    Shopify for Craft version 7.1.3 has now been released with this fix included.

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PluginsPlugins → Shopifybugrepo:shopify

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions