Support » Plugin: annasta Woocommerce Product Filters » Problem with filter for colors

  • Resolved marinow1991

    (@marinow1991)


    Hello 🙂

    I really like your extension, but I have a problem with it.

    I have taken out for:

    Price
    Size
    Color
    Material

    The filter for price and size work perfectly, but I have a problem with the color and material filter.

    When I select a color, it does not show me the items, but when I select a size filter, then they are displayed.

    For example, we are looking for women’s green shoes:

    I choose the color green and I am not shown any items, but if I mark size 37 then all the green shoes appear, of which there is size 37.

    This is the site where I use your plugin
    https://armadabg.eu/produkt-kategoriya/%d0%be%d0%b1%d1%83%d0%b2%d0%ba%d0%b8/

    I will be very grateful if you help me 🙂

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author annastaa

    (@annastaa)

    Dear Marinow1991,

    I think you use non-Latin (Cyrillic?) slugs for your product categories and attributes. Our plugin supports only Latin attributes/categories/tags slugs, please read this article of our troubleshoot guide to learn about ways of resolving this filtering issue.

    Thread Starter marinow1991

    (@marinow1991)

    No, no my slugs is on latin

    look –>>
    https://ibb.co/VtwP5Ch

    Plugin Author annastaa

    (@annastaa)

    Hello again Marinow1991,

    Please edit your attribute terms slugs for them to be in Latin-only characters as well! To do that, follow the Configure terms link for each attribute of the Products > Attributes admin section. You can consult the troubleshoot article that I mentioned yesterday: an example of such link is selected by red rectangle on the relevant screenshot.

    Thread Starter marinow1991

    (@marinow1991)

    I did everything as you described, but again it doesn’t work.
    Am I mistaken?

    https://ibb.co/ccWBQCD
    https://ibb.co/fHxscV0

    Plugin Author annastaa

    (@annastaa)

    Marinow1991,

    I can see that you have changed the color names’ slugs, and if you now go to your shop page, you will see that the color filters work without problems. However, you still have non-Latin slugs in Products > Categories. Please change the “обувки”, “портмонета” and other Cyrillic category slugs to latin letters!

    Thread Starter marinow1991

    (@marinow1991)

    Hello

    I also changed the slugs of the categories, but there is no progress. The filter does not work.

    I also made a video to see this`

    Plugin Author annastaa

    (@annastaa)

    Hello again Marinow1991,

    Perhaps you also need to check if the products are associated with the proper color attributes?

    You see, if the filters didn’t work due to a conflict with your theme or some 3d party plugin, they wouldn’t work everywhere. Please check this page, here things seem to work as expected!

    Plugin Author annastaa

    (@annastaa)

    PS You can also use this page of your site to see which products you currently have associated with particular colors.

    Thread Starter marinow1991

    (@marinow1991)

    All products are related to their colors.
    You can see in my video. For example, when I choose white, it tells me that I don’t have products with white, but when I mark it, the variation makes my products work.

    I think the plugin has some problem with variations.

    Indeed, products that do not have variation work properly …

    I hope to solve this problem together, because your extension is good, works quickly and is convenient.

    Plugin Author annastaa

    (@annastaa)

    Dear Marinow1991,

    Unfortunately, there is only so much information about your attributes setup that the front end view can provide us with! At this point it would be very useful to see how your attributes are registered in products. Do you perhaps use some 3d party plugin or custom code to attach attributes to products / create variations? Please contact us if you wish for us to check your backend to try and understand the problem better.

    Also, can you please try to explain what you mean when you say:

    For example, when I choose white, it tells me that I don’t have products with white, but when I mark it, the variation makes my products work.

    Do you use the Stock filter variations support option located on annasta Filters > Plugin settings in combination with Out of stock visibility setting located on the WooCommerce > Settings > Products > Inventory page?

    Thread Starter marinow1991

    (@marinow1991)

    Yes, I have the Stock filter variations support option enabled.

    It turned out that after I turned off this option. The problem is fixed, but this option is extremely important to me and without it my size filter does not work properly.

    Plugin Author annastaa

    (@annastaa)

    I have just checked on a test site with both Stock filter variations support and Hide out of stock items from the catalog enabled, but still fail to reproduce the issue!

    To cover the basics, please do make sure that you don’t use any 3d party plugin or custom code when editing your product variations! Such custom code may not set the proper Woocommerce database flags that out of stock variations support relies on.

    You could perform the following test:

    1. Go to the All Products section in your WordPress admin
    2. Select “Edit” for a product (shoe?) which definitely has the black in stock variation
    3. Scroll down to open the Variations tab of this product settings page, make sure that there is at least 1 black variation marked as “in stock” (or having the positive stock quantity), and push the Save changes button under the list of product variations.
    4. Push the product Update button
    5. Reload your shoes category page, then apply the “Black” filter. Does it show the product now?

    I have also set up a similar example on our demo page (with Stock filter variations support and Woocommerce > Settings > Products > Inventory > Hide out of stock items from the catalog enabled): please click here to see it with the “Fruit” (category) and “Red” (color) filters applied.

    Apples have 3 Red color variations (combined with Large, Medium, Small sizes). 2 of these variations are out of stock and 1 size is in stock. With the red color filter selected on the demo page, apples get displayed. Plums on the other hand have their Red variation out of stock, so they will appear in the filtered list only if you remove the Red filter. Does this set up remind your case?

    Thread Starter marinow1991

    (@marinow1991)

    “To cover the basics, please do make sure that you don’t use any 3d party plugin or custom code when editing your product variations! Such custom code may not set the proper Woocommerce database flags that out of stock variations support relies on.”

    I dont use 3D plugin for product variations

    “`1. Go to the All Products section in your WordPress admin
    2. Select “Edit” for a product (shoe?) which definitely has the black in stock variation
    3. Scroll down to open the Variations tab of this product settings page, make sure that there is at least 1 black variation marked as “in stock” (or having the positive stock quantity), and push the Save changes button under the list of product variations.
    4. Push the product Update button
    5. Reload your shoes category page, then apply the “Black” filter. Does it show the product now?`”

    I tried this but that’s not the problem.

    I have also set up a similar example on our demo page (with Stock filter variations support and Woocommerce > Settings > Products > Inventory > Hide out of stock items from the catalog enabled): please click here to see it with the “Fruit” (category) and “Red” (color) filters applied.
    
    Apples have 3 Red color variations (combined with Large, Medium, Small sizes). 2 of these variations are out of stock and 1 size is in stock. With the red color filter selected on the demo page, apples get displayed. Plums on the other hand have their Red variation out of stock, so they will appear in the filtered list only if you remove the Red filter. Does this set up remind your case?

    It seems to work well for you.

    Obviously the problem is somewhere deeper.
    
    Will you be able to see if I give you access via TeamViewer.
    
    Also to make correspondence via Skype or Viber to make things happen faster and more concentrated.
    Plugin Author annastaa

    (@annastaa)

    Marinow1991,

    Since there always exists a high chance of plugins going into conflicts with one another, before moving on to any in-depth debugging, please perform the standard conflicts detection by disabling all the rest of plugins apart from Woocommerce and the filters.

    Test the variations filtering without 3d party interventions. If the problem persists, temporarily activate the native Woocommerce Storefront theme, and check again. If the issue disappears after activating Storefront, you are welcome to request the theme compatibility check via our contact form.

    If the filters perform as expected with your theme and the rest of the plugins deactivated, start re-activating the previously disabled plugins one by one, each time testing in order to detect which one triggers the filtering issue. After you find the culprit, I’m afraid you will need to choose which functionality is more important for your site, and either go with that plugin, or disable it and use our filters.

    Thread Starter marinow1991

    (@marinow1991)

    I tried to stop all plugins and leave only
    -annasta Woocommerce Product Filters
    -woocmmerce

    * The problem remained.

    I tried to change the theme to
    -Astra
    I tried too
    -Twenty Nineteen

    * The problem remained.

Viewing 15 replies - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.