Magento & # 8594; I want the product grid in admin to display in the interface

I want the grid in admin to be displayed in the interface. A grid that displays a list of products in admin-> catalog-> product management.

I want to show this in the interface for each category?

What would be the ideal approach to do this?

+3
source share
3 answers

You need to rewrite blocks

Mage_Adminhtml_Block_Catalog_Product_Grid
Mage_Adminhtml_Block_Widget_Container

for ourselves, because in this class we have logic for editing, adding products.

also you need to override

adminhtml/default/default/template/catalog/product.phtml
adminhtml/default/default/template/widget/grid.phtml

and add templates to the settings area of ​​the interface.

frontend catalog.xml _category_default node :

<catalog_category_default>
    <reference name="content">
        <block name="module_name/catalog_product_grid" template="module_name/catalog_product_grid.phtml" output="toHtml />
    </reference>
</catalog_category_default>
+1

adminhtml, adminhtml , javascripts CSS, , . , ajax .

+2

Source: https://habr.com/ru/post/1782694/


All Articles