Magento admin separate ajax product Grid load
-
08-10-2019 - |
Question
I have to load separate product Grid to select needed product items and store it under my another custom module's model in magento admin side.
So i have a custom module created by using Module creator and added another tab which i wish to show all the products as a list or grid to select(Exactly i want it like in new order page under admin side) and store.
Do you anybody know how to load product grid or list under custom module area.
I really appreciate your help. Thanks
Solution
Ela,
I won't walk through all the steps to do this here, but I'll tell you how I did this. Basically if you look at the Google Base folder under app/core you'll find some really good hint on how to add a product grid to your module.
Basically whee you're going to be doing is defining a block that overrides Mage_Adminhtml_Block_Widget_Grid. From there you override a few basic functions such as __construct(), _prepareCollection() and _prepareColumns() (there may be a few others) and then magic-ento does most of the hard work for you.