Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Addding pre defined text to Order Comments


gate714

Recommended Posts

Posted

We have a hidden store and need a reminder in the order comments field for our customer. All we want is to add the text "PO#: " as pre-defined characters in the box to prompt the user to enter the data.

 

Any idea how?

Posted

B) To clarify: during checkout you reach a field which states "

Add Comments About Your Order "

 

thats were i want to put some pre-defined text.

Posted

in checkout_confirmation i found:

 

('HEADING_ORDER_COMMENTS', 'Comments About Your Order');

 

define('TEXT_EDIT', 'Edit');

?>

 

But I don't know the easy way to change the definition.

Posted

/catalog/checkout_payment.php

 

Old code:

 

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

New code:

 

<?php echo tep_draw_textarea_field('comments', 'soft', '60', '5' ,'PO#'); ?>

BACKUP THE FILE BEFORE EDITING.

 

You break it - You bought it...

 

I haven't done this in this place, but this is how I did it elsewhere on an osC site.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...