Change Product URL to contain vendor

Highlighted
Tourist
10 0 1

I would like to change my current product URL to include the product vendor name on all product URLS.  I understand that I can manually do this in each product by changing the SEO section but I will like my shop to automatically do it for me.  Does anybody know which section to update in the code?

Example:

Current URL for product;

Shop.url/products/product.url

Change to:

shop.url/products/{{ product.vendor }}product.url  

Thanks

0 Likes
Highlighted
Excursionist
25 0 6

No way I know of to define the URL's like that Shopify. You're really looking at a bulk edit showing handles & vendors, then just go through the list manually. Probably take half a day if you had 1000 products, put it on upwork as a job?

A bulk upload wouldn't work here as they have a dependency on the URL handles themselves existing.

Workarounds would be to use some hacky Cloudflare worker infront, and edit URL's in transit, could get pretty messy and likely cause other unforeseen problems. Another way is to write a script to do this via Shopify API.

In-house SEO on a few S+ stores. Freelance sometimes. If my comment was helpful, feel free to help me out: https://kieran.co.nz/my-referral-links/
0 Likes