Plugin

Archived
Forum
(read-only)

Price Format

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Steve Abraham

     

always returns 0.00

Bug Report

ExpressionEngineNewbie
ExpressionEngineNewbie

My code:

{exp:price_format price="{price}" decimals="2"

The channel field {price} is a text input/decimal. It has a valid value in in. When I output just {price}, I see the correct value. The problem is only when I use price_format.

I copied/pasted the double quote from here: http://devot-ee.com/add-ons/support/price-format/viewthread/1587. Still nothing. I also checked to see if formatting was set to XHMTL (per http://devot-ee.com/add-ons/support/price-format/viewthread/6247); it was set to None.

When I first installed this, it was working fine. It just stopped working (not sure when). I’‘m not sure what I could have done to break this.

Steve Abraham
# 1
Developer
Steve Abraham

Hi there,

Can you try putting a numeric value straight into the price paramater (rather than {price}), see what comes out?

Thanks!

ExpressionEngineNewbie
# 2
ExpressionEngineNewbie

{exp:price_format price=“12345” decimals=“2”} <—works as intended.

Steve Abraham
# 3
Developer
Steve Abraham

OK, can you output {price} on a test page somewhere that I can see? Just want to see if I can spot any odd formatting that’s creeping in.

ExpressionEngineNewbie
# 4
ExpressionEngineNewbie

I emailed link to support@uk42.net