Magento Themes and Magento Extensions

Show category block on a magento page via cms

Posted on March 28th, 2013 | Posted by admin

Show category block on a magento page via cms

Add this snipp to any page’s body in the cms to show a category’s items on that page. “category_id” being the id of the category, duyee.

{{block type=”catalog/product_list” category_id=”4″template=”catalog/product/list.phtml”}}

Add Static Block to Magento cms Page by updating the Design Layout XML

Posted on December 19th, 2012 | Posted by admin

This is a very simple task.
Once you created the Static Block, simply go to CMS -> Manage Pages. Select your Page or create a new one.
Click on the Design tab on the left and paste the following code to the “Layout Update XML” textarea.
(Also, don’t forget to select the Layout, eg.: 2 columns with left (or right) bar)

<reference name="left">
    <block before="-" name="block-name" type="cms/block">
        <action method="setBlockId"><block_id>block-id</block_id></action>

How to Add Custom Tabs to Magento Customer Edit page

Posted on February 3rd, 2012 | Posted by admin

Magento Provides the manage customers feature to list and edit the customers information.
The Customer edit page in the admin panel gives details about the customers account information,address,orders etc.

In some scenarios we may need to show our custom module contents related to the customer in a additional tab. To achieve this functionality we need to create a custom module and add our tab.

Step 1: We start with our config.xml file. In this file we are specifying an adminhtml xml layout file and a Block class for our custom module.


Magento: Custom Page Templates in CMS Layout Dropdown

Posted on June 2nd, 2011 | Posted by admin

Creating new page templates is as easy as duplicating and editing the files in /template/page/. However, you can add as many new ones as you want, but no new ones will show up in the Layout dropdown when selecting a template to use for a specific CMS page.

The solution: Create your own simple module to add your templates. This should only take you 5 minutes if you know what you are doing with custom modules.

Step 1: Create Your Module Config File

Create this file: /app/code/local/YOURMODS/CmsTemplates/etc/config.xml and put the following code in, modifying it to suit your templates:

Change any page title in Magento

Posted on May 25th, 2011 | Posted by admin

Here’s a quicky one  How do you change page title of every Magento page if some titles are hardcoded into controller?

Since some controllers in Magento likes to force page titles like

$this->getLayout()->getBlock('head')->setTitle($this->__('My Account'));

we can’t go with setTitle through layout, since controller is setting title right before rendering.

There is a simple solution for this, use another variable for title display

In page/html/head.phtml template replace default

Page 1 of 3123»