Magento: Adding current currency code infront of prices
I am wanting to show my prices in Magento with the current code in front 开发者_运维技巧of the price:
AUD $5.50
I can't seem to find a setting for this and I'm having trouble trying to find some code or a plugin to do this.
Any suggestions?
You can try free module Currency Manager
There is available currency symbol replace for every currency. Change "$" to "AUD $".
In app/design/frontend/YourInterface/YourTheme/template/catalog/product/price.phtml, find proper place(you should have many try :) )like this snippet code:
<span class="price-excluding-tax">
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
<?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
</span>
</span>
change
<?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
to
<?php echo 'AUD '.$_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
This will add 'AUD ' to all of the prices.
精彩评论