Bagisto Forum

    Bagisto

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

    Color filter does not work on configurable product.

    General Discussion
    3
    12
    451
    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.
    • A
      aga last edited by

      I created a configurable product with following color:

      1fe77455-7571-41ae-8d1b-c8e316b85ad3-image.png

      c4a4ceba-e654-401e-901a-e1a77712f24c-image.png

      the search page without any filter options is like this, and the configurable product I want is circled.

      6cf6bed2-5926-4ed1-ba1d-8198c94cc6c3-image.png
      then I try with options, color = khakis (as above shows, my product have khakis color), the configurable product did not show:

      2977331a-e7ce-47ea-9d12-59d3f80aebbd-image.png

      anyone can guide me on this, thanks~

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

        Hello @aga

        I have also created a configurable product with 3 different colors of bed
        variation.png
        Now on the category page, a single configurable product will be visible as shown below.

        categoryBed.png
        After you click on this it will redirect to the product detail page where you can select your desired color there which you added in the variations from the admin panel.check product detail page with color filter in the below image.

        productdetail.png

        If you still face any issue go through the link https://bagisto.com/en/how-to-create-configurable-product-in-bagisto/

        Hope this will help you to resolve your query if still face any issue then please let us know.

        Thanks & Regards..!!

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

          And if you want to show them Individually on the category page after clicking on the checkbox you need to enable the toggle option Visible Individually in each color variant of your product from the admin panel as shown below.

          visible.png

          Now it is visible

          filters.png

          Thanks & Regard..!!

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

            @Rishabh-Webkul I think you didn't understand what he means. When several attribute options to a product assigned and then if any of the options are chosen, that product is hidden from the store front. It doesn't matter if it is simple product or configurable product. I have been posting this on another post but nobody paid attention on it. https://forums.bagisto.com/topic/3530/category-s-filterable-attributes-not-working-propertly
            i have a simple product product-8 with attribute 1 and 2 options are checked.
            35854d55-f1c6-4bbc-8d97-866a0a13fe83-image.png

            On category page, without any option is checked you can see the product:
            61ca4587-3ff4-40fc-a598-afaf6237b2fb-image.png

            But if you make any check:
            0ee36781-1ae2-4a29-8c54-48ff45bbfefb-image.png
            dc7b2ba0-095c-4068-a1c4-e3e0bb456e1e-image.png

            We get the product disappear:
            92ea6615-789c-4dbf-8f29-a719e692db04-image.png

            I shared some findings about the DB in my previous post. If you can guide me through the code, I can try to contribute into the solution.

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

              @gokhanyildiz i think you are doing something wrong because in my Bagisto All products visible on the category page as shown below

              all.png

              And as you are saying after selecting the check box product will not be visible right.
              Here in the other image, I will select the checkbox to the Red and now only the red bed will get visible.

              Selection_645.png

              Here is for the black bed

              Selection_644.png

              you have to enable the toggle option of visible individually from the admin backend panel for the particular product.

              Thanks & Regards..!!

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

                @Rishabh-Webkul Hi sir, thank you for your message.

                I am talking about another scenario. You give only the Red option to Red Bed and only Black option to the Black Bed. When you activate these options, then you are right. Red Bed or Black Bed is shown accordingly. But please try to give Red and Black option at the same time to a Bed or another simple product and then try to filter it from the customer view. Please consider my screenshots again. I give 2 options to 1 product and try to filter those options from the customer view. Then the product gets disappeared.

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

                  @gokhanyildiz

                  If the customer selects 2 check boxes at the same time ie Black and Red in my scenario, then it will be visible from both the customer's point of view as well.

                  Kindly have a look at the below screenshot.

                  Selection_647.png

                  Hope this will help you to resolve your query. As your scenario is also been covered in this

                  Thanks & Regards..!!

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

                    @Rishabh-Webkul still not the same 🙂 I am saying append both Red and Black option to Red Bed. Then you will see that Red Bed will be disappeared when you choose Red or Black color. (You may ask why should I assign both Red and Black color to Red Bed, but there are some other use cases when we need this. Like a book can be a "Child Book" and "Novel" at the same time.)

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

                      @gokhanyildiz

                      This is the part of customization.

                      Package >> Webkul >> Shop >> src >> Resources >> views >> categories >> filters.blade.php

                      Selection_651.png

                      This file is responsible for this you can create and apply your condition here.

                      Thanks & Regard..!!

                      G 2 Replies Last reply Reply Quote 0
                      • G
                        gokhanyildiz @Rishabh-Webkul last edited by

                        @Rishabh-Webkul ok, thank you very much. At least now I know where to look to develop it myself. I have been struggling with it since Monday.

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

                          @Rishabh-Webkul Hi sir. Could you please give more details how to approach this? I tried to find out how your filtering mechanism work. I examined API\ProductController, ProductResource, ProductRepository, ElasticSearchRepository. But I couldn't find out how to access the text_value in attribute table and compare it with the selected options in store front.

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

                            Hello @gokhanyildiz

                            If you want to know in detail about this you can buy our support hours, You can select the number of hours before purchasing the plan. The basic plan is of 10 hours.

                            https://store.webkul.com/bagisto-hourly-customization-package.html#:~:text=It allows you to purchase,plan is of 10 hours.

                            In this, we will help and look into your issue and make customization as per your requirements thoroughly.

                            Thanks & Regards..!!

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