Filter product collection with nested OR/AND statements
-
15-04-2021 - |
Domanda
I want to make a query as below
WHERE manageStock = 0 OR (manageStock = 1 AND productStatus != 0) OR (manageStock = 1 AND backorderStatus = 1)
but I can't use $collection->getSelect()->where() because these are EAV attributes so I need to use addAttributeToFilter() for them.
Please help to use the above in Magento's way.
Nessuna soluzione corretta
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange