Plugin

Archived
Forum
(read-only)

MB Shopping Cart Plugin

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Mark Bowen Design

     

{sub_total} with two decimals

Feature Request

Seb
Seb

Hello,

How can I force {sub_total} to display two number after the decimal point?

It currently defaults to none if there are no pennies or cents ($40).
If I specify $40.50 in the SCM, {sub_total} spits out $40.5.
I want $40.00 or $40.50, no matter what.

Thanks

sylvatica
# 1
sylvatica

Hi Mark,
I’m using your plugin with EE1 and also need to know how to fix this decimal formatting problem. 
Thanks!