Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Filtering on joined column in Magento 2

    In this blog, we will see how to do filtering on joined column in Magento 2. We use addFieldToFilter to apply filter on collection. But the addFieldToFilter does not work if we have joined collections. Let’s suppose we have joined order collection to get the order status.
    We can add the column from the second table i.e. order status for filter with addFilterToMap method like shown below,

    After it has been mapped we can apply filter like normal as shown below,

    Thanks for reading the blog. Please comment if you face any issue.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close