Magento Themes and Magento Extensions

Adding state to country in magento – indian states

Posted on September 19th, 2012 | Posted by admin
In this tutorial, we will see how to add states to countries in magento.

By default in magento only few countries have a state drop down when a country is selected like United States, in this tutorial we will see how to add state drop down for other countries as well.

The main table where are all the state values of a country are stored is directory_country_region and directory_country_region_name.
The fields of the table ‘directory_country_region’ are
1. region_id: auto-incremented id
2. country_id: the iso code of country (this code is taken from directory_country table)

Magento Controller forward in admin

Posted on September 18th, 2012 | Posted by admin

I’m creating simple Magento module based on this article.
I have a problem with my admin New Item action.


class Namespace_Gallery_Adminhtml_GalleryController extends Mage_Adminhtml_Controller_Action
protected function _initAction()

    return $this;

public function indexAction()

How to get the page Title – Magento

Posted on September 17th, 2012 | Posted by admin

Here’s a short snippet that retrieves the page title in Magento.

You can use in your magento theme files or in any module.

$headBlock = $this->getLayout()->getBlock(‘head’);

// Just to make sure it doesn’t return an error

if ($headBlock) {

echo $headBlock->getTitle();


Magento – How to add/remove link(s) in customer account dashboard?

Posted on September 16th, 2012 | Posted by admin

In this post you can see how to add a new link to customer account navigation menu from custommodule.xml. Layout XML files can be found in app/design/frontend/[package]/[theme]/layout. Each Magento module may define its own layout XML file. Add secure link for example.

	<reference name="customer_account_navigation">
            <action method="addLink" translate="label" module="custommodule"
                <label>My Custome Label</label>

Uses the secure domain if allowed in configuration


Magento Professional Edition extensions

Posted on September 16th, 2012 | Posted by admin

Magento Professional (also known as Magento PE) is an edition of a popular ecommerce platform Magento. Actually Magento PE shares the same functionality as Magento Community Edition with some revenue-generating features which cannot be found in the open source Magento Community platform. Moreover, the Professional Edition is provided under warranty from Magento and supported by Magento Solution Partners.
This edition of Magento is generally aimed at middle and big businesses, but all businesses of different sizes are welcomed to open their online stores using Magento PE.
With the Professional Edition it is possible to create an online store that can significantly increase your company’s revenue, create operational efficiencies, enhance customer communications and provide a satisfying shopping experience for your customers.

Page 3 of 5«12345»