magentopop

magento discussions

Free Magento Extension #2 – Admin Category Products

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:


$this->htmlEscape($this->getHeader())

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.

Admin Category Products Extension

Enjoy!

Advertisements

5 responses to “Free Magento Extension #2 – Admin Category Products

  1. Pete Douglas January 22, 2012 at 2:14 pm

    In Magento Connect the 0.1.2 version comes up with community/Openstepmedia_AdminCategoryProducts: Version for ‘Openstepmedia_AdminCategoryProducts’ was not detected
    As it looks like a helpful extention and 0.1.1 does not show Qty in the grid I was hoping that the newer version would work in 1.6.1.
    Any suggestions?

  2. Ivo July 22, 2012 at 9:23 pm

    Where can I get the extension? Would be really helpfull.

  3. Farrukh Malik November 13, 2012 at 10:53 am

    Great extension. Worked well for me. I want to add Status(Enabled, Disabled) column too, can you please let me know how to do that?

  4. Farrukh Malik November 13, 2012 at 10:57 am

    Okay, figured it out. To add status column we have to add following code in

    app/code/community/Openstepmedia/AdminCategoryProducts/Adminhtml/Block/Catalog/Category/Tab

    $this->addColumn(‘status’,
    array(
    ‘header’=> Mage::helper(‘catalog’)->__(‘Status’),
    ‘width’ => ’70px’,
    ‘index’ => ‘status’,
    ‘type’ => ‘options’,
    ‘options’ => Mage::getSingleton(‘catalog/product_status’)->getOptionArray(),
    ));

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: