Magento: Adding current currency code infront of prices

老子叫甜甜 提交于 2020-01-14 05:06:12

问题


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?


回答1:


You can try free module Currency Manager

There is available currency symbol replace for every currency. Change "$" to "AUD $".




回答2:


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.



来源:https://stackoverflow.com/questions/7060478/magento-adding-current-currency-code-infront-of-prices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!