Can I change the variant ID in the URL to variant color?

Can I change the variant ID in the URL to variant color?

LLshopshopifify
Tourist
10 0 6

I want to change the URL of the variants. Instead of variant ID I want to make it variant color. Is that possible?

Replies 4 (4)
LLshopshopifify
Tourist
10 0 6

How can I replace the value? If this is the URL https://www.example.com/product/12345?variant=5678 how can I replace "5678" with the new variant ID?

gr_trading
Shopify Partner
2045 149 206

Hi @LLshopshopifify 

 

As per your request you want color to be added into the URL, recommended way would be to append selected variant name into the URL.

 

Changing variant id in URL will impact Store functionality.

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
LLshopshopifify
Tourist
10 0 6

Hi, how can I append the variant name into URL? I cannot see any option to add it to URL

gr_trading
Shopify Partner
2045 149 206

Hi @LLshopshopifify 

 

Please visit the below URL to see what I want to convey.

 

https://shoponcliq.com/products/floral-cases-to-match-your-personal-style#modal=211

 

We add #modal in URL based on modal

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee