Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a question at Check Out


Guest

Recommended Posts

Posted

I want to add a simple

"how did you hear about us"

at check out.

 

Is there a way to make this a field at check out, where the customer can submit any info they please? Max certain number of characters.

Posted
I want to add a simple

"how did you hear about us"

at check out.

 

Is there a way to make this a field at check out, where the customer can submit any info they please? Max certain number of characters.

 

 

You could go to your catalog/checkout_shipping.php and find these lines

 

<tr>
			<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
		  </tr>

 

and add these lines just above them

 

<tr>
		  <td><b>Please let us know how you found us</b></td>
		  </tr>

 

So that they look like this

 

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
		  <td><b>Please let us know how you found us</b></td>
		  </tr>
		  <tr>
			<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
		  </tr>
		</table></td>

 

or goto catalog/includes/languages/english/checkout_shipping.php and find this

 

define('TABLE_HEADING_COMMENTS', 'Add Comments About Your Order');

 

And put anything you want where 'Add Comments About Your Order' is.

 

Either is easier than trying to program in a question with it's own field.

Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!!

 

Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience.

 

The quickest way to learn is to forget to BACKUP!

Archived

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

×
×
  • Create New...