Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Including a link in the final message to the buyer


JUMASOL

Recommended Posts

Posted

Hi,

 

When the client receives the e-mail message informing about the details of the purchase, there is a reference to the payment option (credit card, moneyorder, or whatever).

 

I would like to include a reference to the section in the website that describes the different payment methods. Thus, a link similar to that one including “…account_history_info.php?order_id=26”

 

I know that there is some code (probably in confirmation.php) that handles the sending of messages to the customers, and perhaps there might be a way to include a piece of code so as to have such a link to the payment-method page in the message.

 

Any idea about it?

 

Thanks

Posted

The e-mails are generated in the checkout_process.php file. Within that file search for

 

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
				EMAIL_SEPARATOR . "\n";

 

after the first line you could hardcode a line in there to make it looks something like this:

 

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
					'<a href="http://www.yoursite.com/PAYMENT_DESCRIPTIONS.php" target="_new">Payment Descriptions</a>' . "\n".
				EMAIL_SEPARATOR . "\n";

 

Test that first to be sure it's dipslayed properly by doing a test order on your site. For an easy way to test orders w/o using a sandbox server just turn on your COD payments real quick and process an order then quickly turn COD off if it's not one of your usual options. The way I have it laid out above will include the page that you want to link to directly under the payment option text that is included in the e-mail.

 

If you are using paypal IPN you would also have to edit the file in the /ext/ folder that corresponds to Paypal and all other IPN files if you are using other payment methods that bypass the checkout_process.php file.

Archived

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

×
×
  • Create New...