Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Custom email footer with order number [problem]


Guest

Recommended Posts

Posted

Hi,

 

I am trying to add a custom footer to the order confirmation email. The footer is only intended for customers who use the COD payment method, and the text has been added in the catalog/includes/languages/english/modules/payment/cod.php file with a define('MODULE_PAYMENT_COD_TEXT_EMAIL_FOOTER'....

 

It works fine. The problem is that this text includes an URL the customer must click to confirm a COD purchase, and an important part of that URL is the order number.

 

This is how the URL looks in the language cod.php file:

' . tep_href_link("account_customer_confirm.php", 'order_id=' . $insert_id, 'SSL') . '

 

The problem is that though the URL looks fine in the confirm email, the order number ($insert_id) never displays!!!

 

Can anyone help in this? It is important that I get the order number as part of this URL. How can I do it? Please note that my knowledge of PHP is very limited...

 

Thanks very much for your help!!!

Posted

Hi Paco,

 

This might work

 

In checkout_process.php after these lines;

 

    if ($payment_class->email_footer) { 

     $email_order .= $payment_class->email_footer . "nn";

   }

 

Paste this

 

    if ($payment_class->title == 'cod') { 

     $email_order .= "Click here " . tep_href_link("account_customer_confirm.php", 'order_id=' . $insert_id, 'SSL') . " to confirm your order.nn";

   }

 

Change 'cod' to the title in your cod.php file also you can change the 'Click here......to confirm your order.' text too!!!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

I would do like this:

 

 . tep_href_link("account_customer_confirm.php", 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL')

Archived

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

×
×
  • Create New...