carthrina Posted June 25, 2007 Share Posted June 25, 2007 Hi everybody. I hope someone will help me with this topic. My problem is that I would like to add a link into the email of order confirmation (the automatically sent email when the costumer confirms his order), just after the order details. This link should be in this format : www.website.com/invoice.php?Amount=9.25&Order=109 Your suggestions are so much appreciated. Thank you. Link to comment Share on other sites More sharing options...
photofxplus Posted June 25, 2007 Share Posted June 25, 2007 Hi everybody. I hope someone will help me with this topic. My problem is that I would like to add a link into the email of order confirmation (the automatically sent email when the costumer confirms his order), just after the order details. This link should be in this format : www.website.com/invoice.php?Amount=9.25&Order=109 Your suggestions are so much appreciated. Thank you. Try this on page: (This would be for the email sent after payment, is that the one you are referring to?) catalog/checkout_process.php Around line 250 you will see: $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; Insert this after: $email_order .= "\n" . "www.website.com/invoice.php?Amount=9.25&Order=109" . "\n"; The variable $email_order holds the text for the email. So you can insert your own text almost anywhere after the comment: // lets start with the email confirmation and before the function: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Should work.. Lloyd Link to comment Share on other sites More sharing options...
carthrina Posted June 26, 2007 Author Share Posted June 26, 2007 Try this on page: (This would be for the email sent after payment, is that the one you are referring to?)catalog/checkout_process.php Around line 250 you will see: $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; Insert this after: $email_order .= "\n" . "www.website.com/invoice.php?Amount=9.25&Order=109" . "\n"; The variable $email_order holds the text for the email. So you can insert your own text almost anywhere after the comment: // lets start with the email confirmation and before the function: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Should work.. Hi, many thanks to you for your suggestion. I forgot to mention that this link should be more intelligent. The order number (Order=109 ) and the total paid (Amount 9.25) should change according to each order. I think this should be done using some variables, but i don't know which ones :( Your suggestions are always welcome.. Link to comment Share on other sites More sharing options...
satish Posted June 26, 2007 Share Posted June 26, 2007 do a var dump of $order to get the idea which variable with in it has the details for order id and amount and use those variables. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
TracyS Posted July 9, 2007 Share Posted July 9, 2007 Would you happen to know what to do if the "/n" prints in the email as /n ? Thanks! ~Tracy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.