Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing customer email notify


marcel emmen

Recommended Posts

I notice that the e-mail which customers receive are build from the checkout_process.php file. This e-mail is very basic. What I want is depending on the choice of the payment that the mail is different. If people place a order and choose to pay by money check that the text in the email give instuctions on how to handle.

 

Is there anyone who has a suggestion?

 

Thanks

Marcel

Link to comment
Share on other sites

I notice that the e-mail which customers receive are build from the checkout_process.php file. This e-mail is very basic. What I want is depending on the choice of the payment that the mail is different. If people place a order and choose to pay by money check that the text in the email give instuctions on how to handle.

 

Is there anyone who has a suggestion?

 

Thanks

Marcel

 

Take a look at the top, where it builds the SQL array statement, right under the order_totals declaration. In there (Around line 83 in the newer snapshots) is the payment method variable. Assign this to a holding variable.

 

In the include version of checkout_process.php, create definitions for each of your payment types.

 

Example:

  define('MONEY_ORDER_INSTRUCTIONS', 'Place your instructions here');

 

Then where it creates the email, add in an if/then/elseif/ type statement to add in the correct instruction definition.

 

Aodhan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...