convict Posted January 31, 2007 Share Posted January 31, 2007 HTML format of digital goods download emails includes/orderSuccess.inc.php SEARCH FOR $text .= sprintf($lang['front']['orderSuccess']['digi_email_body2'], $digitalProducts[$i]['name'], $glob['storeURL'], $digitalProducts[$i]['productId'], base64_encode($cart_order_id), $digitalProducts[$i]['accessKey']); } REPLACE WITH $text .= sprintf($lang['front']['orderSuccess']['digi_email_body2'], $glob['storeURL'], $digitalProducts[$i]['productId'], base64_encode($cart_order_id), $digitalProducts[$i]['accessKey'], $digitalProducts[$i]['name']); } SEARCH FOR (last occurence, there are two..) $mail->setText($text); REPLACE WITH $mail->setHtml($text); language/en/lang.inc.php SEARCH FOR 'digi_email_body1' => "Dear %s, Thank you for your order no: %s placed on %s Below are the links you need to access the digital products you have ordered. IMPORTANT these links will expire on %s and you have %s attempts to download them. If you have any problems please contact us stating your order number. ~~~~~~~~~~~~~~~~~~~~~~~~~~\n", 'digi_email_body2' => "%s DOWNLOAD LINK: %s/download.php?pid=%s&oid=%s&ak=%s ~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n", REPLACE WITH 'digi_email_body1' => "Dear %s,<BR><BR> Thank you for your order no: %s placed on %s<BR><BR> Below are the links you need to access the digital products you have ordered.<BR><BR> IMPORTANT these links will expire on %s and you have %s attempts to download them. If you have any problems please contact us stating your order number.<BR><BR> DOWNLOAD LINKS:<BR><BR>", 'digi_email_body2' => "<a href='%s/download.php?pid=%s&oid=%s&ak=%s'>%s</a><BR>", Quote Link to comment Share on other sites More sharing options...
Guest Posted February 4, 2007 Share Posted February 4, 2007 Convict, Thanks - it works perfectly! One question, could I include styling for the font, etc? Would this go in the language/en/lang.inc.php file? Quote Link to comment Share on other sites More sharing options...
convict Posted February 4, 2007 Author Share Posted February 4, 2007 Convict, Thanks - it works perfectly! One question, could I include styling for the font, etc? Would this go in the language/en/lang.inc.php file? Welcome! Well do use direct styling :( Quote Link to comment Share on other sites More sharing options...
Guest Posted February 4, 2007 Share Posted February 4, 2007 Well I use CSS throughout the site - can I style it like any html page? Quote Link to comment Share on other sites More sharing options...
convict Posted February 5, 2007 Author Share Posted February 5, 2007 Well I use CSS throughout the site - can I style it like any html page? If you want to use CSS related to yor site you have to add html related code (whole page) + <link href="http://your.site.tld/path_to/filename.css" rel="stylesheet" type="text/css" /> in language file email part OR direct styling like style="any style property" in related html tag you use Quote Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2007 Share Posted February 5, 2007 Excellent... I shall play around with it and see what suits best. Might just go for direct styling. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.