Forums › Forums › Search & Filter Pro › Hide empty terms – not work
Tagged: empty
- This topic has 14 replies, 3 voices, and was last updated 4 years, 6 months ago by Ross.
-
Anonymous(Private) June 8, 2020 at 10:45 am #247800
Hi, I have a problem hiding inactive variations on a Woocommerce product.
The filter works correctly, but I would like to show only the available variations. To have a customized filter for each category, I use a dedicated shortcode.here the demo site I’m working on.
https://uniqstore.dev-test.it/categoria-prodotto/abbigliamento/giacche-e-cappotti/
The filter “Filtra per taglia” should only show me the following available terms: L, M, S while instead showing all the terms available on the shop.
here the settings
https://uniqstore.dev-test.it/wp-content/uploads/2020/06/settings.jpg
Anonymous(Private) June 8, 2020 at 1:18 pm #247856Hi Trevor, Thank you for your answer.
I had already tried it, but as you can see now by clicking on the list no available field appears. It looks empty.https://uniqstore.dev-test.it/categoria-prodotto/abbigliamento/giacche-e-cappotti/
I also cleared the cache, but it doesn’t work.
Trevor(Private) June 9, 2020 at 12:54 pm #248022The Yith WooCommerce Wishlist plugin/functionality adds the ‘hearts’ to each post using JavaScript on page load. When an Ajax refresh is made, this code is not called. We have some JavaScript that allows other scripts/functions to be called after an Ajax refresh ash been done, but you would need to know from Yith what that line(s) of code would be:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // call your script or function here }); }(jQuery));</script>
Anonymous(Private) June 12, 2020 at 2:45 pm #248637Hi Trevor,
thanks for the feature. I managed to solve this problem.
Unfortunately there is another problem to be solved:Paging with Ajax does not seem to work: the following message appears in the console: “Uncaught TypeError: can’t access property” toLowerCase “, r is undefined” in the search-filter-build.min.js file
Anonymous(Private) June 12, 2020 at 3:55 pm #248647I add these details to help you visualize the problem:
On the page with the filter that manages woocommerce there is the problem I have indicated.
https://uniqstore.dev-test.it/shop/
while in the template that uses the search-filter template, no error comes out, but it cannot make the pagination. Here are 75 products instead I only see 7, without showing me the other results
https://uniqstore.dev-test.it/categoria-prodotto/abbigliamento/giacche-e-cappotti/
-
AuthorPosts