Jump to content

HTML format of digital goods download emails


convict
 Share

Recommended Posts

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>",

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...