Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to filter on in stock / out of stock in ProductDataGrid?

    Modules
    2
    4
    218
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      marc last edited by

      Hi,

      I'm trying to create a filter for the productdatagrid in the admin back end on a calculated field (in stock / out of stock). I can create the calculated field, but I can not filter on it.

      How do I change the where created by the productdatagrid to a having in the resulting mysql? Or is there some other work around to get this done?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @marc

        You need to make changes in the below file

        https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Admin/src/DataGrids/Catalog/ProductDataGrid.php

        Or if you want us to do these changes then it will come under as a paid service.

        you can purchase our support hours from the link below.

        https://store.webkul.com/bagisto-hourly-customization-package.html

        Thanks & Regards

        M 1 Reply Last reply Reply Quote 0
        • M
          marc @Rishabh-Webkul last edited by

          @Rishabh-Webkul Thanks for the offer, but I already found the solution.

          1 Reply Last reply Reply Quote 0
          • Rishabh-Webkul
            Rishabh-Webkul last edited by

            hello @marc

            That's Great

            Thanks & Regards

            1 Reply Last reply Reply Quote 0
            • First post
              Last post