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

#   Product with different characteristics add in cart

##

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 10 months ago [\#86463](#86463) by [luc.geysen@gmail.com](/forum/user/12891-luc-geysen-gmail-com "View luc.geysen@gmail.com's Profile")  *[Product with different characteristics add in cart](/forum/4-how-to/77636-product-with-different-characteristics-add-in-cart#86463 "Hi,  I have products (clothing) with several characteristics (size, sex and season). Every product has only one sex, one season but could have different sizes. When I select a product for which sizes 56, 62 and 68 are available, I get in the product page on the right hand side a correct indication of sex and season, but a random indication for size (one of the three is displayed mostly the lower value). When this is the size which I want to order, I push the add to cart button and when I have a look in my cart I see that this product was added with another size. I can solve this by first selecting another size, and then select again the size I need and then push the add to cart button. In this way you see the product title changing (on top of the page), e.g. &quot;T-shirt yellow&quot; becomes &quot;T-shirt yellow winter 2012 56&quot;. This is very bad because people ordering the first available size could in fact order the wrong size without knowing it. Do you have a solution for this problem? See my printscreens in attach: - screen 1: first screen when article is selected (default size 68 is selected allthough you don't see it in mentioned in the title of the product), press add to cart button - screen 2: cart shows product with size 80, which is not what was show on screen 1 - screen 3: select on product page size 80 -&gt; title changes - screen 4: select on product page size 68 again -&gt; title changes, press add to cart button - screen 5: cart shows the correct product.  Wbr, Luc")* was created by *[luc.geysen@gmail.com](/forum/user/12891-luc-geysen-gmail-com "View luc.geysen@gmail.com's Profile")*

Hi,

I have products (clothing) with several characteristics (size, sex and season). Every product has only one sex, one season but could have different sizes. When I select a product for which sizes 56, 62 and 68 are available, I get in the product page on the right hand side a correct indication of sex and season, but a random indication for size (one of the three is displayed mostly the lower value). When this is the size which I want to order, I push the add to cart button and when I have a look in my cart I see that this product was added with another size.
I can solve this by first selecting another size, and then select again the size I need and then push the add to cart button. In this way you see the product title changing (on top of the page), e.g. "T-shirt yellow" becomes "T-shirt yellow winter 2012 56". This is very bad because people ordering the first available size could in fact order the wrong size without knowing it. Do you have a solution for this problem?
See my printscreens in attach:
- screen 1: first screen when article is selected (default size 68 is selected allthough you don't see it in mentioned in the title of the product), press add to cart button
- screen 2: cart shows product with size 80, which is not what was show on screen 1
- screen 3: select on product page size 80 -&gt; title changes
- screen 4: select on product page size 68 again -&gt; title changes, press add to cart button
- screen 5: cart shows the correct product.

Wbr, Luc

- [ ![screen&#95;1.png](/forum/attachment/8085) ](/forum/attachment/8085 "screen&#95;1.png") [ ](/forum/attachment/8085?download=1 "screen&#95;1.png")
- [ ![screen&#95;2.png](/forum/attachment/8086) ](/forum/attachment/8086 "screen&#95;2.png") [ ](/forum/attachment/8086?download=1 "screen&#95;2.png")
- [ ![screen&#95;3.png](/forum/attachment/8087) ](/forum/attachment/8087 "screen&#95;3.png") [ ](/forum/attachment/8087?download=1 "screen&#95;3.png")
- [ ![screen&#95;4.png](/forum/attachment/8088) ](/forum/attachment/8088 "screen&#95;4.png") [ ](/forum/attachment/8088?download=1 "screen&#95;4.png")
- [ ![screen&#95;5.png](/forum/attachment/8089) ](/forum/attachment/8089 "screen&#95;5.png") [ ](/forum/attachment/8089?download=1 "screen&#95;5.png")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#86531](#86531) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Product with different characteristics add in cart](/forum/4-how-to/77636-product-with-different-characteristics-add-in-cart#86531 "Hi,  I have products (clothing) with several characteristics (size, sex and season). Every product has only one sex, one season but could have different sizes. When I select a product for which sizes 56, 62 and 68 are available, I get in the product page on the right hand side a correct indication of sex and season, but a random indication for size (one of the three is displayed mostly the lower value). When this is the size which I want to order, I push the add to cart button and when I have a look in my cart I see that this product was added with another size. I can solve this by first selecting another size, and then select again the size I need and then push the add to cart button. In this way you see the product title changing (on top of the page), e.g. &quot;T-shirt yellow&quot; becomes &quot;T-shirt yellow winter 2012 56&quot;. This is very bad because people ordering the first available size could in fact order the wrong size without knowing it. Do you have a solution for this problem? See my printscreens in attach: - screen 1: first screen when article is selected (default size 68 is selected allthough you don't see it in mentioned in the title of the product), press add to cart button - screen 2: cart shows product with size 80, which is not what was show on screen 1 - screen 3: select on product page size 80 -&gt; title changes - screen 4: select on product page size 68 again -&gt; title changes, press add to cart button - screen 5: cart shows the correct product.  Wbr, Luc")*

Hi,

Try to change the default variant in the product edition page and save again.

You can edit the view "product / show_default" and comment the lines: Code:

if (hikashop_getCID('product_id')!=$this-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)) echo $this-&gt;element-&gt;main-&gt;product_name; else

This case is similar to:
[ www.hikashop.com/fr/forum/4-how-to/76266...-code-etc.html#81400](http://www.hikashop.com/fr/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc.html#81400)

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

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 10 months ago [\#86599](#86599) by [luc.geysen@gmail.com](/forum/user/12891-luc-geysen-gmail-com "View luc.geysen@gmail.com's Profile")  Replied by *[luc.geysen@gmail.com](/forum/user/12891-luc-geysen-gmail-com "View luc.geysen@gmail.com's Profile")* on topic *[Product with different characteristics add in cart](/forum/4-how-to/77636-product-with-different-characteristics-add-in-cart#86599 "Hi,  I have products (clothing) with several characteristics (size, sex and season). Every product has only one sex, one season but could have different sizes. When I select a product for which sizes 56, 62 and 68 are available, I get in the product page on the right hand side a correct indication of sex and season, but a random indication for size (one of the three is displayed mostly the lower value). When this is the size which I want to order, I push the add to cart button and when I have a look in my cart I see that this product was added with another size. I can solve this by first selecting another size, and then select again the size I need and then push the add to cart button. In this way you see the product title changing (on top of the page), e.g. &quot;T-shirt yellow&quot; becomes &quot;T-shirt yellow winter 2012 56&quot;. This is very bad because people ordering the first available size could in fact order the wrong size without knowing it. Do you have a solution for this problem? See my printscreens in attach: - screen 1: first screen when article is selected (default size 68 is selected allthough you don't see it in mentioned in the title of the product), press add to cart button - screen 2: cart shows product with size 80, which is not what was show on screen 1 - screen 3: select on product page size 80 -&gt; title changes - screen 4: select on product page size 68 again -&gt; title changes, press add to cart button - screen 5: cart shows the correct product.  Wbr, Luc")*

Hi,

Thank you very much for your quick reply. Till now you did a great job answering my questions!
I did the change you proposed (comment the php code) as you can see in attached screenshot (screen 1). However when I open my shop, I see that indeed something has been changed now, the title already contains the size, sex and season information. But it seems it takes another size instead of size 68 it has size 80. When I press the add to cart button indeed it puts size 80 in the cart however size 68 is selected in the input box. Any idea what still can be wrong?

Wbr, Luc

- [ ![screen1.png](/forum/attachment/8105) ](/forum/attachment/8105 "screen1.png") [ ](/forum/attachment/8105?download=1 "screen1.png")
- [ ![screen2.png](/forum/attachment/8106) ](/forum/attachment/8106 "screen2.png") [ ](/forum/attachment/8106?download=1 "screen2.png")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#86682](#86682) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Product with different characteristics add in cart](/forum/4-how-to/77636-product-with-different-characteristics-add-in-cart#86682 "Hi,  I have products (clothing) with several characteristics (size, sex and season). Every product has only one sex, one season but could have different sizes. When I select a product for which sizes 56, 62 and 68 are available, I get in the product page on the right hand side a correct indication of sex and season, but a random indication for size (one of the three is displayed mostly the lower value). When this is the size which I want to order, I push the add to cart button and when I have a look in my cart I see that this product was added with another size. I can solve this by first selecting another size, and then select again the size I need and then push the add to cart button. In this way you see the product title changing (on top of the page), e.g. &quot;T-shirt yellow&quot; becomes &quot;T-shirt yellow winter 2012 56&quot;. This is very bad because people ordering the first available size could in fact order the wrong size without knowing it. Do you have a solution for this problem? See my printscreens in attach: - screen 1: first screen when article is selected (default size 68 is selected allthough you don't see it in mentioned in the title of the product), press add to cart button - screen 2: cart shows product with size 80, which is not what was show on screen 1 - screen 3: select on product page size 80 -&gt; title changes - screen 4: select on product page size 68 again -&gt; title changes, press add to cart button - screen 5: cart shows the correct product.  Wbr, Luc")*

Have you tried to set again the default variant in the product page ?

The following user(s) said Thank You: [luc.geysen@gmail.com](/forum/user/12891-luc-geysen-gmail-com "View luc.geysen@gmail.com's Profile")

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

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 10 months ago [\#86697](#86697) by [luc.geysen@gmail.com](/forum/user/12891-luc-geysen-gmail-com "View luc.geysen@gmail.com's Profile")  Replied by *[luc.geysen@gmail.com](/forum/user/12891-luc-geysen-gmail-com "View luc.geysen@gmail.com's Profile")* on topic *[Product with different characteristics add in cart](/forum/4-how-to/77636-product-with-different-characteristics-add-in-cart#86697 "Hi,  I have products (clothing) with several characteristics (size, sex and season). Every product has only one sex, one season but could have different sizes. When I select a product for which sizes 56, 62 and 68 are available, I get in the product page on the right hand side a correct indication of sex and season, but a random indication for size (one of the three is displayed mostly the lower value). When this is the size which I want to order, I push the add to cart button and when I have a look in my cart I see that this product was added with another size. I can solve this by first selecting another size, and then select again the size I need and then push the add to cart button. In this way you see the product title changing (on top of the page), e.g. &quot;T-shirt yellow&quot; becomes &quot;T-shirt yellow winter 2012 56&quot;. This is very bad because people ordering the first available size could in fact order the wrong size without knowing it. Do you have a solution for this problem? See my printscreens in attach: - screen 1: first screen when article is selected (default size 68 is selected allthough you don't see it in mentioned in the title of the product), press add to cart button - screen 2: cart shows product with size 80, which is not what was show on screen 1 - screen 3: select on product page size 80 -&gt; title changes - screen 4: select on product page size 68 again -&gt; title changes, press add to cart button - screen 5: cart shows the correct product.  Wbr, Luc")*

I am sorry, did that now! Problem solved! Thanx!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3NjM2LXByb2R1Y3Qtd2l0aC1kaWZmZXJlbnQtY2hhcmFjdGVyaXN0aWNzLWFkZC1pbi1jYXJ0P3RtcGw9bWFya2Rvd24=) 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.069 seconds

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