Forums / Contribution-Writing Guidelines / How to format sales tax total

How to format sales tax total

Locked

Views: 2,218

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
5 Oct 2007, 1:33 PM
#1
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

How to format sales tax total

This is probably something simple that I am missing but I am simply having no luck with it. I have written a very simple mod to report out sales tax totals based on the value field of the orders_total table.
The mod simply totals each of the different sales taxes. What I can't seem to figure out how to do is properly format the totals into the cart's currency format.
ie - the total is 3.1200 but i would like to show it formated as $3.12.
Its really not a huge issue, but at least for future reference, I would really like to know how to do this properly.

Thanks
LadyHLG