Changing default option selction to Yes

  • Posts: 139
  • Thank you received: 1
9 years 10 months ago #218418

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.5.4

How do I default an option selection to yes (instead of the No)?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #218447

Hi,

You can edit the view "product / option" and add the code:

$value = $optionElement->product_id;
Right after:
if(!$optionElement->product_published || (!$this->config->get('show_out_of_stock',1) && $optionElement->product_quantity==0)) continue;

www.hikashop.com/support/support/documen...ize-the-display.html

The following user(s) said Thank You: abasel

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

  • Posts: 139
  • Thank you received: 1
9 years 10 months ago #218559

Perfect, thanks :cheer:

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

Time to create page: 0.064 seconds
Powered by Kunena Forum