NYCPHP Meetup

NYPHP.org

P.S. -> Re: [joomla] Is this a php issue?

Donna Marie Vincent donnamarievincent at yahoo.com
Sun Jun 15 15:52:45 EDT 2008


Apparently I'm the only one experiencing this problem.  I did not see any posts on Virtuemart from anyone else having this issue.


----- Original Message ----
From: Donna Marie Vincent <donnamarievincent at yahoo.com>
To: Joomla Users Group List <joomla at lists.nyphp.org>
Sent: Sunday, June 15, 2008 9:16:27 PM
Subject: [joomla] Is this a php issue?

I was having a problem with Virtuemart's Latest Products module.  It was stripping the dollar sign as well as the dollar amount, and showing just the decimal point and cents.

After spending the day (!) debugging this, I finally found the problem.

In class_currency_display.php, in the function getFullValue, in the assignment of $res, where the current var values are $res = 10.99 and $this->symbol = "$":

[code]$res=$this->symbol.$res;[/code]

for some reason $res ends up being ".99", missing the $ as well as the "10".  (It should have read "$10.99")

When I changed the code to read:

[code]$res = $this->symbol . " " . $res;[/code]

it now displays correctly as "$10.99".

Is this a problem with my php version or the php settings on the server?
_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php




More information about the Joomla mailing list