Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Filtering product attributes not working at certain conditions
- This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago by
patriziord.
-
AuthorPosts
-
December 27, 2017 at 9:13 am #16035
patriziord
ParticipantHi 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 8 years, 5 months ago by
patriziord.
December 27, 2017 at 11:17 am #16038Ernest Marcinko
KeymasterHi 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.pngThat should do the trick.
December 27, 2017 at 12:35 pm #16039patriziord
ParticipantThat 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 8 years, 5 months ago by
patriziord.
-
This topic was modified 8 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.