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

#   Wrong default variant in shopping cart

##

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

Less More

- Posts: 214
- Thank you received: 7
-
-

12 years 2 months ago [\#167625](#167625) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  *[Wrong default variant in shopping cart](/forum/2-general-talk-about-hikashop/870396-wrong-default-variant-in-shopping-cart#167625 "-- url of the page with the problem -- :   livelaughlove.com/component/hikashop/classic-script-boxy-tee  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : N/A  We have a product (at least this is the only one so far) that has a number of size variants. The product default is in Medium size &quot;M&quot;. And if the customer chooses any other size it will reflect that size in the shopping cart.  The problem arises if the customer does not make a size selection and adds the product directly to cart. In that case the product is added with a XS size  Here is the link:   livelaughlove.com/component/hikashop/classic-script-boxy-tee  Here is a screenshot of the product variant screen in the back end. Additionally, there is nothing out of place, that I can see either in the XS or M variant internally  This is what it loos like in the DB:  And finally here is the CSV")* was created by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")*

-- url of the page with the problem -- : [ livelaughlove.com/component/hikashop/classic-script-boxy-tee](http://livelaughlove.com/component/hikashop/classic-script-boxy-tee)
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : N/A

We have a product (at least this is the only one so far) that has a number of size variants.
The product default is in Medium size "M". And if the customer chooses any other size it will reflect that size in the shopping cart.

The problem arises if the customer does not make a size selection and adds the product directly to cart. In that case the product is added with a XS size

Here is the link: [ livelaughlove.com/component/hikashop/classic-script-boxy-tee](http://livelaughlove.com/component/hikashop/classic-script-boxy-tee)

Here is a screenshot of the product variant screen in the back end. Additionally, there is nothing out of place, that I can see either in the XS or M variant internally

[ ![2014-08-15&#95;3-32-31&#95;PM.jpg](/forum/attachment/19003) ](/forum/attachment/19003 "...3-32-31&#95;PM.jpg")

This is what it loos like in the DB:

[ ![2014-08-15&#95;3-41-18&#95;PM.jpg](/forum/attachment/19004) ](/forum/attachment/19004 "...3-41-18&#95;PM.jpg")

And finally here is the CSV

*This attachment is hidden for guests.
Please log in or register to see it.*

- [ ![2014-08-15&#95;3-32-31&#95;PM.jpg](/forum/attachment/19003) ](/forum/attachment/19003 "...3-32-31&#95;PM.jpg") [ ](/forum/attachment/19003?download=1 "...3-32-31&#95;PM.jpg")
- [ ![2014-08-15&#95;3-41-18&#95;PM.jpg](/forum/attachment/19004) ](/forum/attachment/19004 "...3-41-18&#95;PM.jpg") [ ](/forum/attachment/19004?download=1 "...3-41-18&#95;PM.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MDM5Ni13cm9uZy1kZWZhdWx0LXZhcmlhbnQtaW4tc2hvcHBpbmctY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 2 months ago [\#167626](#167626) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Wrong default variant in shopping cart](/forum/2-general-talk-about-hikashop/870396-wrong-default-variant-in-shopping-cart#167626 "-- url of the page with the problem -- :   livelaughlove.com/component/hikashop/classic-script-boxy-tee  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : N/A  We have a product (at least this is the only one so far) that has a number of size variants. The product default is in Medium size &quot;M&quot;. And if the customer chooses any other size it will reflect that size in the shopping cart.  The problem arises if the customer does not make a size selection and adds the product directly to cart. In that case the product is added with a XS size  Here is the link:   livelaughlove.com/component/hikashop/classic-script-boxy-tee  Here is a screenshot of the product variant screen in the back end. Additionally, there is nothing out of place, that I can see either in the XS or M variant internally  This is what it loos like in the DB:  And finally here is the CSV")*

Hi,

The variant with the combination "Clear / M" does not exist.
At this moment HikaShop can't select it as the default value because the value does not exist.

So you have ot choose a default combination which exists or, create the variant for the combination "Clear / M".

And for the question "Why the variant 'Athletic Heather XS' is selected ?"
It's because it is the first variant in your listing (with the lower position or at least, the lower product_id).
The default combination does not exist, so HikaShop has to add something in the cart, it take the first variant it found for the variant when it sees that the default does not exist (instead of displaying you a big error message which will afraid the customer)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MDM5Ni13cm9uZy1kZWZhdWx0LXZhcmlhbnQtaW4tc2hvcHBpbmctY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 214
- Thank you received: 7
-
-

12 years 2 months ago -  12 years 2 months ago [\#167914](#167914) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  Replied by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")* on topic *[Wrong default variant in shopping cart](/forum/2-general-talk-about-hikashop/870396-wrong-default-variant-in-shopping-cart#167914 "-- url of the page with the problem -- :   livelaughlove.com/component/hikashop/classic-script-boxy-tee  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : N/A  We have a product (at least this is the only one so far) that has a number of size variants. The product default is in Medium size &quot;M&quot;. And if the customer chooses any other size it will reflect that size in the shopping cart.  The problem arises if the customer does not make a size selection and adds the product directly to cart. In that case the product is added with a XS size  Here is the link:   livelaughlove.com/component/hikashop/classic-script-boxy-tee  Here is a screenshot of the product variant screen in the back end. Additionally, there is nothing out of place, that I can see either in the XS or M variant internally  This is what it loos like in the DB:  And finally here is the CSV")*

Thank you for the kind reply.

I didn't notice the "Clear" was selected in the backend. All this time I was seeing the correct color.

- [ ![2014-08-18&#95;2-21-36&#95;PM.jpg](/forum/attachment/19061) ](/forum/attachment/19061 "...2-21-36&#95;PM.jpg") [ ](/forum/attachment/19061?download=1 "...2-21-36&#95;PM.jpg")
- [ ![2014-08-18&#95;2-23-26&#95;PM.jpg](/forum/attachment/19062) ](/forum/attachment/19062 "...2-23-26&#95;PM.jpg") [ ](/forum/attachment/19062?download=1 "...2-23-26&#95;PM.jpg")

Last edit: 12 years 2 months ago by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MDM5Ni13cm9uZy1kZWZhdWx0LXZhcmlhbnQtaW4tc2hvcHBpbmctY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 2 months ago [\#167921](#167921) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Wrong default variant in shopping cart](/forum/2-general-talk-about-hikashop/870396-wrong-default-variant-in-shopping-cart#167921 "-- url of the page with the problem -- :   livelaughlove.com/component/hikashop/classic-script-boxy-tee  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : N/A  We have a product (at least this is the only one so far) that has a number of size variants. The product default is in Medium size &quot;M&quot;. And if the customer chooses any other size it will reflect that size in the shopping cart.  The problem arises if the customer does not make a size selection and adds the product directly to cart. In that case the product is added with a XS size  Here is the link:   livelaughlove.com/component/hikashop/classic-script-boxy-tee  Here is a screenshot of the product variant screen in the back end. Additionally, there is nothing out of place, that I can see either in the XS or M variant internally  This is what it loos like in the DB:  And finally here is the CSV")*

Hi,

We are working on the new product interface in HikaMarket and such problem (for the selection of the default variant) won't be possible anymore.
We are doing a lot of "research" in order to provide a better UI for the product management ; I hope that the new interface (which will firstly available in HikaMarket) will pleased you.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MDM5Ni13cm9uZy1kZWZhdWx0LXZhcmlhbnQtaW4tc2hvcHBpbmctY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.082 seconds

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