Changing default option selction to Yes

  • Posts: 7
  • Thank you received: 1
  • Hikashop Business
3 years 10 months ago #332330

-- 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.

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 10 months ago #332334

Hi,

In the file option.php that you can edit via the menu Display>Views, you can add the line:

$value = $optionElement->product_id;
For example, you can put it before the line:
$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.033 seconds
Powered by Kunena Forum