Magento

Powers 26% of the Top eCommerce Websites

  • Static Block

    How to add static block in cms pages magento?

    It is very simple to add static block in cms page, You just need to create a static block from CMS -> Static Block, Copy Block id & replace with “staticBlockId”. {{block type="cms/block" block_id="staticBlockId"}}

  • Magento

    How to get Magento Base Url, Skin Url, Media Url, JS Url, Store Url?

    Get Url in phtml files 1. Get Base Url : Mage::getBaseUrl(); 2. Get Skin Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); (a) Unsecure Skin Url : $this->getSkinUrl('images/imagename.jpg'); (b) Secure Skin Url : ...

Latest News

  • It is very simple to add static block in cms page, You just need to create a static block from CMS -> Static Block, Copy Block id & replace with “staticBlockId”. {{block type="cms/block" block_id="staticBlockId"}}

  • Get Url in phtml files 1. Get Base Url : Mage::getBaseUrl(); 2. Get Skin Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); (a) Unsecure Skin Url : $this->getSkinUrl('images/imagename.jpg'); (b) Secure Skin Url : $this->getSkinUrl('images/imagename.gif', array('_secure'=>true)); 3. Get Media Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); 4. Get Js Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); 5. Get Store Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); 6. Get Current Url Mage::helper('core/url')->getCurrentUrl(); Get Url...