Post by EclipseCash » Fri Mar 16, 2018 11:14 pm

Is there anyway I can have the drop down lists on my website to default to a specific product instead of it saying "Please Select"

The current way it's setup is
--- Please Select ---
Product 1
Product 2
Product 3

I would like to be able to remove the Please select option if possible.

Newbie

Posts

Joined
Fri Mar 16, 2018 11:02 pm

Post by straightlight » Sat Mar 17, 2018 3:46 am

Hi. No OC version posted. Please read the most recent forum rules.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by EclipseCash » Sat Mar 17, 2018 5:56 am

OpenCart Version 2.2.0.0

Newbie

Posts

Joined
Fri Mar 16, 2018 11:02 pm

Post by paulfeakins » Mon Mar 19, 2018 7:14 pm

EclipseCash wrote:
Fri Mar 16, 2018 11:14 pm
Is there anyway I can have the drop down lists on my website to default to a specific product instead of it saying "Please Select"
What dropdown specifically are you talking about?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Mon Mar 19, 2018 8:16 pm

In catalog/view/theme/<your_theme>/template/product/product.tpl file, look for all instances of:

Code: Select all

<option value=""><?php echo $text_select; ?></option>
remove them.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 185 guests