[Skip to main content](#vessel-content)

#   Url/Link for each product variant

##

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

3 years 5 months ago [\#351864](#351864) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  *[Url/Link for each product variant](/forum/50-feature-request/906426-url-link-for-each-product-variant#351864 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 3.10.8 -- PHP version -- : 8.1.0  Hello,  It would be very helpful if we were able to create different url's for each product variant. There are times where I am offering a paid ad for a specific variant for example red shirts 50% off. It would be great to be able to send customers from that paid ad directly to a specific variant/url instead of sending them to page and then them having to choose the product variant from the paid ad. Thnx")* was created by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")*

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 3.10.8
-- PHP version -- : 8.1.0

Hello,

It would be very helpful if we were able to create different url's for each product variant. There are times where I am offering a paid ad for a specific variant for example red shirts 50% off. It would be great to be able to send customers from that paid ad directly to a specific variant/url instead of sending them to page and then them having to choose the product variant from the paid ad. Thnx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDY0MjYtdXJsLWxpbmstZm9yLWVhY2gtcHJvZHVjdC12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 5 months ago [\#351865](#351865) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Url/Link for each product variant](/forum/50-feature-request/906426-url-link-for-each-product-variant#351865 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 3.10.8 -- PHP version -- : 8.1.0  Hello,  It would be very helpful if we were able to create different url's for each product variant. There are times where I am offering a paid ad for a specific variant for example red shirts 50% off. It would be great to be able to send customers from that paid ad directly to a specific variant/url instead of sending them to page and then them having to choose the product variant from the paid ad. Thnx")*

Hi,

It's actually possible. In the URL of the product page, change the id of the product to the id of the variant you want to target and you'll get that variant preselected when you reach that URL.
For example, on the page [ www.hikashop.com/download/legal-pack.html](https://www.hikashop.com/download/legal-pack.html) you have a characteristic for the selection of the country. There the menu item type is "product page" with that legal pack product selected in the menu item. So there is no product id in the URL. So you can add it as an extra parameter. As you can see it defaults to USA. The id of the variant for "Canada" is 187. If you use the URL [ www.hikashop.com/download/legal-pack.html?cid=187](https://www.hikashop.com/download/legal-pack.html?cid=187) you'll see it will default to "Canada" for the country selector.

Note however that this won't work in some cases:
- if you activated the "remove category and product ids in URLs" setting of the HikaShop configuration, then the id of the product doesn't appear in the URL of the products. However, you can still add the id of the variant between the last / and the alias of the product with a dash between the id of the variant and the alias.
- if you have the "dynamic characteristic display" setting activated, then the characteristic selectors default to "please select" superseding the "default" variant and the variant targeted by the id in the URL.
- if you have the "characteristic selection method" setting set to "list", then you have a table of variants on the product details page, with one add to cart per variant row. And thus, since there is no variant selection anymore on the page, the system can't preselect anything.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDY0MjYtdXJsLWxpbmstZm9yLWVhY2gtcHJvZHVjdC12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

3 years 5 months ago -  3 years 5 months ago [\#351874](#351874) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  Replied by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")* on topic *[Url/Link for each product variant](/forum/50-feature-request/906426-url-link-for-each-product-variant#351874 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 3.10.8 -- PHP version -- : 8.1.0  Hello,  It would be very helpful if we were able to create different url's for each product variant. There are times where I am offering a paid ad for a specific variant for example red shirts 50% off. It would be great to be able to send customers from that paid ad directly to a specific variant/url instead of sending them to page and then them having to choose the product variant from the paid ad. Thnx")*

Thanks for your response. This is GREAT news but i'll need some help. I fall under the case where i have activated the "remove category and product ids in URLs" setting. So my url structure is [ www.website.com/inspiration/products/the-shark-is-big-tee.html](https://www.website.com/inspiration/products/the-shark-is-big-tee.html)

So if I want to direct folks to a different variant such as size small in this shirt what would be the url? The variant size small ID is 6606 so would it be: [ www.website.com/inspiration/products/660...hark-is-big-tee.html](https://www.website.com/inspiration/products/6606-the-shark-is-big-tee.html) (this didn't work for me)

Thanks again!

Last edit: 3 years 5 months ago by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDY0MjYtdXJsLWxpbmstZm9yLWVhY2gtcHJvZHVjdC12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 5 months ago [\#351876](#351876) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Url/Link for each product variant](/forum/50-feature-request/906426-url-link-for-each-product-variant#351876 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 3.10.8 -- PHP version -- : 8.1.0  Hello,  It would be very helpful if we were able to create different url's for each product variant. There are times where I am offering a paid ad for a specific variant for example red shirts 50% off. It would be great to be able to send customers from that paid ad directly to a specific variant/url instead of sending them to page and then them having to choose the product variant from the paid ad. Thnx")*

Hi,

Is the-shark-is-big-tee the alias of the main product ?
This new URL should work. That is unless you're using a SEF tool like 4SEF or sh404sef.
They create a database of correspondances between SEFed and non-SEFed URLs. So modified the URL like that means the SEF extension won't be able to find it in the database and thus the modified URL will return a 404 error.
Besides that, I don't see why that wouldn't work. You could try to add the variant id with an extra parameter at the end of the URL like [ www.website.com/inspiration/products/the...ig-tee.html?cid=6606](https://www.website.com/inspiration/products/the-shark-is-big-tee.html?cid=6606)
That might work better.

The following user(s) said Thank You: [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDY0MjYtdXJsLWxpbmstZm9yLWVhY2gtcHJvZHVjdC12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

3 years 5 months ago [\#351924](#351924) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  Replied by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")* on topic *[Url/Link for each product variant](/forum/50-feature-request/906426-url-link-for-each-product-variant#351924 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 3.10.8 -- PHP version -- : 8.1.0  Hello,  It would be very helpful if we were able to create different url's for each product variant. There are times where I am offering a paid ad for a specific variant for example red shirts 50% off. It would be great to be able to send customers from that paid ad directly to a specific variant/url instead of sending them to page and then them having to choose the product variant from the paid ad. Thnx")*

That link you included was IT!!!!!! I do have SH404sef configured on all sites and adding that cid=#### takes me directly to the variant I want. Thanks a ton Nicolas. This will be really helpful with paid ads I push forward for specific variants.

The following user(s) said Thank You: [Manuel TT](/forum/user/29324-manuel-tt "View Manuel TT's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDY0MjYtdXJsLWxpbmstZm9yLWVhY2gtcHJvZHVjdC12YXJpYW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
