[interchange-docs] xmldocs - racke modified refs/subtotal.tag
docs at icdevgroup.org
docs at icdevgroup.org
Mon Aug 11 08:57:56 UTC 2008
User: racke
Date: 2008-08-11 08:57:55 GMT
Modified: refs subtotal.tag
Log:
added: cart alias, description, examples
Revision Changes Path
1.4 xmldocs/refs/subtotal.tag
rev 1.4, prev_rev 1.3
Index: subtotal.tag
===================================================================
RCS file: /var/cvs/xmldocs/refs/subtotal.tag,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- subtotal.tag 15 Jul 2008 13:36:25 -0000 1.3
+++ subtotal.tag 11 Aug 2008 08:57:55 -0000 1.4
@@ -5,11 +5,14 @@
__NAME__ synopsis
<row>
<entry>
- name
+ <group choice='optional'>
+ <arg choice='plain'>name</arg>
+ <arg choice='plain'>cart</arg>
+ </group>
</entry>
<entry>Yes</entry>
<entry>No</entry>
- <entry>main</entry>
+ <entry><literal>main</literal></entry>
<entry>&glos-cart; name</entry>
</row>
&ROW_CURRENCYNOFORMAT;
@@ -17,6 +20,23 @@
&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.
+__END__
+
+__NAME__ example: Basic example
+<programlisting>
+[subtotal]
+</programlisting>
+__END__
+
+__NAME__ example: Using [subtotal] programatically
+<programlisting>
+$subtotal = $Tag->subtotal({noformat => 1});
+</programlisting>
+__END__
+
__NAME__ see also
currency, total-cost
__END__
More information about the docs
mailing list