Best to call a template within a template Magento

Share
Posted on September 8th, 2012 | Posted by admin

So I have been working on a Magento module that hides the price when the user is not logged in. I got it working thanks to AlanStorm but I just want to make sure it I’m going for the best approach.

What I did is setting a different template for the *catalog_product_price_template* block and from there I did all the logic

<?php   $_message = Mage::getStoreConfig('catalog/pricehideconfig/title');
        $_enabled = Mage::getStoreConfig('catalog/pricehideconfig/active');
        $_current_template = Mage::getBaseDir('design')

Template Structure – Fallbacks

Share
Posted on March 17th, 2012 | Posted by admin

As you may know, Magento Design Fall-Back is used to render themes from the Magento basic templates and the most important part of this article will make you focus on the fall-back hierarchy. Let’s me show you more details as below:

The fall-back hierarchy is described from Custom_theme -> default_theme -> base -> error.

Please take a look at the following diagram:

Template Structure – Design Packages

Share
Posted on March 17th, 2012 | Posted by admin

My article today will take a little time of you to comprehend but I believe that this is very useful for those who pay attention to Design Packages of Template Structure topic. Trust me and follow now!

1.  Directory structure of design packages

The directory structure of design packages for Magento consists of two main parts:

- app/design/frontend(adminhtml): Contains layout and template directories of Magento.

- skin/frontend(adminhtml): Contains images, styles(css),JavaScript(js) files and directories.

Template Structure – Magento Themes

Share
Posted on March 8th, 2012 | Posted by admin

I am going to provide you with further understanding about how to use Magento themes in the easiest way. By giving some main concepts and approach to Structure of Template, this tutorial will certainly be helpful for those who have encountered difficulties when applying Magento Themes as well as wanted to learn more about Magento. Three main following parts will be covered:

• Define and describe how to use Magento themes

• Define and describe how to use design packages

• Define and describe how to use fallbacks

Now let’s start with the first section: Define and describe how to use magento themes

Customize ‘New Order’ Email template in Magento

Share
Posted on February 22nd, 2012 | Posted by admin

Customizing the ‘New Order Confirmation Email‘ template in Magento may be a havoc for the first time if you do not know the write way. But it is as easy as anything. Recently I needed to customize the item information in the ‘New Order Confirmation Email’. I googled a number of links but found nothing useful. Then I decided to find my own way, and after 2 hours of hard work I found a simple way. Here are the steps to customize the email template:

1. In the Magento Admin panel go to ‘System > Transactional Emails’ and click on ‘Add New Template’.

2. In the ‘Load default template’ container select ‘New Order’ in the ‘Template’ dropdown. Alse select our desired ‘Locale’.
3. Click on ‘Load Template’. It will load the Default email template to edit for you. Now you can edit the ‘Template Subject’ and ‘Template Content’ to suit your needs. See the following screenshot:

Page 1 of 212»