Changing Email Reciept

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

Is there any way to add extra columns to the email reciept. I would like to add item id as well as name and description. I would also like to exclude command: buy 2 from the bottom although doesnt seem to do it. This is a great set of scripts and very easy to set up.

-- alan willoughby (alanw@dmv.com), May 07, 1999

Answers

It should already print the itemid:
print MAIL sprintf "%-6.6s", $itemid;

To exclude buy2 from the email add 'command' to the exclude variable in the order form:

input type=hidden name=exclude value= "cardnumber,expiremonth,expireyear,command"

-- Mike Lynne (trauma@promail.com), May 10, 1999.


Moderation questions? read the FAQ