I have the same code segment in the thank you page definition. and works perfectly.
Following is a code segment from my shopping cart templete.
- Code: Select all
#############################
[-- DEFINE ThankYou_Email --]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
# ShopSite Classic Thank You E-Mail Template
<html>
<head>
<title>[-- STORE.SC_ThankYou Remove_Html --]</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" language="JavaScript">
<!--
# Tag for ShopSite's required Java Script code
[-- SC_JAVASCRIPT extras --]
// -->
</script>
[-- INCLUDE sc_thankyouemail.css PROCESS --]
</head>
<body
bgcolor="#[--STORE.SC_BackgroundColor--]"
[-- IF STORE.SC_BackgroundImage --]
background="[--STORE.SC_BackgroundImage--]"
[-- END_IF --]
>
<p class="buttons">[-- ThankYouReturnStore --]</p>
<div class="header">[-- ThankYouHeader --]</div>
<table border="0" width="0" align="center">
<tr>
<td align="center">
<b>[--Store.SC_OrderNumber--] [-- ThankYouOrderNumber --]</b>
</td>
</tr>
<tr>
<td align="right">
[-- SC_Cart --]
</td>
</tr>
<tr>
<td align="right">
[-- SC_Totals --]
</td>
</tr>
<tr><td align="center"><hr noshade size="2"></td></tr>
<tr>
<td align="center">
[-- SC_Address --]
</td>
</tr>
<tr><td align="center"><hr noshade size="2"></td></tr>
<tr>
<td align="center">
[-- SC_Payment --]
</td>
<tr>
<td></td>
</tr>
<tr>
<td>
<script type="text/javascript" language="JavaScript">
<!--
for (i = 0; i < number_products; i++) {
if (ss_name[i].match(TEST PRODUCT)) {
document.write("<a href=\"http://www.europeanbeautysecrets.com/eBook_Download_Instructions.html\">CLICK HERE for Download and Installation Instructions</a><BR><BR>");
}
}
// -->
</script>
<br>
</td>
</tr>
<tr><td align="center"><hr noshade size="2"></td></tr>
[-- VAR.HR No --]
[-- IF SC_OrderingInstructions_Text --]
<tr>
<td align="center">
[-- SC_OrderingInstructions --]
</td>
</tr>
[-- VAR.HR Yes --]
[-- END_IF --]
[-- IF SC_Comments_Text --]
<tr>
<td align="center">
[-- SC_Comments --]
</td>
<tr>
<td align="center">
[-- SC_Payment --]
</td>
</tr>
<tr><td align="center"><hr noshade size="2"></td></tr>
</tr>
[-- VAR.HR Yes --]
[-- END_IF --]
[-- IF CustomHTML_Values --]
<tr>
<td align="center">
<table align="center">
<tr>
<td align="left">
[-- CustomHTML_Values --]
</td>
</tr>
</table>
</td>
</tr>
[-- VAR.HR Yes --]
[-- END_IF --]
[-- IF Email_List --]
<tr>
<td align="center">
[-- Email_List --]
</td>
</tr>
[-- VAR.HR Yes --]
[-- END_IF --]
[-- IF VAR.HR Yes --]
[-- END_IF --]
<tr><td align="center"><hr noshade size="2"></td></tr>
</table>
<div class="footer">
[-- ReceiptFooter --]
</div>
</body>
</html>
[-- END_DEFINE ThankYou_Email --]
I have also tried to get the code to run in the thank you Text at the bottom
of the email receipt.
Thank you in advance for your assistance.
Craig