2
我想在Magento的购物车和发票中显示两种货币。我已通过此代码在产品页面中填写如何在magento购物车中显示两种货币
<div class="currency">
<?php if(Mage::app()->getStore()->getCurrentCurrencyCode() == 'USD'): ?>
<span class="price">(<?php echo round(Mage::helper('directory')->currencyConvert($_product->getFinalPrice(), 'USD', 'AUD'), 2); ?>) AUD</span>
<?php else: ?>
<span class="price">(<?php echo round(Mage::helper('di`enter code here`rectory')->currencyConvert($_product->getFinalPrice(), 'AUD', 'USD'), 2); ?>) USD</span>
<?php endif; ?>
</div>
现在我想在电子邮件发票中显示此内容。
在电子邮件模板TI