Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 Product Code or Catalog ID on order
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gplough
Starting Member

USA
14 Posts

Posted - February 24 2014 :  10:34:35  Show Profile  Visit gplough's Homepage  Reply with Quote
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  Show Profile  Reply with Quote
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!
Go to Top of Page

pdieppa
VP-CART New User

USA
86 Posts

Posted - February 24 2014 :  16:25:42  Show Profile  Reply with Quote
One last thing, the product code is not available without heavy code modifications.
Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - February 25 2014 :  03:47:00  Show Profile  Reply with Quote
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
Go to Top of Page

pdieppa
VP-CART New User

USA
86 Posts

Posted - February 25 2014 :  09:50:48  Show Profile  Reply with Quote
Very good Carfin, you are absolutely correct. I still get lost in the sea of configuration options with VPASP.
Go to Top of Page

pdieppa
VP-CART New User

USA
86 Posts

Posted - February 25 2014 :  09:53:17  Show Profile  Reply with Quote
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

Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - February 25 2014 :  10:57:06  Show Profile  Reply with Quote
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
Go to Top of Page

gplough
Starting Member

USA
14 Posts

Posted - February 25 2014 :  13:11:58  Show Profile  Visit gplough's Homepage  Reply with Quote
Thanks guys! Appreciate the help! Agree with the sea of config options... but better than not!
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