enhancedgrid
enhancedgrid copied to clipboard
filter by availability is in stock
is it possible to add this attribute? Which file should I edit in order to do this?
thanks
Is it not a customizable option in the enhancedgrid config?
No that option (inventory_stock_availability) is not present in column options. But I am using v1.3.2.1 maybe I should upgrade?
please any idea about this?
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.
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 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
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
checking to see if anyone was able to get this to work? The link melaxon shared is not working anymore. thank you!