Magento Themes and Magento Extensions

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 Installation fetal error or a blank page

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

Run this SQL quires after importing your database. have fun

UPDATE `core_store` SET `store_id` = 0 WHERE `code` like ‘admin’;
UPDATE `core_website` SET `website_id` = 0 WHERE `code` like ‘admin’;
UPDATE `customer_group` SET `customer_group_id` = 0 WHERE `customer_group_code` like ‘NOT LOGGED IN’;

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.

Leveraging Magento for Cost Reduction and Customer Retention

Share
Posted on August 23rd, 2014 | Posted by admin

E-commerce businesses need to focus on how they are going to create their website and enhance the shopper experience for customers. Magento is just one of the options available to them and the website is the most important aspect of doing business online. While products and customer service are important, people will never be able to discover these without first having a sufficient website layout. This is where Magento is being leveraged in order to offer a variety of benefits.

Cost Reduction with Magento

Magento offers the ability to do more things with less money. The program is entirely scalable, allowing businesses the ability to grow and still maintain the same software program. The program is capable of handling multiple sites, high volumes of products, and high volumes of traffic. This ensures that a company is able to reach out for new business without having to spend more on the design of their website.

Page 1 of 15212345»102030...Last »