Add product variant name in URL

Hg_thomas
Shopify Partner
48 2 2

Hello,

I would like to display the name of the selected variant of my product on its URL page.

Capture d’écran 2021-05-05 à 14.22.10.png

for example, the selected variant is iPhone 7 Plus / iPhone 8 Plus and I would like to display it in the URL of the page after the variant id.

ThomasHg
Développeur
Replies 3 (3)

Trevor
Community Moderator
3391 459 977

@Hg_thomas 

Adding the variant name to the URL when selected would not be possible. Only the variant ID will appear along with the title of the parent product.

May I ask why you're wanting to add the name to the URL?

Trevor | Community Moderator @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Hg_thomas
Shopify Partner
48 2 2

I need it for a best referencing to Google Shopping

ThomasHg
Développeur
Trevor
Community Moderator
3391 459 977

@Hg_thomas 

Could you clarify that for me? I'm not sure I know what you're referencing. 

Trevor | Community Moderator @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog