Name

salestax — display salestax for products within cart

ATTRIBUTES

Attribute Pos. Req. Default Description
name Yes No main cart name
convert     No Convert the amount according to the PriceDivide value for the current locale.
noformat Yes No No Output plain number instead of formatting it according to the currency locale?
display     symbol Display currency as symbol, text or not at all?
interpolate     0 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

BEHAVIOR

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

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

salestax is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/SystemTag/salestax.coretag
Lines: 21


# 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: salestax.coretag,v 1.8 2007-03-30 23:40:49 pajamian Exp $

UserTag salestax            Order        name noformat
UserTag salestax            attrAlias    cart name
UserTag salestax            attrAlias    space discount_space
UserTag salestax            addAttr
UserTag salestax            PosNumber    2
UserTag salestax            Version      $Revision: 1.8 $
UserTag salestax            Routine      <<EOR
sub {
my($cart, $noformat, $opt) = @_;
return currency( salestax($cart, $opt), $noformat, undef, $opt);
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

currency(7ic), assign(7ic), total-cost(7ic), SalesTax(7ic)

DocBook! Interchange!