Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping cost in mail


Guest

Recommended Posts

Posted

Hi,

 

Please, I'd like to know how I can insert the shipping cost in my order value, because I need to send the client an e-mail with this information .

 

Thanks, bye

 

For example:

 

Store Name

.....

.....

.....

 

Shipping Cost:

------------------------------------------------------

Value: U$ 30,00

etc

 

.....

.....

.....

 

Payment form

------------------------------------------------------

............

.......

.....

Posted

in checkout_process.php, find the email generating part. There oyu need to add an if to the order total loop:

 

 for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
$email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
// getting the shipping so we can use it later
if ($order_totals[$i]['code'] == 'ot_shipping') {
	$result_order = strip_tags($order_totals[$i]['text']);
}
 }

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Archived

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

×
×
  • Create New...