Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mandatory Comments Field


gate714

Recommended Posts

Posted

During checkout, is there a way to make the textatea "Add Comments About Your Order " field a mandatory entry???

Posted

What would be in the field? For example, if someone put a period and hit submit, would that be enough? What information do you want to have?

Always back up before making changes.

Posted

I already have the field populated with some text describing what to add. So even a period would be OK.

Posted

Here is the code I am trying to make mandatory input of any character:

 

from checkout_payment.php

 

 

<?php echo tep_draw_infoBox_top();?>

 

<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr>

<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', 'PO#:[ ]

Job#:[ ]', $comments); ?></td>

</tr>

</table>

 

<?php echo tep_draw_infoBox_bottom();?>

Archived

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

×
×
  • Create New...