Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order Email Notifications Custom Configuration


xmitman

Recommended Posts

Hi Everyone,

 

I'm trying to configure order emails with information I need to process orders for my company. It would appear I need to modify checkout_process.php under both Catalog/checkout_process.php and Catalog/ includes/languages/english/checkout_process.php . I'm not very good with PHP so any help would be sincerely appreciated. I am running the default configuration. I would like to do the following.

 

1. I would like to receive the customers email address and phone number

 

2. I would like to eliminate the Billing Address and have it display the Delivery Address 3 times.

 

3. Instead of listing the Products ordered, is it possible to display Item or Model number? And how do I set up Item or Model numbers in my cart?

 

 

Again, any help would be sincerely appreciated.

 

Best Regards,

 

Mark

Link to comment
Share on other sites

/catalog/checkout_process.php

 

It's already setup for the model number:

 

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

 

1. I would like to receive the customers email address and phone number

Find this code:

 

  $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . 
			  EMAIL_SEPARATOR . "\n" . 
			  $products_ordered . 
			  EMAIL_SEPARATOR . "\n";

Replace it with this code:

 

  $email_order .= 'Customer: ' . $order->customer['firstname'] . ' ' . $order->customer['lastname'] . "\n" . 
			  'Email Address: ' .  $order->customer['email_address'] . "\n" . 
			  'Telephone: ' . $order->customer['telephone'] . "\n" . 
			  EMAIL_SEPARATOR . "\n";

 $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . 
			  EMAIL_SEPARATOR . "\n" . 
			  $products_ordered . 
			  EMAIL_SEPARATOR . "\n";

 

2. I would like to eliminate the Billing Address and have it display the Delivery Address 3 times.

Find this code:

 

  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
			  EMAIL_SEPARATOR . "\n" .
			  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";

Replace it with:

 

  for ( $j = 1; $j <= 3; $j++ ) {
 $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . 
				EMAIL_SEPARATOR . "\n" .
				tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
 }

 

3. Instead of listing the Products ordered, is it possible to display Item or Model number?

Model number already included (as stated earlier).

 

It's always a good idea to backup any file before making any edits.

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 >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...