unexpected[it]

Professional IT Blog

  • 24th, Jul 2010

Magento Useful Methods

Tags: , , ,

//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)
  • 24th, Jul 2010

Speed up images and flash loading times in sites

Tags: , , , ,

.htaccess file


Header set Cache-Control “max-age=7257600, public”

It means that image files are all forced to use the local cache for 3 months.
Speeds many sites up considerably.

© 2010 unexpected[it]. All Rights Reserved.

This blog is powered by Wordpress and a modified version of Magatheme