[interchange-docs] [SCM] Interchange XML documentation branch, master, updated. e74fd95f635aa50872dc8e0db23015a2459bcbec

Stefan Hornburg interchange-cvs at icdevgroup.org
Wed Jul 21 10:43:20 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange XML documentation".

The branch, master has been updated
       via  e74fd95f635aa50872dc8e0db23015a2459bcbec (commit)
      from  e264952dc171a6649b8a3fbb54f1ca9c56028368 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e74fd95f635aa50872dc8e0db23015a2459bcbec
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Wed Jul 21 12:42:25 2010 +0200

    Document new attribute nodiscount for [subtotal].

-----------------------------------------------------------------------

Summary of changes and diff:
 refs/subtotal.tag |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/refs/subtotal.tag b/refs/subtotal.tag
index 21db984..9f022b9 100644
--- a/refs/subtotal.tag
+++ b/refs/subtotal.tag
@@ -16,13 +16,22 @@ __NAME__ synopsis
 	<entry>&glos-cart; name</entry>
 </row>
 &ROW_CURRENCYNOFORMAT;
+<row>
+	<entry>nodiscount</entry>
+	<entry></entry>
+	<entry></entry>
+	<entry></entry>
+	<entry>Whether to disregard discounts in subtotal calculation.</entry>
+</row>
 &ROW_CURRENCYDISPLAY;
 &TAG_NON_CONTAINER;
 __END__
 
 __NAME__ description
-<tag>subtotal</tag> returns the total cost of the products within a cart,
-formatted according to the currency settings.
+<tag>subtotal</tag> returns the total cost of the products within a cart.</para>
+<para>Any &glos-discount;s are applied to the total cost and the return value is
+formatted according to the currency settings. This can be prevented by the
+<literal>nodiscount</literal> and <literal>noformat</literal> attributes, respectively.
 __END__
 
 __NAME__ example: Basic example
@@ -31,6 +40,12 @@ __NAME__ example: Basic example
 </programlisting>
 __END__
 
+__NAME__ example: Subtotal without discounts
+<programlisting>
+[subtotal nodiscount=1]
+</programlisting>
+__END__
+
 <!--
 example: Using [subtotal] programatically
 <programlisting><![CDATA[


hooks/post-receive
-- 
Interchange XML documentation



More information about the docs mailing list