Difference between revisions of "Template:Order totals"

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
(added more features and changes values shown)
Line 1: Line 1:
 +
{{#ifeq:{{{shipping|0}}}|0|'''<font color="red">The shipping has not been added to this order yet, the total is fully accurate.</font>'''}}
 
{| class="wikitable" width="200px"
 
{| class="wikitable" width="200px"
!Savings
 
|${{format price| {{{savings|0}}} }}
 
|-
 
 
!Subtotal
 
!Subtotal
 +
 
|${{format price| {{{subtotal|0}}} }}
 
|${{format price| {{{subtotal|0}}} }}
 +
|-
 +
!Discounted Subtotal
 +
 +
|${{format price| {{{discounted|{{{discountedsub|{{{discountedsubtotal|0}}}}}}}}} }}
 +
|-
 +
!Savings Pre Shipping
 +
|${{format price| {{#expr: {{{subtotal|0}}} - {{{discountedsubtotal|0}}} }} }}
 
|-
 
|-
 
!Shipping
 
!Shipping
 
|${{format price| {{{shipping|0}}} }}
 
|${{format price| {{{shipping|0}}} }}
 +
 
|-
 
|-
 
!Total
 
!Total
|${{format price| {{#expr: {{{subtotal|0}}} + {{{shipping|0}}} }} }}
+
|${{format price| {{#expr: {{{discountedsubtotal|0}}} + {{{shipping|0}}} }} }}
 
|}<noinclude>
 
|}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 03:58, 17 October 2010

The shipping has not been added to this order yet, the total is fully accurate.

Subtotal $0.00
Discounted Subtotal $0.00
Savings Pre Shipping $0.00
Shipping $0.00
Total $0.00
[edit] [purge] Template documentation

Usage

{{order totals
|subtotal = 
|discountedsubtotal = 
|shipping = 
}}

Redirects

{{Adafruit totals}}