[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Unwanted session value shows in subsequent orders


On Aug 13, 2007, at 12:15 PM, Brian Hefferan wrote:

I'm setting up a customer comments/notes field in a shopping cart
based on the IC 5.4.2 foundation demo. The field does work after
adding a textarea box named "gift_notes" to finalize.html. The data
gets stored in the comments field in the transactions database and
shows up correctly in the receipts and reports.

The problem is that if the same customer starts another order before
the session expires, his/her previous order's comments show up again
in the the the new order's comments texarea tbox.

What's a good way to make sure the comment/notes field defaults to
blank for subsequent orders? I tried [calc
$Vend::Session->{'values'}{'gift_note'} = '';[/calc] in
/etc/mail_receipt and a few other places, but I haven't managed to get
the value cleared in the session file.

I've used:
[value name=gift_note set='' hide=1]

--
Josh
Kingdom Design   http://www.kingdomdesign.com/


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.