Magento Themes and Magento Extensions

How to show additional fields in magento abandoned carts grid

Share
Posted on February 5th, 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

How to load magento model object with other fields

Share
Posted on February 5th, 2012 | Posted by admin

Magento ORM Allows the Developers to Store/Retrive Data using the load and save methods without writing Direct SQL Query.

$custommoduleobj= Mage::getModel(‘yourmodulename/modelname’)->load($id);
$custommoduleobj->getData();
$custommoduleobj->getFieldName();

However the load Method works only based on ID, To Fetch a Particular row the developer needs to know the id value or fetch all records using magento collection and check if the specified value exists. This approach has a drawback as it fetches all the records instead of a single record. Sometimes we may need to load our model class object based on other fields such as name,mail etc.
To load our model class object based on other fields we need to add some additional methods in our model class.

How to add additional row limit count in magento admin grid

Share
Posted on February 3rd, 2012 | Posted by admin

Magento Provides the Grid Based Layout in adminpanel pages for most of the pages like manage customers,manage products etc. The default row limit options are 20,50,100,200 etc per page. But for the stores with more than 1000 products and customers these options are not sufficient to display the records in less no. of pages.

Step 1: For this example we are going to add an additonal row limit count as 500. To do this locate the file which is reponsible for showing row count dropdown. The file is located in

app/design/adminhtml/default/default/template/widget/grid.phtml

Step 2: Around line 81 the code is located as shown below

How to Add Custom Tabs to Magento Customer Edit page

Share
Posted on February 3rd, 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

How to Send Newsletter Subscription Alert Email to Admin in magento

Share
Posted on February 2nd, 2012 | Posted by admin
Magento has a Newsletter Module that allows the storeowner/admin to send messages to the newsletter subscribers.
The customers/vistors can subscribe to the newsletter by filling the subscription form with their email id. However a small feature is missing in this module, Whenever a customer or visitor is subscribed to the newsletter the admin doesn’t get any notification/alert about the subscription. We can add this feature through our custom module. Our custom module will hook through the newsletter save event and triggers a function in our model class that will send the notification email to admin.Step 1: Create an email template in html and save it app/locale/en_US/template/email directory. Our email template looks as shown
Page 3 of 4«1234»