Price Format
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Steve Abraham
Always show ‘0.0’
Bug Report
Roel Van Gils
|
Posted: 28 May 2011 07:40 AM |
|
|
|
I always get ‘0.0’, no matter which values or attributes I use. Even for this (without any attribute like tax):
{exp:price_format price=123465}
I get ‘0.0’ as output. I must be doing something wrong. Any ideas?
|
|
|
Steve Abraham
|
Posted: 28 May 2011 08:44 AM |
# 1
|
|
Developer
|
Hi Roel,
Congrats, you’re my first bug report! ;)
This is a new to me, can I check a couple of things what version of PHP are you running?
Is your EE install hosted somewhere, or is this local development?
Is EE the latest version/build of 2?
I will use your answers to try and recreate the issue at this end.
Cheers,
Steve.
|
|
|
Roel Van Gils
|
Posted: 28 May 2011 08:48 AM |
# 2
|
|
|
Hi! Thanks for the quick reply :)
I’m running it locally on my Mac (with MAMP Pro).
- PHP version: 5.3.2
- EE 2.1.3 Build 20101220
|
|
|
Roel Van Gils
|
Posted: 28 May 2011 10:56 AM |
# 3
|
|
|
Great! Thanks ;)
|
|
|
Steve Abraham
|
Posted: 28 May 2011 10:58 AM |
# 4
|
|
Developer
|
Right, I admit I’ve not tested on PHP 5.3 let me do that and I’ll come back to you ASAP. :)
|
|
|
Steve Abraham
|
Posted: 30 May 2011 10:08 AM |
# 5
|
|
Developer
|
Roel,
We’re scratching our heads a wee bit with this one it seems to test OK on 5.3.
We have noticed that in your original post the quotes round the number in the price paramater are formatted quote marks, rather than straight, i.e.:
instead of
"
Can you try copying this and pasting it into your template, see if you get any different results:
{exp:price_format price="123465"}
Cheers,
Steve.
|
|
|
Roel Van Gils
|
Posted: 30 May 2011 10:27 AM |
# 6
|
|
|
No idea where these quote marks came from. I must have copy/pasted them from somewhere. But that fixed the problem obviously :) Sorry for your time and thanks for the great plug-in!
|
|
|
Steve Abraham
|
Posted: 30 May 2011 11:02 AM |
# 7
|
|
Developer
|
Glad that’s sorted any other probs just shout. :)
|
|
|