Bagisto Forum

    Bagisto

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

    how to add category wise filter

    Knowledge Base
    4
    25
    3148
    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.
    • ashish2409
      ashish2409 @moncherry29 last edited by

      @moncherry29

      Ok Thanks for sharing the screenshot, we will be checking the same in our localhost in master code and will update you ASAP.

      M 1 Reply Last reply Reply Quote 0
      • M
        moncherry29 @ashish2409 last edited by

        @ashish2409 thank you very much! im waiting for your repsonse 💪🏽

        ashish2409 1 Reply Last reply Reply Quote 0
        • ashish2409
          ashish2409 @moncherry29 last edited by

          @moncherry29

          Hello There as I have checked the same in the master and lateset version of bagisto and there I was able to see that it is working fine. For an ease I have created a video for your reference.
          I believe that this will help in resolving you concern.

          Please follow the link -> https://jam.dev/c/4f6fa2cf-a2e8-4bef-b449-9d6a7be63dc8

          M 1 Reply Last reply Reply Quote 0
          • M
            moncherry29 @ashish2409 last edited by

            @ashish2409 Very weird

            I have the same settings as you, i have made a video. i am on version 2.0.0, are you too?

            i have made a video of my settings: innovatiemedia.nl/video-trrc.mov

            is it maybe possible to call you?

            ashish2409 1 Reply Last reply Reply Quote 0
            • ashish2409
              ashish2409 @moncherry29 last edited by

              @moncherry29

              No I am using latest version V2.1.2 and master version.

              M 1 Reply Last reply Reply Quote 0
              • M
                moncherry29 @ashish2409 last edited by

                @ashish2409 are there differences in the filter or categoryattribute or other relevant files between 2.0.0 and 2.1.2?

                ashish2409 1 Reply Last reply Reply Quote 0
                • ashish2409
                  ashish2409 @moncherry29 last edited by

                  @moncherry29

                  I am looking for the same case in V2.0.0 then only I can assist you better. Please allow me some time.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    moncherry29 @ashish2409 last edited by

                    @ashish2409 Ok thank you very much, if it is easier maybe we can do a phone call or something

                    ashish2409 1 Reply Last reply Reply Quote 0
                    • ashish2409
                      ashish2409 @moncherry29 last edited by

                      @moncherry29

                      "Hello there,
                      you can raise a ticket and share all the details so that we can assist you better.

                      Ticket Link -> https://webkul.uvdesk.com/en/customer/create-ticket/"

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        moncherry29 @ashish2409 last edited by

                        @ashish2409

                        I fixed the issue, i found it.

                        In v2.0.0 in ProductRepository.php in the searchFromDatabase function there is an added line:

                                     $qb->havingRaw('COUNT(*) = ' . count($attributes));
                        

                        If you remove this line everything works fine again.

                        ashish2409 1 Reply Last reply Reply Quote 0
                        • ashish2409
                          ashish2409 @moncherry29 last edited by

                          @moncherry29 said in how to add category wise filter:

                          $qb->havingRaw('COUNT(*) = ' . count($attributes));

                          Hello there,

                          You can check V2.1.2 , there are many changes and its the stable version you can check the details here as well.

                          https://github.com/bagisto/bagisto/blob/v2.1.2/packages/Webkul/Product/src/Repositories/ProductRepository.php

                          I would suggest to go and check here as well.

                          Thanks.

                          ashish2409 1 Reply Last reply Reply Quote 0
                          • ashish2409
                            ashish2409 @ashish2409 last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post