Shopify Product Slugs Not Updating / Re-Syncing
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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