Skip to main content

Showing Product Options as check boxes

More
14 years 11 months ago #26741 by uncletwisty
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.

More
14 years 11 months ago #26759 by nicolas
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.

More
14 years 11 months ago #26766 by uncletwisty
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.

More
14 years 11 months ago #26767 by nicolas
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.

More
14 years 11 months ago #26770 by uncletwisty
You rule.

Thanks.

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

Time to create page: 0.174 seconds
Powered by Kunena Forum