[ic] Deleting carts
Kevin Walsh
interchange-users@interchange.redhat.com
Sat Oct 27 12:07:00 2001
> > Where in the stock foundation catalog are the cart contents deleted after
> > an order is placed?
> >
> Within the core code (VENDROOT/lib/Vend/Order.pm, I believe). You can
> control this in your checkout profile with &final (&final=yes submits the
> order and clears the cart contents; &final=no or the absence of &final will
> cause the cart contents to remain).
>
The profile part is correct.
The actual code that removes the cart contents, if you want to
see it, is in the bin/interchange perl script. Look at the
%form_action hash, where you will find the 'submit' key and its
associated sub. The cart is cleared at the end of that sub with
the following code:
# Remove the items
@$Vend::Items = ();
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.uk.com
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/