Author |
Topic |
|
jayceew
VP-CART New User
USA
114 Posts |
Posted - April 01 2007 : 20:53:53
|
Hi All,
Anyone know how to change the layout of [ADD_OItems] in my tmp_customermail.htm template ?
Changing layout in tmp_oitems.txt or tmp_oitems.htm doesn't seem to make a difference.
I've set xoitemstemplate to tmp_oitems.htm instead of tmp_oitems.htm, and tried different combinations of them but no good.
Thanks
Jack |
|
Gonzo
Starting Member
19 Posts |
Posted - April 01 2007 : 22:46:08
|
In tmp_customeremail.htm, try changing [Add_OItems] to [Add_OItemstemplate].
Then in xoitemstemplate, make sure that the file is html - such as tmp_oitems.htm |
|
|
jayceew
VP-CART New User
USA
114 Posts |
Posted - April 02 2007 : 17:22:36
|
Hi All, Still not working.
I've changed xoitemstemplate to tmp_oitems.htm here is the template:
<table width="95%"> <tr> <td> </td> <td><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">[numitems]</font></b></td> <td><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">[itemname]</font></b></td> <td><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">[formatcurrency unitprice]</font></b></td> <td><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">[add_oitemtotal]</font></b></td> </tr> </table> <hr>
I've set xemailwithtemplates to yes Xcustomeremail to tmp_customeremail.htm
When I changed [Add_OItems] to [Add_OItemstemplate], [Add_OItemstemplate]showed up as plain text in the html mail.so I changed it back.
in shopfileio.asp I changed the line around 634 from If ucase(Getsess("emailformat"))="HTML" then CR="<br>" changed to If ucase(Getsess("emailformat"))="HTML" then CR="<to>" This worked twice, it used my tmp_oitems.htm and it looked great, but then it stopped working.
Any Ideas anyone?
Thanks
Jack |
|
|
robmac
Starting Member
26 Posts |
Posted - April 07 2007 : 15:29:11
|
You need the <body> tag etc included in the template file - format it using your normal html editor as if it were any other html page |
|
|
jayceew
VP-CART New User
USA
114 Posts |
Posted - April 09 2007 : 01:05:42
|
Hi All, The issue lay within the shopfileio.asp file as the array for Sub Handle_OITEMSTEMPLATE was only set to 10. And I had more than 10 lines in My tmp_oitems.htm file, the e-mail couldn't be sent. Around line 1364 I changed this line of code:
dim filename, outarray(10), outcount, suffix, emailformat became: dim filename, outarray(50), outcount, suffix, emailformat
Also, in tmp_customeremail.htm, I changed [ADD_OItems] back to [ADD_OItemstemplate]. Works fine now.
Thanks to VP-ASP support for the help.
Thanks Jack
|
Edited by - jayceew on April 12 2007 17:55:32 |
|
|
|
Topic |
|