0

I have a product with two variations. Shoppers can choose different sizes (paying more for larger sizes) and they can also choose whether to add a carrying case or not.

The different sizes are implemented as a select list. No problem there. The carrying case option is boolean. I want to represent it as a checkbox (like Ubercart can) but can only get it to show as a single radio button and, of course, when you have a single radio button, once it's been turned on, it cannot be turned off.

Under 'Attribute Field Settings', the 'Attribute selection widget' only allows for 'Select list' or 'Radio buttons'. Is there a way to represent it as checkbox? Or, what is the best way to handle binary (On/Off) product variations?

  • The reason it is either a select or radio is because only one value is acceptable. So really what you need to do is allow more then one. Can you explain how to implemented the carrying case option a bit more? – Steven Jun 25 '14 at 16:43
  • For example, if the product is a laptop, the customer may or may not want to purchase a carrying case with it. If he wants the carrying case, he would be able to select it with a checkbox and deselect it if he changes his mind. With the radio button, once it's been selected, it stays that way. – user320691 Jun 25 '14 at 17:15
  • Did you ever figure this out? I need the same thing... – maddentim Nov 29 '17 at 22:45
  • I did but can't remember how and the site has since been refreshed by someone else so I can't refer to it. I am currently working on a module for D8 Commerce 2 that does the same thing but it's very alpha. github.com/creativepragmatic/commerce_product_options – user320691 Dec 1 '17 at 14:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.