You are here:  » currency after price


currency after price

Submitted by kempo on Wed, 2011-10-19 13:09 in

Hi David,I want to display currency after price instead of before. But I could not find how to do it from the plug-in. There is only a variable as %PRICE%. I think I should change it from pt installation am I correct? I also suggest you to put a setting to display currency before or after the price. Because I know many countries that displays currencies after price.
Could you please send me the file names to be modified? Just knowing the names is enough for me, so I can modify them.
Thanks,
kempo.

Submitted by support on Wed, 2011-10-19 13:20

Hi kempo,

Thanks that is a good point; I will look at making it part of the template e.g. %PRICE%%CURRENCY% but for now you can change it easily in the code. In each of the following files:

pto_search.php
pto_product.php
pto_featured.php

Search for this line:

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

...and REPLACE with:

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

And also in pto_product.php look for this code at line 349:

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

...and REPLACE with:

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

Cheers,
David.

Submitted by kempo on Fri, 2011-10-21 09:03

Hi David,
It seems that it requires too much modifications.
So, it's better to wait for such an integration:)
Cheers,
kempo.

Submitted by support on Fri, 2011-10-21 09:15

No worries, Kempo.

I'll integrate into a BETA3 release next week; together with the complete canonical fix (both generation of canonical URLs and suppression of 3rd party theme or plugin generated canonicals which result in being incorrect for the dynamically generated pages)