AndreD Posted August 25, 2011 Posted August 25, 2011 I attached a part of checkout_process.php below. (where the email confirmation is sent) I'd like to add a simple HTTP link to a static .pdf file on my site (In Norway we are required to mention that customer have 14days refund/return right, or else he got 6 months.) so - in the line *** I'd like to publish a php line like : your rights<a href="http://server.no/rights.php"> Download here</a><br> how to do it right ? $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . *** link to PDF goes here*** EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
Mort-lemur Posted August 25, 2011 Posted August 25, 2011 Hello, Have a look at the MATC (Must accept terms and comnditions) contribution - I think it will do just what you need Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
satish Posted August 26, 2011 Posted August 26, 2011 $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . EMAIL_TEXT_PDF . ' ' . tep_href_link(FILENAME_REFUND_RETURN, '', '') . "\n" . *** link to PDF goes here*** EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; Also you need to define : FILENAME_REFUND_RETURN in filename and EMAIL_TEXT_PDF 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.
AndreD Posted August 26, 2011 Author Posted August 26, 2011 Thank you both, - I needed ti add "NONSSL" in: EMAIL_TEXT_PDF . ' ' . tep_href_link(FILENAME_REFUND_RETURN, '', 'NONSSL') . "\n" . Nice solution.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.