[ic] Unwanted session value shows in subsequent orders
Brian Hefferan
brianhef at heftone.com
Mon Aug 13 17:53:13 EDT 2007
On 8/13/07, Stefan Hornburg (Racke) <racke at linuxia.de> wrote:
> The correct code to delete is:
>
> [calc] $Values->{gift_note} = ''; [/calc]
>
> Also you cannot clear the variable in mail_receipt, as the Values hash
> is restored after route processing.
Josh Lavin <josh at myprivacy.ca> wrote:
>I've used:
>[value name=gift_note set='' hide=1]
Thanks, these do mostly solve the problem. Also, simply using [cgi
name="gift_note"] in the text area instead of [value gift_note] seems
to work too.
It still doesn't seem quite right, though. If a customer fills in the
note field, presses "Recalculate", decides to shop some more, then
goes through checkout again, the note they entered is gone.
It seems better to clear the gift_note value from the session after
the order is placed. Is there a good way to do this?
More information about the interchange-users
mailing list