- Posts: 35
- Thank you received: 0
Showing Product Options as check boxes
- uncletwisty
-
Topic Author
- Offline
Less
More
14 years 11 months ago #26741
by uncletwisty
Showing Product Options as check boxes was created 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
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.
14 years 11 months ago #26759
by nicolas
Replied by nicolas on topic Re: Showing Product Options as check boxes
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.
- uncletwisty
-
Topic Author
- Offline
Less
More
- Posts: 35
- Thank you received: 0
14 years 11 months ago #26766
by uncletwisty
Replied by uncletwisty on topic Re: Showing Product Options as check boxes
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.
14 years 11 months ago #26767
by nicolas
Replied by nicolas on topic Re: Showing Product Options as check boxes
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.
$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.
- uncletwisty
-
Topic Author
- Offline
Less
More
- Posts: 35
- Thank you received: 0
14 years 11 months ago #26770
by uncletwisty
Replied by uncletwisty on topic Re: Showing Product Options as check boxes
You rule.
Thanks.
Thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds