Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to add text to the checkout_shipping.php file?


99darkgreenGT

Recommended Posts

Posted

how or where do i add a text description that i want to appear when the customer is at the checkout_shipping.php page? i am really php illiterate, so any help will be appreciated.

 

basically, where in the checkout_shipping.php file do i add the text so it will appear when the customer is at that page.

 

thanks in advance.

chris

  • 8 months later...
Posted

This is what I did to add a comment on the checkout_shipping page to let customers know that shipping insurance was automatically added...

 

Edit the /catalog/includes/languages/english/checkout_shipping.php file:

 

around line #27 you should see:

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

 

then add something like this on the next line:

define('TEXT_CHOOSE_COMMENTS', 'For your protection, Shipping Insurance is automatically added to your order. If you don't wish to have insurance protection, please type "no insurance" in the box below, and press "CONTINUE" to proceed.');

 

Now you need to include your newly defined "TEXT_CHOOSE_COMMENTS" by editing the /catalog/checkout_shipping.php file:

 

around line#374 - add the "TEXT_CHOOSE_COMMENTS" line under the "TABLE_HEADING_COMMENTS" line:

 

<tr>

<td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>

<td class="main"><?php echo TEXT_CHOOSE_COMMENTS; ?></td>

</tr>

 

This puts your newly created comment to the right of the heading "Add comments about your order"... after looking at it, I think I'm going to move it under the heading instead of the to the right...

 

Anyway, hope that helps.

 

-Darren

Archived

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

×
×
  • Create New...