Quantcast
Channel: The Neon Hive » Web Development
Viewing all articles
Browse latest Browse all 7

Manually convert currency in Magento

0
0

Super quick manual conversion from GBP to Euro.

Pretty deep in some hefty Magento ecommerce development so apologies for the lack of geek tutorials of late. But here’s something that has come in pretty useful for a couple of projects recently and figured I’d share and save a fellow custom coder some precious time!

If you ever need to change a specific price or value to an alternative currency in Magento, just call the following:

Mage::helper('directory')->currencyConvert($pricein, 'GBP', 'EUR');

This should work from any Model or Block, the above example will convert GBP to Euro. Handy if you need to update things like static blocks with the most up-to-date delivery pricing.


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images