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 5 years, 9 months ago.
- AuthorPosts
- December 27, 2017 at 9:13 am #16035
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.
December 27, 2017 at 11:17 am #16038Hi 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.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 27, 2017 at 12:35 pm #16039That 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.
-
This topic was modified 5 years, 9 months ago by
- AuthorPosts
You must be logged in to reply to this topic.