PDA

View Full Version : Currency display position



Elena
September 22, 2009, 01:15 PM
Good day,
Instruction: "How we may change the display position of currency symbol on the Add Listing, Upgrade Listing pages and listing's grids"
Do you want to set currency symbol after price? Here the the detailed instruction how we may do it yourself.
Example:
Before: price: $ 150
After: price: 150 $

Follow the following steps:
1. open the file: /templates/YOUR_TEMPLATE/tpl/controllers/add_listing.tpl
2. find the following code line (~ line#: 135):

{if $plan.Price > 0}{$config.system_currency}{$plan.Price}{else}{$la ng.free}{/if}
3. replace with the code line:

{if $plan.Price > 0}{$plan.Price} {$config.system_currency}{else}{$lang.free}{/if}
4. save the changes

5. open the file: /templates/YOUR_TEMPLATE/tpl/controllers/upgrade_listing.tpl
6. find the following code line (~ line#: 40):

{if $plan.Price > 0}{$config.system_currency}{$plan.Price}{else}{$la ng.free}{/if}
7. replace with the code line:

{if $plan.Price > 0}{$plan.Price} {$config.system_currency}{else}{$lang.free}{/if}
8. save the changes

9. open the file: /includes/classes/rlCommon.class.php
10. find the following code line (~ line#: 185, function: adaptValue()):


$out = (defined('REALM') && REALM == 'admin') ? $GLOBALS['lang']['data_formats+name+'.$price[1]].$price[0] :$GLOBALS['lang']['data_formats+name+'.$price[1]].' '.$GLOBALS['rlSmarty'] -> str2money($price[0]);

11. replace with the code line:


$out = (defined('REALM') && REALM == 'admin') ? $price[0] . ' ' . $GLOBALS['lang']['data_formats+name+'.$price[1]] : $GLOBALS['rlSmarty'] -> str2money($price[0]) . ' ' . $GLOBALS['lang']['data_formats+name+'.$price[1]];

12. save the changes

That's all. Have a good day.