[ic] Diplaying item prices inclusive of sales tax

Jonathan Clark interchange-users@icdevgroup.org
Wed Aug 7 18:16:01 2002


> I want to display prices with and without UK tax. Can anyone tell
> me the best
> way to do this?
>
> The following doesn't work because [item-price] returns a
> currency character
> before the price:
>
> [calc][item-price] * __TAX_MULTIPLYER__[/calc]
>
> If I use [item-price noformat=1], I get a 5 d.p. number, and I
> would have to
> display the currency symbol manually.
>
> Is there some other way around this, or shall I use Perl?

How about:

[currency][calc][item-price noformat=1] *
__TAX_MULTIPLYER__[/calc][/currency]

Jonathan
Webmaint.