Please fill in all required fields...

P

No avatar

2007-01-27 09:22

Hi guys,


does anyone know how I can turn off the function, which recognizes if a order field filled in.
What I want is, that a customer has to fill in his Name, Surename, Company, Street .. etc. --> these are therequired fields. In addition, the order form has the fields Telephon, email and Courier, these fields should be displayed in the order page, but customers have the option to fill them in or not.

There should be an alert if a customer does not fill in his "required" data and no error message if he does not fill in an email or telephone number. Yes, I know this might sound a little bit crazy, but my customer are elder persons and some of them don't have an email address or not willed to give in their Telephon numbers....

Greats,

Philip




maybe someone knows the answer to my question.

treewood (OpenSolution)

Avatar: treewood

2007-01-27 10:11

P - You should know HTML and little PHP to change this:
- templates/orders_delivery.tpl - here You have delete fields to check by checkForm. find ,Array( 'sTelephone' ) and ,Array( 'sEmail', 'email' ) in this file and delete and other fields that You want be required
- core/orders.php - find function checkOrderFields(), there You need to delete fields too. for example && checkLength( $aForm['sTelephone'], 0 ) and && checkEmail( $aForm['sEmail'] ) if You dont want have required fields to Telephone and Email

P

No avatar

2007-01-27 11:43

thx, that was a good hack, it works perfectly

Back to top
about us | contact