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.

  • check this answer. – Abdul Samad Abbasi Nov 18 '20 at 10:04
  • 1
    that didn't help unfortunately @AbdulSamadAbbasi – Wolfack Nov 18 '20 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.