Timeline for How to filter Product Grid based on custom attribute?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 28, 2017 at 5:35 | vote | accept | Rajat Agarwal | ||
Feb 27, 2017 at 13:41 | answer | added | Ashish Jagnani | timeline score: 1 | |
Feb 27, 2017 at 13:15 | answer | added | Krishna ijjada | timeline score: 0 | |
Feb 27, 2017 at 13:13 | comment | added | Krishna ijjada | You can try $products = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSort("entity_id","DESC") ->addAttributeToSelect('*') ->addAttributeToFilter('soldby', 'abc'); | |
Feb 27, 2017 at 13:10 | answer | added | Prasanta Hatui | timeline score: 1 | |
Feb 27, 2017 at 13:09 | comment | added | Rajat Agarwal | It is not working. P.S: It is a custom product attribute. @John | |
Feb 27, 2017 at 13:07 | comment | added | John |
If it is an attribute, you can use addAttributeToFilter('soldby', array('eq' => 'abc'))
|
|
Feb 27, 2017 at 13:01 | history | asked | Rajat Agarwal | CC BY-SA 3.0 |