Magento Themes and Magento Extensions

The Phoenix – Magento Responsive Theme

Share
Posted on September 3rd, 2014 | Posted by admin

The Phoenix is a Premium Responsive Magento Theme. A super neat design, it has black&white style . If you want to have a very unique and attractive design and trying to make your way among numerous store owners, The Phoenix is a great starting point for you.

The Phoenix with powerful features, easy to customize, power admin, cool effect. We hope you will have a great experience

Magento – handle ajax call

Share
Posted on August 30th, 2014 | Posted by admin

Creating an ajax request call in magento is quite easy.

All the requests are handled by the controllers in Magento. So Inside the request controllers we need to create a block programmatically which will return a view html output.

Magento uses “block” concept to handle the html output. Blocks are special classes that handles the view section in magento.

Now create the ajax function and send your ajax request to this controller action.

This code will create and render a block in the controller and will return the html output.

Get controller, module, action and router name in Magento

Share
Posted on August 29th, 2014 | Posted by admin

/**
* get Controller name
*/
$this->getRequest()->getControllerName();

/**
* get Action name, i.e. the function inside the controller
*/
$this->getRequest()->getActionName();

/**
* get Router name
*/
$this->getRequest()->getRouteName();

/**
* get module name
*/
$this->getRequest()->getModuleName();

IN CLASS FILES
$this might not work in class (php) files. In this case, you need to use Mage::app().

Here is the code:

/**
* get Controller name
*/
Mage::app()->getRequest()->getControllerName();

Magento – Add Remove top links using Layout.xml

Share
Posted on August 25th, 2014 | Posted by admin

Magento – Add Remove top links using Layout.xml

Removing or Adding top links in the header section of the theme is very easy via Layout.xml files. However we need to edit multiple files to accomplish this task like wishlist.xml, customer.xml, checkout.xml etc.

1. To Remove Wishlist link from top links

Open the file /app/design/frontend/package/theme/layout/wishlist.xml and find the lines given below, simply comment these lines to remove the wishlist link.

Custom events in Magento

Share
Posted on August 14th, 2014 | Posted by admin

This year, I’ve been working extensively in Magento, which is a change of pace from the custom-coded, “from the ground up” projects I’d been doing previously. I was excited about entering this “brave new world” because with my background, I felt I could take quickly to find ways to extend Magento’s core functionality.  One example that was brought to my attention wascustom events.

Events in Magento are similar to hooks in WordPress,  which is where code is able to be run during particular ‘hooks’ in the loading process (ie: initialization). In Magento, you can dispatch events whenever you like. For example, in line 335 of Magento’s core customer account controller (app/code/core/Mage/Customer/controllers/AccountController.php), you see this:

Page 3 of 90«12345»102030...Last »