Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Changing layout of [ADD_OItems]
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jayceew
VP-CART New User

USA
114 Posts

Posted - April 01 2007 :  20:53:53  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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
Go to Top of Page

jayceew
VP-CART New User

USA
114 Posts

Posted - April 02 2007 :  17:22:36  Show Profile  Reply with Quote
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
Go to Top of Page

robmac
Starting Member

26 Posts

Posted - April 07 2007 :  15:29:11  Show Profile  Reply with Quote
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
Go to Top of Page

jayceew
VP-CART New User

USA
114 Posts

Posted - April 09 2007 :  01:05:42  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00