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

#   Product Options Checkbox adding to cart regardless of checked

##

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

Less More

- Posts: 6
- Thank you received: 2
-
-

3 months 4 weeks ago [\#372532](#372532) by [daryd](/forum/user/83857-daryd "View daryd's Profile")  *[Product Options Checkbox adding to cart regardless of checked](/forum/3-bug-report/910654-product-options-checkbox-adding-to-cart-regardless-of-checked#372532 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.7 -- PHP version -- : 8.4.23  Hello, I'm running into a strange issue on two sites that have a few products with an option set under Specifications. I have Display &gt; Product Options &gt; Product Selection Method set to &quot;checkbox,&quot; and the option is added to the cart regardless of whether it's checked on the product page. Changing this setting to &quot;single dropdown&quot; seems to clear the issue and functions as intended. I can also uncheck the option in the cart's edit screen to remove it.  I'm wondering if the checkbox on the cart's edit screen defaults to &quot;checked&quot; regardless of the customer's choice, but I'm not 100% certain. I also switched to the Cassiopeia template to rule out Gantry and the Chimera theme, but got the same result.  Any help would be greatly appreciated. Thank you!")* was created by *[daryd](/forum/user/83857-daryd "View daryd's Profile")*

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 5.4.7
-- PHP version -- : 8.4.23

Hello, I'm running into a strange issue on two sites that have a few products with an option set under Specifications. I have Display &gt; Product Options &gt; Product Selection Method set to "checkbox," and the option is added to the cart regardless of whether it's checked on the product page. Changing this setting to "single dropdown" seems to clear the issue and functions as intended. I can also uncheck the option in the cart's edit screen to remove it.

I'm wondering if the checkbox on the cart's edit screen defaults to "checked" regardless of the customer's choice, but I'm not 100% certain. I also switched to the Cassiopeia template to rule out Gantry and the Chimera theme, but got the same result.

Any help would be greatly appreciated. Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MTA2NTQtcHJvZHVjdC1vcHRpb25zLWNoZWNrYm94LWFkZGluZy10by1jYXJ0LXJlZ2FyZGxlc3Mtb2YtY2hlY2tlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

3 months 4 weeks ago [\#372533](#372533) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Options Checkbox adding to cart regardless of checked](/forum/3-bug-report/910654-product-options-checkbox-adding-to-cart-regardless-of-checked#372533 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.7 -- PHP version -- : 8.4.23  Hello, I'm running into a strange issue on two sites that have a few products with an option set under Specifications. I have Display &gt; Product Options &gt; Product Selection Method set to &quot;checkbox,&quot; and the option is added to the cart regardless of whether it's checked on the product page. Changing this setting to &quot;single dropdown&quot; seems to clear the issue and functions as intended. I can also uncheck the option in the cart's edit screen to remove it.  I'm wondering if the checkbox on the cart's edit screen defaults to &quot;checked&quot; regardless of the customer's choice, but I'm not 100% certain. I also switched to the Cassiopeia template to rule out Gantry and the Chimera theme, but got the same result.  Any help would be greatly appreciated. Thank you!")*

Hello,

Thank you for the clear report, we were able to reproduce it and it is indeed a bug that was present in 6.5.0.

In a recent version of HikaShop the product page was changed so that it is no longer wrapped in a single form element (this gives more freedom for customization). As a side effect, when the options are displayed as checkboxes, the add to cart was sending the option to the server even when its box was left unchecked, so it got added to the cart. The single dropdown works because it always sends an explicit "No" value, which the server ignores.

The good news is that this is already fixed in the current build of HikaShop. You just need to update: download the latest HikaShop package from your account on our website and install it over your current site (installing over an existing install only refreshes the files, it does not touch your data). After that, do a hard refresh on your frontend and the checkbox options will only be added when they are actually checked.

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

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

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

Less More

- Posts: 6
- Thank you received: 2
-
-

3 months 3 weeks ago [\#372545](#372545) by [daryd](/forum/user/83857-daryd "View daryd's Profile")  Replied by *[daryd](/forum/user/83857-daryd "View daryd's Profile")* on topic *[Product Options Checkbox adding to cart regardless of checked](/forum/3-bug-report/910654-product-options-checkbox-adding-to-cart-regardless-of-checked#372545 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.7 -- PHP version -- : 8.4.23  Hello, I'm running into a strange issue on two sites that have a few products with an option set under Specifications. I have Display &gt; Product Options &gt; Product Selection Method set to &quot;checkbox,&quot; and the option is added to the cart regardless of whether it's checked on the product page. Changing this setting to &quot;single dropdown&quot; seems to clear the issue and functions as intended. I can also uncheck the option in the cart's edit screen to remove it.  I'm wondering if the checkbox on the cart's edit screen defaults to &quot;checked&quot; regardless of the customer's choice, but I'm not 100% certain. I also switched to the Cassiopeia template to rule out Gantry and the Chimera theme, but got the same result.  Any help would be greatly appreciated. Thank you!")*

Installing the current build fixed the problem and worked perfectly on both sites.. Once again thank you so much for your quick reply and all the help!

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

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

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