[ic] Basket content

Mark Johnson markj@redhat.com
Mon, 19 Mar 2001 11:39:39 -0500


Sergey Sheykin wrote:
> 
> Hi,
> 
> when I try use this code
> 
>         [perl global=1]
>             use Vend::Session;
>             @$Vend::Items = ();
>             put_session();
>             get_session();
>             init_session();
>         [/perl]
> 
> interchange said :
> 
> Safe: require trapped by operation mask at (eval 311) line 2.
> 

use is a safe violation. In order to use any of the code above, you will
have to enable AllowGlobal for the catalog.

If you are not creating new carts, then the following will clear your
cart (but not the rest of the session):

[calc]
  @{ $Carts->{main} } = ();
  return;
[/calc]


BTW, mv_action=cancel will *still* take you where you want to go.


-- 
Mark Johnson
Senior Developer - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912