How to show additional fields in magento abandoned carts grid

Share
Posted on January 16th, 2012 | Posted by admin

Magento Abandoned carts report gives the list of customers who have added products to the shopping cart and logged out without placing orders, the products they placed will still be in their cart. Abandoned carts report will be shown as a grid in admin panel. This report notifies the store owner about the customers who have abandoned their carts, later the store admin can inform to the respective customer and make them clear their cart.
Recently I got a client requirement to show the customer telephone field in the abondoned cart grid. As it will be useful for the admin to call customers and alert them to complete their orders.

To add additional field to abandoned carts

Step 1: Copy the file app\code\core\Mage\Adminhtml\Block\Report\Shopcart\Abandoned\Grid.php to the local directory app\code\local\Mage\Adminhtml\Block\Report\Shopcart\Abandoned\Grid.php. Whenever a Core file is copied to the local directory structure, the file included in the local directory will get preference and it will be taken.

Step 2: Now in the _prepareCollection method we need to join our additional field to the existing collection. A collection is an array of model class objects.

How to add Datepicker to Magento Forms

Share
Posted on January 11th, 2012 | Posted by admin

Magento has a built in library for calendar functionalities. However the calendar library is available only on Admin pages like Customer Grid,Customer Account view page,Sales order Grid etc. We can extend the prototype Javascript library’s calendar functions to frontend.

Step 1: Edit the page.xml file in your current theme in the directory app/design/frontend/default/yourthemename/layout/page.xml Around line 65 add the below lines in between
<block type=”page/html_head” name=”head” as=”head”> </block >

Facebook Connect Magento Extension

Share
Posted on January 7th, 2012 | Posted by admin

We’re proud to present free Facebook Connect Magento extension which enables customers fast and easy registration and login with their Facebook identity. And it’s just been updated!

Important

Facebook updated it’s authentication mechanism but so did we, so please update your extension to the newest version since older versions won’t work anymore.
Also, if you’re getting “An error occurred. Please try again later.” message in connect popup, you need to get new “App ID/API Key” from Facebook and enter it into Magento. Check your Application Secret along the way.

Download

Download Inchoo_Facebook-0.9.9.zip, extract files to appropriate place following directory structure and reload cache.
Latest pre-relase versions can always be downloaded on my github project page.

How to add Store codes in URL Magento

Share
Posted on December 27th, 2011 | Posted by admin

Today we’ll see how to add the store code in the Magento URL from the admin panel

Go to System -> Configuration -> General -> Web

Then URL Options -> Add Store Code to Urls -> Yes


How to turn on Magento Path Hints

Share
Posted on December 27th, 2011 | Posted by admin

If you are a Magento theme developer you should know about Path Hints.

The Template Path Hints shows wich file is the frontend using for each part of the page.

Go to System -> Configuration -> Developer

You have to select a specific store view: