Forums › Forums › Search & Filter Pro › Product Category Counts
- This topic has 8 replies, 2 voices, and was last updated 4 years, 4 months ago by Trevor.
-
Anonymous(Private) September 10, 2020 at 4:43 pm #259078
Using woocommerce shop display results. I have a filter for taxonomy (product_cat). The filter correctly shows the product categories in the filter but thinks they are all empty as the count shows (0) next to each one. I have over 10K products in the database and they definitely have categories assigned to them.
Any help with this is super appreciated?
Trevor(Private) September 16, 2020 at 1:16 pm #259667It depends how long ago you built the site, but we now have a free additional extension for Elementor Pro, which you should download (if you are logged in) from top of this guide page (which shows how it should be used with the product archives widget, see a little way down the page for specific extra advice when using the product archives widget):
https://searchandfilter.com/documentation/3rd-party/elementor/
Please read the guide carefully, as the old method you had to have a filter_next_query shortcode, some javascript, and set it to custom mode, none of which are now used (all built in to the extension).
This will require a few changes to the form and the page setup, but will work much better than the way it is currently setup.
I have made a few changes to your form (remove the Advanced relevance setting, which cannot be used unless you are also using the Relevanssi plugin). I have also added variations to the Post Types being searched, and set the form to auto detect the product category of the page you are on. The form cache is currently rebuilding.
I will get back to you once it has finished and I can check if the issue is fixed.
Trevor(Private) September 16, 2020 at 1:58 pm #259674One other thing I think you will need to do. Can you edit the WordPress site wp-config.php file and add this line towards the start of the file (after the php tag line):
define('WPE_GOVERNOR', false);
Copy this from the forum post, and not the email, as email software will replace the quote marks with the wrong ones.
You will need this line as you are using WP Engine for your hosting.
Anonymous(Private) September 16, 2020 at 4:30 pm #259759Thank you – it does look good…only other request I would have…an easy way to implement some type of ajax loading indicator on the screen. I see the screen opacity changes a bit…but something visual (like a spinner would be nice)…is there anything I can hook into to make that happen?
Trevor(Private) September 16, 2020 at 9:00 pm #259817Sorry, ignore that last post. I had meant to give you a link to this post:
https://support.searchandfilter.com/forums/topic/how-to-add-event-on-submit-button/#post-217082
-
AuthorPosts