• 24th, Jul 2010

Magento Useful Methods

//Get Store Configuration Setting
echo Mage::getStoreConfig("carriers/freeshipping/free_shipping_subtotal");

//Get Currency Symbol
echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();

//Print Amount Proper Currency (e.g. $102.36)
echo Mage::helper('core')->currency($subtotal, true, true)

Tags: , , ,

2 Responses to “Magento Useful Methods”


  1. Simon
    on Jul 2nd, 2011
    @ 2:52 am

    Hi,

    this was just what I was looking for in order to put in frontpage “Free Shipping from XX$” where XX is the free shipping amount followed by the corresponding currency.

    I tried your code but I get an error: Undefined variable: subtotal in /home….header.phtml

    Any idea? maybe I’m asking too much.

    BTW: If you need any translation help I speak fluently spanish and german :)


  2. admin
    on Jul 13th, 2011
    @ 8:07 pm

    Hi Simon, it’s Nacho here from the UnexpectedIT blog, which version of Magento do you use?

Leave a Reply

*

© 2010 unexpected[it]. All Rights Reserved.