Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Must Select attributes option


jjackow

Recommended Posts

can anyone tell me how to change the product options so it defaults to "Please Select". I have 4 attributes for a product but in the drop down box on the products page I need it to show "Please Select" as the default. Right now it is showing an actual product attribute as the default and the "Please Select" option is in the drop down list which won't work. I would like to change this somehow in the code so I won't have to add an atrributes sort module.

Link to comment
Share on other sites

If I remember well some people have used "-- Please Select --" as the label and then sorted the option values alphabetically. would that work for you ?

 

You'll need to add

order by products_options_values_name

 

to the sql selectstrings that contain this field on the product info page.

 

HTH

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...