You are here:  » Price - Replace . with ,


Price - Replace . with ,

Submitted by Mahony on Fri, 2012-01-13 19:48 in

Hi David,

I want to display the price with "," and not a "." .

Changed things like said here: http://www.pricetapestry.com/node/3651 but thats not for the wordpress plugin i guess.

What do I have change in the plugin files?

Cheers,
Tony

Submitted by support on Sat, 2012-01-14 09:21

Hi Tony,

In pto_product.php look for the following code at line 79:

$each = str_replace("%PRICE%",$pto_config_currencyHTML.$product->price,$each);

...and REPLACE with:

$each = str_replace("%PRICE%",$pto_config_currencyHTML.str_replace(".",",",$product->price),$each);

...and in each of the following files:

pto_search.php
pto_featured.php

perform a Search and Replace of:

$pto_config_currencyHTML.$row->minPrice

with:

$pto_config_currencyHTML.str_replace(".",",",$row->minPrice)

Hope this helps!

Cheers,
David.
--
PriceTapestry.com