Tag Archives: category edit
April 25, 2011Posted by on
I’ve just released a second small helper extension for Magento. On a past project, the store had about 200 configurable products, some having over 1000 associated simple products. To the customer, only the configurable products were in the catalog, all the simple products where hidden. We noticed that in the category edit area, when we selected products to add to the category all the products in the catalog were available. Because the sku names for the associated simple products were so similar to the configurable parent product, sifting through pages of products became too time consuming. Also, it didn’t really make sense as to why the product grid in the Category -> Category Products tab didn’t have similar search filters as the main product management grid in the admin.
This module adds more search filters columns to the Category -> Category Products tab and helps to extend the admin. As a bonus, the category name will be hyperlinked to the url for the category on the front of the site.
Linking to the category page on the front of the site was actually a bit of a problem, as the form.phtml page differs in its style. On the product edit.phtml template, the function $this->getHeader() returns the entire header (product name). However on form.phtml for the category page, $this->getHeader() only returns the category name, and is wrapped in htmlEscape like this:
In order to get around this issue, the package contains a modified version of the file design/adminhtml/default/default/template/catalog/category/edit/form.phtml and will overwrite the original file.