Akopia Akopia Services

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

Re: [ic] Basket content



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

_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: