levy-list — display a list of levy charges
Attribute | Pos. | Req. | Default | Description |
---|---|---|---|---|
prefix |
levy
|
list prefix | ||
interpolate | 0 | interpolate input? | ||
reparse | 1 | interpolate output? | ||
hide | 0 | Hide the tag return value? |
You access the levies cart with [levy-list] LIST [/levy-list]
. The
behavior of the list is exactly the same as with an [item-list]
for a
shopping cart -- [levy-param description]
will access the "description"
member of the hash for that levy.
Example:
[levies recalculate=1 hide=1] [levy-list] <tr> <td align=left class=contentbar1>[levy-param label]:</TD> <td align=right class=contentbar1>[levy-param cost]</TD> </tr> [/levy-list]
Interchange 5.9.0:
Source: code/SystemTag/levy_list.coretag
Lines: 28
# Copyright 2002-2007 Interchange Development Group and others # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. See the LICENSE file for details. # # $Id: levy_list.coretag,v 1.5 2007-03-30 23:40:49 pajamian Exp $ UserTag levy-list Order name UserTag levy-list addAttr UserTag levy-list attrAlias cart name UserTag levy-list hasEndTag UserTag levy-list Version $Revision: 1.5 $ UserTag levy-list Routine <<EOR sub { my($cart,$opt,$text) = @_; my $lev = $Vend::Session->{levies} ||= {}; my $obj = { mv_results => $cart ? ($lev->{$cart} ||= [] ) : ($lev->{$Vend::CurrentCart || 'main'} ||= [] ) }; return if ! $text; $opt->{prefix} = 'levy' unless defined $opt->{prefix}; return labeled_list($opt, $text, $obj); } EOR