Interchange Developer Resource


[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

Re: [ic] Deleting carts



> > 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
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/

_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: