Filtering product attributes not working at certain conditions

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Filtering product attributes not working at certain conditions

This topic contains 2 replies, has 2 voices, and was last updated by patriziord patriziord 5 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16035
    patriziord
    patriziord
    Participant

    Hi again Ernest,

    I was going to put this woocommerce of mine on production, posting the real products instead of the test ones.

    The issue:

    using color attribute created “per product” – attribute_colore – , my checkbox filter worked fine together with a price filter;
    changing my color attribute to be “e-commerce – wide”- attribute_pa_colore (WooCoommerce > Attributes, then assigned to product variations) – I’m not able to filter products anymore.

    What I had before:

    2 products, shoes, each with its own attributes, created via the product panel – taglia (size) / colore (color)

    2 custom field filters for the search, a slider working on _price, a checkbox working on attribute_colore (shoes color)

    What I have now:

    More products, with the same two shoe attributes – taglia / colore – but created as “general” attributes via the woocommerce menu and after assigned on each single product.

    I then changed my custom field filters to match the new attributes this way:
    Price slider remained the same, still using _price
    Color checkbox is now using attribute_pa_colore.

    Thanks in advance,

    Patrizio

    • This topic was modified 5 years, 9 months ago by patriziord patriziord.
    #16038
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Patrizio,

    I believe the problem is that WooCommerce no longer stores the product attributes as custom fields, but taxonomy terms.
    So instead of the custom field filter, try using the pa_colore taxonomy filter: https://i.imgur.com/kDSLLnR.png

    That should do the trick.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #16039
    patriziord
    patriziord
    Participant

    That worked like a charm.
    Your support has made my day, just like any time I needed before.

    Thank you so much, have a very nice day and enjoy your holidays – if any 😉

    Patrizio

    PS: is there a quick way from ASP panels to edit the Category filter <legend> ?
    I now see it in english like “Filter by Prodotto Colore”, while would better make it “Filtra per colore”.
    I’m just able to do it using both some css trick or WPML translation, but would be easier if there’s a editing field for that.

    • This reply was modified 5 years, 9 months ago by patriziord patriziord.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.