• We are available for any Development work:
  • Email us at: programmer_heart@yahoo.com

getBaseUrl – Magento URL Path

If you want to get the source url of an image, javascript or file, call one of this functions adding your own path at the end. For  http://www.yourdomain.com <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?> For  http://www.yourdomain.com/js <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?> For  http://www.yourdomain.com/index.php <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); ?> For  http://www.yourdomain.com/media <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?> For  http://www.yourdomain.com/skin <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>

Continue reading

Get store information of Magento

You can  get  various information of store that we created   by following codes :: Get store data Mage::app()->getStore(); Store Id Mage::app()->getStore()->getStoreId(); Store code Mage::app()->getStore()->getCode(); Website Id Mage::app()->getStore()->getWebsiteId(); Store Name Mage::app()->getStore()->getName(); Is Active Mage::app()->getStore()->getIsActive(); Store Home Url Mage::app()->getStore()->getHomeUrl();

Continue reading

Display Categories with images on homepage in Magento

For adding of  categories with its  images on homepage od magento  we have to add    block from admininstration cms management either by just putiing the code given below  or making the static block . [codesyntax lang=”php”] {{block type=”catalog/navigation” name=”catalog.category” template=”catalog/category/list_category.phtml”}} [/codesyntax] And also you need to create a list.phtml file under “/app/design/frontend/default/default/template/catalog/category/list_category.phtml” and add the […]

Continue reading

Creating a Static Block

In case you’re unfamiliar with CMS static blocks, they are powerful little buggers in Magento’s admin that allows the site’s administrator to add and control chunks of HTML that can be displayed throughout the site. They’re perfect for seasonal banners, sale blocks, return policies, size charts and anything that would make sense to modularize to […]

Continue reading
Press Enter to Search