Magento Tips: Handles in Magento

Jun 20, 2013165Aleksander Tretjak
Magento Tips: Handles in Magento

When customizing a Mаgentо shop it is often needed to apply different page design for each type of product. For these purposes are used handles of these types of products in the catalog.xml file:

The necessary handle may not exist, but we can always create our own.

For example, let’s add a handle to a product’s Attribute Set, so that we would be able to apply changes to a product, depending on which Attribute Set it relates to.

To do this we will create a module and an observer and will register to the event controller_action_layout_load_before. In the observer we will create a method, which will verify if the module is enabled, and will add our handles.

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Andrey

Attribute Set Handle

Download Attribute Set Handle from GitHub

Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Andrey


  1. Snowcore,

    I do it in order to locate our new handle right after a product type handle. I.e., after the product type handle and before a handle for a particular product (PRODUCT_ID_).

  2. Aleksander! This is embarrassing tips to create custom theme for each page. I wonder is that include this in my files? I take a google search and find in blog says I would need to add this in config.xml. Can you confirm should I add this in Local xml or to where?


Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *