craftcms / craftcms/shopify

Shopify Product Slugs Not Updating / Re-Syncing

Open
#87 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Plugins -> Shopify
Dominant language
PHP
Stars
56
Forks
30
Avg merge
11h 15m
Merged PRs (30d)
2

Description

Description

Before installing the Shopify plugin, I had a section named 'Shop Entries', and these contained all my products. When updating the settings for the Shopify products for the first time, I gave them the same Product URI Format as the Shop Entries section. When I synced my products from Shopify, all the Shopify products in my Craft install have a "-2" at the end of the slug, e.g. /shop/product-name-2.

I have tried changing the Shop Entries URI format to something different to remove the clashing slugs, but that didn't change anything with the Products. I tried clicking the Shopify Sync button in case that updated the product slugs, but that didn't change anything either. Is there a way to update these Shopify product slugs at all? Thanks.

Additional info
  • Craft version: 4.5.9
  • PHP version: 8.0
  • Database driver & version: MySQL 8
  • Plugins & versions: Shopify 4.0.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are identified in the issue. Start by reproducing the sync with Craft 4.5.9, PHP 8.0, MySQL 8, and Shopify 4.0.0 using colliding URI formats, then trace the Shopify synchronization entry point. Done means changing the section URI format or re-syncing updates existing product slugs as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.