Jan 29, 2013

Magento: How does Magento Adminhtml Grid Work

 CRUDs are common database operations and the Magento admin backend developments are no exception. However, it is usually a headache to create the data grid in a management panel as there’re a lot of HTML/CSS/JS to deal with for the data table, and also for the database operations. Luckily, Magento provides an infrastructure, Adminhtml Grid, for you to do the admin backend development in an elegant way. In this article, I’ll introduce you the mechanism of the Adminhtml Grid and you’ll know how to manage the data through it easily and efficiently.
To start with, let us have a look at what Magento Adminhtml Grid is. Open the Magento Customer module through backend.... .


Please click on below links for details...

http://www.magentogarden.com/blog/how-does-magento-adminhtml-grid-work.html

http://codemagento.com/2011/02/grids-and-forms-in-the-admin-panel/


Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Jan 18, 2013

Magento: How to uplaod multiple images custom module

Step 1: Just create a simple custom module first having admin controller, config file.
Step 2: Follow the below link...
http://www.magentocommerce.com/boards/viewthread/11667/ 

Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Jan 1, 2013

Magento: How to print div content only

To print div content only you can use the below sample script.


<!-- /* PG:  Code to print div content only */ -->
 
<script type="text/javascript">  
    function PrintDivOnly() {  
        var divToPrint = document.getElementById('divToPrint');
        var popupWin = window.open('', '_blank', 'width=400,height=400');
        popupWin.document.open();
        popupWin.document.write('<html><body onload="window.print()">' + divToPrint.innerHTML + '</html>');
        popupWin.document.close();
    }
</script>
 
<div id="divToPrint" ><h3>Div Content To Print</h3></div>

<div>
    <input type="button" value="Print Now" onclick="PrintDivOnly();" />
</div>
<!-- /* PG:  End: Code to print div content only */ -->

Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Wishing You Happy New Year 2013

Wishing You Happy New Year 2013. . .