How to Add Custom Tabs to Magento Customer Edit page

Share
Posted on January 16th, 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.

app/code/local/Mydons/etc/config.xml

AIDA in eCommerce – Landing on product pages

Share
Posted on June 28th, 2011 | Posted by admin

AIDA stands for Attention, Interest, Desire and Action. It’s the oldest trick in the sales book, but rarely thought about when it comes to eCommerce. The idea is that a sales person should follow these four steps when pitching a product to the potential buyer. In the world of eCommerce, you don’t have your sales person, so this process is (should) be done by your online store.

Attention

Using search engines, in most cases visitors will land on product or category pages. We will concentrate on your product pages within the AIDA process. Once the visitor lands on your product page, you have merely a few seconds to grab his attention. In these few seconds, this visitor will decide weather this is what he was looking for or he’ll move along. We are talking about attention, the first part of AIDA process. In the real world, you’d be trying to catch the attention of the buyer in this step, but online, you already have his attention. All you need to do is make sure you don’t lose it.

Change any page title in Magento

Share
Posted on March 23rd, 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

1
2
3
4
$this->loadLayout();
...
$this->getLayout()->getBlock('head')->setTitle($this->__('My Account'));
$this->renderLayout();

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

1
<title>< ?php echo $this->getTitle() ?></title>

with

1
2
3
<title>
< ?php echo ($this->getForcedTitle()) ? Mage::getStoreConfig('design/head/title_prefix').' '.$this->getForcedTitle().' '.Mage::getStoreConfig('design/head/title_suffix') : $this->getTitle() ?>
</title>

or if you don’t wish to use title prefix/sufix added from Magento admin, simply with

1
2
3
<title>
< ?php echo ($this->getForcedTitle()) ? $this->getForcedTitle() : $this->getTitle() ?>
</title>

and now just set “forced” title for pages through layout files

Add Adwords tracking code to order confirmation page in Magento

Share
Posted on February 23rd, 2011 | Posted by admin

Add Adwords tracking code to order confirmation page in Magento

Adding an Adwords tracking code to order confirmation page in Magento is relatively easy task. One that can be handled under an hour or so if you choose to implement it the proper way. Here is how.

Modify the “app/design/frontend/default/my_custom_theme/layout/checkout.xml” file. Look for section

1.<checkout_onepage_success>
2.<reference name="root">
3.<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
4.</reference>
5.<reference name="content">
6.<block name="checkout.success" template="checkout/success.phtml" type="checkout/onepage_success" />
7.</reference>

How to use WordPress home page in Magento home page (CMS page)

Share
Posted on February 23rd, 2011 | Posted by admin

How to use WordPress home page in Magento home page (CMS page)

Simple : ) -Ok, lets get down to business. This one is really, really simple, but powerful. In all it greatness Magento lacks the good content management solution (CMS features). Lot of people are heading down the road of integrating the WordPress and Magento. Probably everyone in web development has heard about WordPress. Personaly I like them, from Joomla, Drupal, WordPress… But there is that little something that makes WordPress far more loving in the eyes of the client. Not to start a flame here, lets get back to the topic. Due to the lack of the proper content management in Magento those who use WordPress can easily manage the (home page in this case) content trough WordPress and make it accessible in Magento CMS page (that you can set to home page in Magento).

Page 1 of 212»