Author |
Topic |
|
gplough
Starting Member
USA
14 Posts |
Posted - February 24 2014 : 10:34:35
|
How do you include this on the order email?
I imagine this has been asked before, and I searched but couldn''t find anything. Sorry if this is a repetitive question. |
|
pdieppa
VP-CART New User
USA
86 Posts |
Posted - February 24 2014 : 16:19:45
|
The file shopfileio.asp handles that function. Search for sub Handle_OITEMS. It should be around line 1205 +-
On line 1230+-, insert the following line after itemname=rsitems("itemname")
Dim catalogid catalogid=rsitems("catalogid")
Find line 1241 +- that starts with Body = Body & CR & itemname & CR
Change that line to this:
Body = Body & CR & itemname & CR & catalogid & CR
Good Luck! |
|
|
pdieppa
VP-CART New User
USA
86 Posts |
Posted - February 24 2014 : 16:25:42
|
One last thing, the product code is not available without heavy code modifications. |
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - February 25 2014 : 03:47:00
|
Or you could add ccode to the fields that are added to the cart (search for xcartfields in your admin Cart Setup), which will then be added to oitems and your order confirmation emails.
Regards,
Carrol www.deanston-electrical.co.uk |
|
|
pdieppa
VP-CART New User
USA
86 Posts |
Posted - February 25 2014 : 09:50:48
|
Very good Carfin, you are absolutely correct. I still get lost in the sea of configuration options with VPASP. |
|
|
pdieppa
VP-CART New User
USA
86 Posts |
Posted - February 25 2014 : 09:53:17
|
Then, the new code will be like this (to include ccode)
Dim catalogid, ccode catalogid=rsitems("catalogid") ccode = rsitems("ccode")
Body = Body & CR & itemname & CR & catalogid & CR & ccode & CR
|
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - February 25 2014 : 10:57:06
|
You don''t need to do anything with the code. If you add ccode to the xcartfields list through the admin panel, then it does it all for you :)
Regards,
Carrol www.deanston-electrical.co.uk |
|
|
gplough
Starting Member
USA
14 Posts |
Posted - February 25 2014 : 13:11:58
|
Thanks guys! Appreciate the help! Agree with the sea of config options... but better than not! |
|
|
|
Topic |
|