/
currency.tag
61 lines (52 loc) · 1.25 KB
/
currency.tag
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
__NAME__ purpose
format number (usually a price) according to currency settings
__END__
__NAME__ see also
price,Locale,PriceCommas,PriceDivide
__END__
__NAME__ synopsis
<row>
<entry>
convert
</entry>
<entry>Yes</entry>
<entry></entry>
<entry>0</entry>
<entry>Convert the value according to the &conf-PriceDivide; value
for the current locale?</entry>
</row>
<row>
<entry>
noformat
</entry>
<entry>Yes</entry>
<entry></entry>
<entry>0</entry>
<entry>Do not format the price?</entry>
</row>
&ROW_CURRENCYDISPLAY;
&TAG_CONTAINER;
__END__
__NAME__ description
The tag returns the price for a specified product.
</para>
<para>
The currency tag is automatically invoked by the following tags:
&tag-price;, &tag-subtotal;, &tag-salestax;, &tag-total-cost;.
__END__
__NAME__ online: Basic example
<programlisting>
[currency]4[/currency]
</programlisting>
__END__
__NAME__ online: Displaying currency according to PriceDivide
Provided that the &conf-PriceDivide; configuration directive is set
to <literal>0.167</literal>, the following example would display
<literal>8.982,04</literal>:
<programlisting>
[currency convert=1] [calc] 500.00 + 1000.00 [/calc] [/currency]
</programlisting>
__END__
__NAME__ see also
price, subtotal, salestax, total-cost
__END__