Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product options pulldown


Luna

Recommended Posts

Posted

If a customer orders a producs that has options and he forgets to select one he always gets the first option.

 

What i like to do is this: (in /functions/html_output.php)

 

give the tep_pull_drop_down_menu() function a default selected like:

 

$field .= '<option selected>' . PULL_DOWN_DEFAULT . '</option>';

 

No problem sofar, but i would like to add a java script alert or html error msg. when there is no selected option. This way there is no possibility that a customer gets i.e the wrong colour or forgets to select an option.

 

Does anybody know how this should be done?

 

(my php skills are getting better every day but i'm not a professional yet) :wink:

 

Frank.

Archived

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

×
×
  • Create New...