enhancedgrid icon indicating copy to clipboard operation
enhancedgrid copied to clipboard

filter by availability is in stock

Open noindie opened this issue 8 years ago • 8 comments

is it possible to add this attribute? Which file should I edit in order to do this?

thanks

noindie avatar Mar 08 '16 08:03 noindie

Is it not a customizable option in the enhancedgrid config?

jayelkaake avatar Mar 08 '16 18:03 jayelkaake

No that option (inventory_stock_availability) is not present in column options. But I am using v1.3.2.1 maybe I should upgrade?

noindie avatar Mar 08 '16 20:03 noindie

please any idea about this?

noindie avatar Mar 24 '16 09:03 noindie

Sorry, yeah I'm not sure at all. You could fork the repo and extend the getCollection method in the Grid.php class if you want to add the functionality.

jayelkaake avatar Mar 26 '16 05:03 jayelkaake

should I add something like this? cause does not look correct.

thanks for your help, very appreciated!

        $this->addColumn('inventory_stock_availability ',
                array(
                    'header' => Mage::helper('catalog')->__('Status'),
                    'width' => '1000px',
                    'index' => 'inventory_stock_availability',
                    'type' => 'options',
                    'options' => Mage::getSingleton('catalog/inventory_stock_availability ')->getOptionArray(),
                ));

noindie avatar Apr 04 '16 16:04 noindie

You have to join the stock inventory resource to the product collection first. Why don't you ask on Magento stack exchange how to do this? I'm sure many people would be willing to help you with this there :) On Apr 4, 2016 11:04 AM, "noindie" [email protected] wrote:

should I add something like this? cause does not look correct.

thanks for your help, very appreciated!

    $this->addColumn('inventory_stock_availability ',
            array(
                'header' => Mage::helper('catalog')->__('Status'),
                'width' => '1000px',
                'index' => 'inventory_stock_availability',
                'type' => 'options',
                'options' => Mage::getSingleton('catalog/inventory_stock_availability ')->getOptionArray(),
            ));

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/jayelkaake/enhancedgrid/issues/36#issuecomment-205368716

jayelkaake avatar Apr 04 '16 16:04 jayelkaake

check this: http://www.opencart60s.com/magento/add-8220-is-in-stock-8221-column-in-products-grid-manage-in-backend-10097.html#thaoluan_34835

though it was posted in 2012 it works great on magento 1.9.2.4

melaxon avatar May 13 '16 12:05 melaxon

checking to see if anyone was able to get this to work? The link melaxon shared is not working anymore. thank you!

shadowcomm avatar Jan 16 '19 23:01 shadowcomm