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

#   Prevent Adding Product to Cart Without Selecting a Variant

##

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

Less More

- Posts: 966
- Thank you received: 11
-
-

6 years 3 months ago [\#322625](#322625) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  *[Prevent Adding Product to Cart Without Selecting a Variant](/forum/50-feature-request/900525-prevent-adding-product-to-cart-without-selecting-a-variant#322625 "This feature should be part of Hikashop for a better user experience and to prevent mistakes. Every eCommerce site that I buy from do not allow you to add anything to the cart until you select a...")* was created by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")*

This feature should be part of Hikashop for a better user experience and to prevent mistakes. Every eCommerce site that I buy from do not allow you to add anything to the cart until you select a size, colour, or whatever the variant is, unless the product has no variant. Also, the default item should not be automatically added to the cart.

Unless I'm missed this feature, I find that with Hikashop a customer can buy without making a selection and this can cause confusion to buyers and mistakes to sellers.

For example, a buyer can add an item to the cart, and purchase, without realizing that they did not select the variant that they actually needed.

Maybe this can give you an idea of what I'm referring to:
[ shopify.dev/tutorials/customize-theme-ho...option-to-drop-downs](https://shopify.dev/tutorials/customize-theme-how-to-add-a-pick-an-option-to-drop-downs)

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZlYXR1cmUtcmVxdWVzdC85MDA1MjUtcHJldmVudC1hZGRpbmctcHJvZHVjdC10by1jYXJ0LXdpdGhvdXQtc2VsZWN0aW5nLWEtdmFyaWFudD90bXBsPW1hcmtkb3du) 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: 86358
- Thank you received: 14290
-
-

6 years 3 months ago [\#322632](#322632) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Prevent Adding Product to Cart Without Selecting a Variant](/forum/50-feature-request/900525-prevent-adding-product-to-cart-without-selecting-a-variant#322632 "This feature should be part of Hikashop for a better user experience and to prevent mistakes. Every eCommerce site that I buy from do not allow you to add anything to the cart until you select a...")*

Hi,

It is not possible to add a product to the cart without selecting a variant in HikaShop.
That's because a variant is automatically preselected.
However, I remember that you recently talked to me here:
[ www.hikashop.com/forum/product-category-...-causing-issues.html](https://www.hikashop.com/forum/product-category-display/900499-hidden-variant-causing-issues.html)
In this thread, you say that you modified HikaShop to hide the default variant. So in that case, the add to cart button is the one of the default variant that you hide. The code I gave you on this thread should allow you to hide that default add to cart button so that it only appears after you selected another variant.

Now what you can do is activate the "Characteristics dynamic display" setting of your HikaShop configuration. If you have products with more than one characteristic, the system will automatically work with no variant selected and the customer will be able to select a variant and then the add to cart button will appear.
For the products where you only have one characteristic, instead of having an extra variant that you set as default and hide, I would rather recommend to add an extra characteristic with one value and set it as the first one.
Then, hide the first characteristic selector with CSS, and you'll have a second characteristic selector which will work exactly like you want without the issue of being able to add to the cart the product before the selection of the variant is made.

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

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