Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter by availability is in stock #36

Open
noindie opened this issue Mar 8, 2016 · 8 comments
Open

filter by availability is in stock #36

noindie opened this issue Mar 8, 2016 · 8 comments
Labels

Comments

@noindie
Copy link

noindie commented Mar 8, 2016

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

thanks

@jayelkaake
Copy link
Owner

Is it not a customizable option in the enhancedgrid config?

@noindie
Copy link
Author

noindie commented Mar 8, 2016

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
Copy link
Author

noindie commented Mar 24, 2016

please any idea about this?

@jayelkaake
Copy link
Owner

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.

@noindie
Copy link
Author

noindie commented Apr 4, 2016

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(),
                ));

@jayelkaake
Copy link
Owner

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
#36 (comment)

@melaxon
Copy link

melaxon commented May 13, 2016

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

@shadowcomm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants