Magento Themes and Magento Extensions

Magento – Add a new tab on customer edit page

Share
Posted on October 24th, 2012 | Posted by admin

This version touches core files. Please make backup before you get started.

In Magento: I am going to add ‘Survey’ tab and display text

1. Open /app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
Inside _beforeToHtml() method, add the following code

1 $this->addTab('Survey',array(
2 'label' =>Mage::helper('customer')->__('Survey'),
3 'class' => 'ajax',
4 'url' => $this->getUrl('*/*/survey',array('_current'=>true)),
5 ));

How to Add Categories in Magento

Share
Posted on October 23rd, 2012 | Posted by admin

Adding new categories in Magento is simple. Go to Catalog > Manage Categories page. Select parent category to which you want to add new one by clicking on it on the category tree shown on the left side of the form. Parent category values will be filled in the category form on the main part of the editor form. To add new category, click on the ‘Add Subcategory’ button on the left top side of the editor. Once the form values are cleared, you can start filling the new category data. Most of the available fields are self explanatory.
Is Active – defines if category is visible to site visitors

Display Mode

Products Only – category will only show products

Static Block Only – show only static block defined on next attribute (do not show products)

Magento SEO checklist: Default Magento SEO features that you should be aware of

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

Magento is SEO friendly shop engine that allows you to get more traffic from search engines. However it is very important to configure Magento SEO features correctly from very beginning.

In this article we gathered all default Magento SEO features. Use this article as SEO guide or SEO checklist for every new store you launch, and your Magento will be search engine optimized.
Magento SEO checklist

How to configure Magento Polls

Share
Posted on October 21st, 2012 | Posted by admin

How to configure Magento Polls. Ever wonder what your customers are thinking? An easy way to find out is to have a poll. To configure a poll, log into the admin section, go to CMS -> Polls. In the upper right click “Add New Poll”. Next, type in a question for your poll. After that, in the upper left, click on “Poll Answers”. Add the answers for your poll. After you have entered all the answers, click “Save Poll” in the upper right. That’s it. After you’ve collected the answers you want, you can close the poll just by changing it’s status from open to closed.

Observers, reality or fiction

Share
Posted on October 21st, 2012 | Posted by admin

Observers are very powerful instrument in Magento. They allow us to bind our functionality to some Magento events. Many of you know about dispatchEvent function. This function calls all observers registered for this event. For example, we have the following code snippet placed in this app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php file.

Mage::dispatchEvent('catalog_product_collection_load_after', array('collection' => $this));

It means, that we can bind any event we want to identifier ‘catalog_product_collection_load_after’ and operate with $this variable (it’s a product collection in our case). But it is important to know what event choose for your functionality. Therefore, Magento runs your observer after collection loading.
Now, we need to bind our observer to ‘catalog_product_collection_load_after’ event. See below how we can do this

Page 2 of 7«12345»...Last »