Just a small note for anybody that struggles with changing the product page slug in Sanity / Shopify.
Normally that slug would be editable through a setting on the very bottom of your product page:
But if you don't have any other sales channels activated that rely on this setting (besides your headless store / the buy button), you won't be able to edit this setting in Shopify and therefore you won't be able to sync the change into Sanity. The setting above won't be displayed at all.
If you would like to change the slug, an easy option is to activate another sales channel for a brief moment, change and sync the slug and move on, although you could of course also disable that slug in the Sanity content model overall, until other sales channels become relevant.
I hope this spares somebody from the future some searching and some confusion.
Just a small note for anybody that struggles with changing the product page slug in Sanity / Shopify.
Normally that slug would be editable through a setting on the very bottom of your product page:
But if you don't have any other sales channels activated that rely on this setting (besides your headless store / the buy button), you won't be able to edit this setting in Shopify and therefore you won't be able to sync the change into Sanity. The setting above won't be displayed at all.
If you would like to change the slug, an easy option is to activate another sales channel for a brief moment, change and sync the slug and move on, although you could of course also disable that slug in the Sanity content model overall, until other sales channels become relevant.
I hope this spares somebody from the future some searching and some confusion.
Happy coding!