Showing Product Options as check boxes

  • Posts: 35
  • Thank you received: 0
13 years 1 month ago #26741

My client (a granola company) would like to offer a customized granola to his customers, I know this is possible through product options, but I am unsure how to show the options as a checkbox menu instead of dropdown.

For example,

The Product: Custom Granola

The Options: Cranberries, Apples, Walnuts, Cinnamon, et cetera,

Each would be an extra 50 cents added to the price of the whole bag.

I could work around the Drop Downs, but I'd rather have a checkbox for these options, as they could have all or none added to their granola.

Thanks in advance

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 1 month ago #26759

There is no option for that. If you want to display the options as checkboxes, you will need to edit the file "option" of the view "product" via the menu Display->Views and modify the code there to display the checkboxes instead of the dropdowns

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
13 years 1 month ago #26766

I'm not finding the drop down declaration in that file, and I being dumb or missing something?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 1 month ago #26767

It's that line:
$html = JHTML::_('select.genericlist', $this->values, $map, 'class="inputbox" size="1" onchange="hikashopChangeOption();"', 'value', 'text', (int)$value,$id );

It's a call to a joomla library which displays the dropdown.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
13 years 1 month ago #26770

You rule.

Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.047 seconds
Powered by Kunena Forum