• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

how to add category wise filter

Knowledge Base
4
25
16.9k
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
    moncherry29 @ashish2409 last edited by 24 Apr 2024, 08:26

    @ashish2409 this is my network when i filter on the item:

    Scherm­afbeelding 2024-04-24 om 10.24.58.png

    and this is in my database the value:

    Scherm­afbeelding 2024-04-24 om 10.25.43.png

    so the product_id is the 280 and the 44 is the attribute id of the "testfilter" attribute.

    ashish2409 1 Reply Last reply 24 Apr 2024, 08:30 Reply Quote 0
    • ashish2409
      ashish2409 @moncherry29 last edited by 24 Apr 2024, 08:30

      @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 24 Apr 2024, 08:33 Reply Quote 0
      • M
        moncherry29 @ashish2409 last edited by 24 Apr 2024, 08:33

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

        ashish2409 1 Reply Last reply 24 Apr 2024, 10:31 Reply Quote 0
        • ashish2409
          ashish2409 @moncherry29 last edited by 24 Apr 2024, 10:31

          @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 24 Apr 2024, 11:13 Reply Quote 0
          • M
            moncherry29 @ashish2409 last edited by 24 Apr 2024, 11:13

            @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 24 Apr 2024, 11:15 Reply Quote 0
            • ashish2409
              ashish2409 @moncherry29 last edited by 24 Apr 2024, 11:15

              @moncherry29

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

              M 1 Reply Last reply 24 Apr 2024, 11:17 Reply Quote 0
              • M
                moncherry29 @ashish2409 last edited by 24 Apr 2024, 11:17

                @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 24 Apr 2024, 11:28 Reply Quote 0
                • ashish2409
                  ashish2409 @moncherry29 last edited by 24 Apr 2024, 11:28

                  @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 24 Apr 2024, 11:47 Reply Quote 0
                  • M
                    moncherry29 @ashish2409 last edited by 24 Apr 2024, 11:47

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

                    ashish2409 1 Reply Last reply 24 Apr 2024, 11:57 Reply Quote 0
                    • ashish2409
                      ashish2409 @moncherry29 last edited by 24 Apr 2024, 11:57

                      @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 24 Apr 2024, 15:59 Reply Quote 0
                      • M
                        moncherry29 @ashish2409 last edited by 24 Apr 2024, 15:59

                        @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 25 Apr 2024, 04:29 Reply Quote 0
                        • ashish2409
                          ashish2409 @moncherry29 last edited by 25 Apr 2024, 04:29

                          @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 25 Apr 2024, 04:40 Reply Quote 0
                          • ashish2409
                            ashish2409 @ashish2409 last edited by 25 Apr 2024, 04:40

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            22 out of 25
                            • First post
                              22/25
                              Last post