Magento themes and extensions

Magento – Add the bread crumbs for the page (breadcrumb)

Posted on March 13th, 2013 | Posted by admin

Magento - Add the bread crumbs for the page (breadcrumb)
1. Add the bread crumbs for the front page basic steps to install the refrigerator similar to the elephant: controller file, fill in the crumbs of data, the block of the phtml file display
1).’s Action method in the controller

// Determine the existence of the first name of breadcrumbs  Block( The default is present,
 it is followed by a description  )
if ($breadcrumbsBlock = $this->getLayout()->getBlock('breadcrumbs')) {
  //  The entry with the target link address
  $breadcrumbsBlock->addCrumb('category', array(
    'label'    => 'Category',
    'title'    => 'Category Title',
    'link'     => '',
    'readonly' => true,
  //  The entry does not have the link address, usually as the last entry
  $breadcrumbsBlock->addCrumb('product', array('label' => Mage::helper

How to add email template and send email in Magento

Posted on March 12th, 2013 | Posted by admin

this is quite a popular task for every Magento site. And you can found many tutorials for this which show you how to create and add Magento template email via XML file. However I’m sure that many people are wondering about Transactions Emails under Magento -> Configuration. Why don’t we use it? And how can we use it?

Here I will explain for you. Basically you can use either email template defined via XML file or stored in database (added via Transactions Emails). And we use same way to send email with these templates. Here is how you can setup code for sending email

How to add Magento blocks, CSS and Javascript to an external site

Posted on December 3rd, 2012 | Posted by admin

You might have a Magento based website running online and wanted to extend parts of it (also known as blocks, which may include some css and js in the code) to an external site which may either be a blog, another CMS or any other PHP based web application. If you have been following my previous posts, you will know that by adding the Mage.php file of your Magento instance to your application, you can actually pull the needed HTML blocks at any time. The only problem is that most of the examples available online asks you to use thegetChildHtml(‘your-block-here’) in which most the time frustrates you because of its complexity and limited resources of how you can actually use it.

There are other ways of doing it. Oddly enough, some are pretty simple and straight forward.

We will use a single HTML file which will serve as our ‘external’ site. The source code of our index.php is shown below:

I can’t add a product to my wishlist – Magento

Posted on July 9th, 2012 | Posted by admin

I can’t add a product to my wishlist – Magento

One of our clients at the office had a store and the “wishlist” button in the product view wasn’t working.

The products he was trying to add weren’t in the root category.

You must add your products at least to the root category.

magento themes

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.

Page 1 of 3123»