Post by kg0925 » Wed Mar 29, 2017 11:15 pm

hello i want a modification in product option in opencart version 1.5.6.4. i want product option not required by default. i tried but couldn't find any solution.

New member

Posts

Joined
Wed Mar 29, 2017 11:09 pm

Post by litextension » Thu Mar 30, 2017 4:58 pm

Hi. I see that there are many OpenCart extensions to add additional information

LitExtension - Shopping Cart Migration Expert
Visit us at: https://litextension.com


User avatar
New member

Posts

Joined
Wed Aug 03, 2016 4:22 pm

Post by sachin6609 » Thu Mar 30, 2017 5:49 pm

kg0925 wrote:
Wed Mar 29, 2017 11:15 pm
hello i want a modification in product option in opencart version 1.5.6.4. i want product option not required by default. i tried but couldn't find any solution.
Hii

Open the product_from.tpl from the below path

Go To admin / view / template / catalog and then open the product_form.tpl

Then serch the below one

html += ' <option value="0"><?php echo $text_no; ?></option>';

and replace it with the below one

html += ' <option value="0" selected="selected"><?php echo $text_no; ?></option>';

Then save the file and upload and check it

when you add any option to any product the option is not require by default

Please take the file back up first

Thanks

Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by kg0925 » Thu Mar 30, 2017 10:34 pm

i tried your suggestion sachin. but when i apply it. option value stops appearing while search. so i don't think it will work. any other suggestion?

New member

Posts

Joined
Wed Mar 29, 2017 11:09 pm
Who is online

Users browsing this forum: edkny and 119 guests