AnonymousInactive
Hi there,
I’m filtering a Woocommerce store page with a group of filters.
Once one filter is applied, some of the other filters auto-update their options (which is great) but others don’t. I need to do a refined search, so I need all of them working together…
I will send you a staging site link and credentials just in case you want to have a look at my setup 🙂
AnonymousInactive
Hi,
I have tried quite a few combinations of setups, with multiple forms and with just one set as “Woocommerce store”, adding/removing AJAX etc, but I am having the same issue that on submission of the search form, there is no ? preceding the url params.
I’m wondering if you could help me please.
Cheers
Jack
AnonymousInactive
Thanks Ross.
If it helps, I’m using the plugin “Markup by Attribute for WooCommerce” to set prices for each attribute.
But then I normally generate the Variations and it auto-calculates the final price for each one.
But I don’t know why the filter only shows active the last variation added, for example: “Square + Paper + Clear + High Gloss”, but all combinations are added, it should show all options.
AnonymousInactive
Hi, I already enabled filter by Products and Variations in General. But the filter only shows the count for the last variation loaded in each product.
It’s like the other variations are not in stock or something like that. But all variations have stock and price loaded.
You can see the filter here: https://www.neuralabel.com/store/
The issue I think is likely in what you tell me, that you are sharing one of more taxonomies across more than one post type, which you shouldn’t do in WordPress, but it is possible to set it up to do so.
Since ‘term splitting’ was introduced in WordPress, it is not recommended to use the same taxonomy across multiple post types – instead you should use Custom Fields to do this, as these can be applied to multiple post types. If you need to use taxonomies, you need to have/make separate custom taxonomies for each post type, even if they use the same terms.
The consequence of this, is that if you are searching more than one post type (other than in WooCommerce which has Products and Variations as linked post types), you should not use taxonomy fields in the search.
Hi Alex
Ok so I see the issue…
The problem we have sometimes with our plugin, is that when you load our search form edit page, we have to load all the post meta keys on your site at once – to popuplate the dropdown (we should do that with ajax, but that won’t solve this issue).
The issue is in fact how many individual post meta keys you have. This is with woocommerce enabled (and all other plugins disabled):
https://snipboard.io/m4sH2j.jpg
That shows over 38,000 meta keys! The browser doesn’t like to load a dropdown list with so many entries… This is whats causing the slowdown on the page (when dragging items, clicking anything)
And when you get a 500
error when loading the admin page, I think thats because server resources / mysql limitations have been reached (we’ve effectively done a mysql query for over 40,000 records on every page load of the search form edit screen).
The question is, why do you have so many unique entires? That is tons of data assigned to your post meta… I’ve never seen anything quite like this!
Also, I tried without woocommerce, and I still see around 40,000 meta keys! So I think woocommerce has nothing to do with the issue (and the meta data is not stored on the products) – I think it is jsut a co-incidence that it was failing at that point (because WooCommerce takes up additional server resources).
So, I’m thinking, how do we clear up all this post meta – do you know where it is coming from / what it’s used for?
Best
AnonymousInactive
Hi Ross,
I made a quick 2 min video.
https://www.loom.com/share/c2fc89618e994c6fa4b4b13d583909e2
To reproduce the issue, simply enable the WooCommerce plugin on the dev site.
AnonymousInactive
Hi,
I have a woocommerce store with two categories of products: (1) snack, (2) beverages
Each have different populated ACF fields.
I know Search can use Post Meta filter to filter ACF fields.
Snack category has ACF fields: Flavor, Size
Beverages category has ACF fields: Alcohol, Volume
I would like to know what is the proper way to set up search & filter to show only the correct filters for each product category:
-When user is on snack category page, I want Search & Filter to only show Flavor , Size filters (do not want to see filter for alcohol, volume)
-When user is on Beverages category page, I want Search & Filter to only show Alcohol, Volume filters
Should I create different filter in for each category? Or is there another way?
Thank you in advance
AnonymousInactive
I watched many videos and did all the steps but nothing works, I hope for help.
I have a WooCommerce Shop.