Skip to main content

Changing default option selction to Yes

5 years 6 months ago #332330 by LehmannVisual
-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.4.18

How do I default an option selection to yes (instead of the No)?
(I've found an forum topic for it, but the PHP code has changed since then)

Thanks

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

5 years 6 months ago #332334 by nicolas
Hi,

In the file option.php that you can edit via the menu Display>Views, you can add the line:
Code:
$value = $optionElement->product_id;
For example, you can put it before the line:
Code:
$option_values[] = JHTML::_('select.option', $optionElement->product_id, $text);

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

Time to create page: 0.054 seconds
Powered by Kunena Forum