search
top

Static Blocks Magento

Hello all, I am writing here the code for getting the status of the CMS static block of the required block id. <?php $blockId = "category_block"; //block id to be assigned here $block = Mage::getModel('cms/block') ->setStoreId(Mage::app()->getStore()->getId()) ->load($blockId); echo $title = $block->getTitle(); // get block title $isActive...
read more

List of Email Templates in Magento

I am posting here the method to get the list of Email Templates which we make at admin end (Admin Panel -> System -> Transactional Emails) The below code to be written in Block file. <?php $template_info = array(); $template_collection = Mage::getResourceSingleton('core/email_template_collection'); if(!empty($template_collection)) { $cnt = 0; foreach($template_collection...
read more

Blocks in Magento eCommerce

If you are using Magento Ecommerce, you might have created ‘Static Blocks’ for integrating custom functionality. I am listing here the method to create CMS Blocks. Suppose you want a custom box to be displayed on right column. 1) Go to admin section there is menu ‘Static Blocks’ in ‘CMS’. 2) Click ‘Add New Block’. 3) Fill in the fields For example, Block...
read more

top