Name

levy-list — display a list of levy charges

ATTRIBUTES

Attribute Pos. Req. Default Description
prefix levy list prefix
interpolate     0 interpolate input?
reparse     1 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

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.

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

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]

NOTES

See levy glossary entry for more information.

AVAILABILITY

levy-list is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

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

AUTHORS

Interchange Development Group

SEE ALSO

Levy(7ic), levies(7ic), Levies(7ic)

DocBook! Interchange!