1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: levy_list.coretag,v 1.5 2007-03-30 23:40:49 pajamian Exp $
10 UserTag levy-list Order name
11 UserTag levy-list addAttr
12 UserTag levy-list attrAlias cart name
13 UserTag levy-list hasEndTag
14 UserTag levy-list Version $Revision: 1.5 $
15 UserTag levy-list Routine <<EOR
17 my($cart,$opt,$text) = @_;
18 my $lev = $Vend::Session->{levies} ||= {};
21 ? ($lev->{$cart} ||= [] )
22 : ($lev->{$Vend::CurrentCart || 'main'} ||= [] )
25 $opt->{prefix} = 'levy' unless defined $opt->{prefix};
26 return labeled_list($opt, $text, $obj);