PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Price Filter Applies in Limited Circumstances

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I have a site using HUSKY - Products Filter Professional for WooCommerce to filter inventory. I am deploying the filter on the homepage and main product index page.

https://a46226c147.nxcli.io/
https://a46226c147.nxcli.io/buy/

It mostly works well, but there are a few odd behaviors that are very problematic for us that I'm hoping the team can shed some light on. Price, Dynamic Recount, and Logic=OR all seem to be malfunctioning.

Form design: The form is multi-select and I want the form options to narrow down to what is available as you select options, then you submit form to show results. Here is the shortcode I'm using:

[woof sid='generator_669ebf62086a6' autohide='0' autosubmit='0' is_ajax='1' ajax_redraw='1' start_filtering_btn='0' btn_position='b' dynamic_recount='1' hide_terms_count_txt='0' mobile_mode='0' ]

But there are various issues:

  1. When only Max Price is set, it is completely ignored.
  2. When Max Price and Category are both set, the results completely ignore the Price limit but respect Category (but when Max Price and other fields e.g. Vehicle Class are set, the price limit DOES apply, and Category is automatically filled in even if you didn't select one).
  3. Dynamic Recount does not occur until the form is submitted. Thus, contradictory/exclusive selections can be made resulting in 0 results (but that doesn't really make sense because they're all set to Logic=OR so every selection should just add more inventory)
  4. If you have selections made, and then you deselect them, and click Apply Filters, it reapplies the same filters with the same URL query like a page fresh, and restores the unselected item.
  5. If, on the homepage form, you select multiple contradictory terms (only possible because neither Dynamic Recount nor Logic=OR seem to be working) and it hit submit, the Filter form on the results page shows only the fields you filled in, and you have to Reset Filters to get back the whole form.

Basically, this is so many issues that I don't even know how to troubleshoot. I am hoping your team can inspect the settings and see if there is something I am doing wrong. I have tried it with with everything AJAX turned off, and everything AJAX turned on.

Dynamic Recount is not happening. If it was, each selection would narrow down remaining options, which does not happen until form submit. Logic=OR is not happening. If it was, each new selection would add new inventory to the results rather than excluding them. Perhaps these features can't both be configured as they are?

Please advise how to proceed. This is a Dev site and you are free to edit it using the provided credentials (please do!).  Thank you!!!

Hello

Please renew your support

Try this shortcode

[woof sid='generator_669ebf62086a6' autohide='0' autosubmit='1'  is_ajax='1' ajax_redraw='1' start_filtering_btn='0' btn_position='b' dynamic_recount='1' hide_terms_count_txt='0' mobile_mode='0' ]

and  do  test

Hello. I will happily extend my support license if you can help us address these concerns, but I am unaware of how to do it. By another license from codecanyon?

It seems like turning on autosubmit makes dynamic recount work. I am wanting dynamic recount WITHOUT submit/autosubmit, but maybe that's not possible?

Even with autosubmit turned on, I am still having the price issue. Submitting only a max-price or even max-price AND Category does not filter the inventory by Price. Price only works if a Class/Make/Model/Length/Weight is also selected. The issue is that many people will want to filter only by Price or Price+Category so it is specifically a problem.

It also still seems to me that Logic=OR isn't applying. If the logic is OR, then the dynamic recount should never actually reduce, because each new selection would just add more inventory. Do I misunderstand?

Thank you.

Hello

It seems like turning on autosubmit makes dynamic recount work - form should be redrawn to show dependencies, so here is 2 ways: page reload and Form AJAX redrawing, but its better activate

In your case using custom template, so attributes in shortcode doesn work, but here is trick - container where are products should be wrapped into tag div with id 'woof_results_by_ajax' and class 'woof_results_by_ajax_shortcode', its doing automatically when applied shortcode [woof_products is_ajax=1]

price slider - I did test, deactivate HUSKY plugin and try woo native price filter functionality - doesn work, so I went here wp-admin/admin.php?page=wc-status&tab=tools and reset 'Product lookup tables' https://share.pluginus.net/image/i20240111124932.png - now its works -> buy/?min_price=100000&max_price=131895&swoof=1

In the HUSKY plugin, OR logic works as follows: each selected filter adds new results, expanding the selection of products. However, dynamic recalculation always works according to AND logic to show only those products that match all selected conditions at the same time. This is necessary so that the user can see how the available number of products changes with each new filter added. If dynamic recalculation worked according to OR logic, it would not fulfill its main function - informing the user about the available products.

Thus, dynamic recalculation should really always reduce the selection of products to show exactly how many products meet all selected criteria at the same time.

So you should turn off dynamic recalculation on the contrary because its logic contradicts your goals but at the same time you will get the effect that the customer when choosing to certain criteria will receive an empty result so it is better to leave it as is since the meaning of the search is to narrow it down by certain criteria

By another license from codecanyon? - yes, just new license

Welcome ...

 

 

Thank you for detailed response. I understand most of it. I have extended my support license.

It sounds like I can take two approaches.

Use AND Logic, Autosubmit, and Ajax Redraw. The form will instantly refine the fields and results based on my selections.

  • Q: It seems that the form redraws but the listings do not refresh until manual form submit. Is there a setting that adjusts that so listings automatically redraw too?
  • Q; Does it actually matter if the options are set to And or OR? They are currently set to OR but it seems to work (except listings don't redraw)

Use OR Logic, manual Submit, and no Redraw. The form and listings will not redraw until manual submit.

Price. I still don't understand why the Price works when submitted in combination with some options (Model) but when not with others (Category, or by itself), but I will pass along your info about ID/Class to my template developer. You are saying that resetting Product lookup tables fixed it, but I do not see evidence of that.

Please advise. Thanks!

Hello

Thank you for support renew

AJAX will not work as container not wrapped into id 'woof_results_by_ajax' and class 'woof_results_by_ajax_shortcode', so lets apply redirect mode, so I set shortcode as [woof sid='generator_669ebf62086a6' autosubmit=1 is_ajax=0] and now filtering works instantly without need to click button, also SEO URL extension is enabled and link now looks like: https://a46226c147.nxcli.io/buy/swoof/make-gmc/product_cat-clearance/ - works, the user will select criteria and narrow the search and thus, since dynamic recalculation is enabled, he will see all possible options and will never select an empty one

price filter - looks like here problem, and it doesn work as with HUSKY so without. Lets do next, create another test domain please and using plugin Duplicator https://wordpress.org/plugins/duplicator/ create clone of the site and in the secret area please provide ftp+wp-admin access to that clone site, and I will test it using all different methods. I do not want to broke your site so better create clone of it please ...

p.s. https://a46226c147.nxcli.io/buy/ - one note, I do not see pagination here, but it should be as you have a lot of products ...

 

p.s. also it is better to use PHP version greater than 8.1, as 7.4 is obsolete and slower, just in your hosting options select more new one version ...

Hello. Thanks!

It's working well and I like these settings. Only issue seems to be the price.

I have upgraded to PHP 8.1.

There is no pagination, but it is set show only 10 listings and expose 10 more each time you scroll to the end.

I have added FTP creds to the private info.  This website is a development site with daily backups, so you have my permission to apply your testing/edits directly to this website. Please proceed. Thank you!

Hello

 I still don't understand why the Price works when submitted in combination with some options (Model) but when not with others (Category, or by itself), - Please add FTP access. I see you have already added wp-admin access but to solve problems with the price filter I need FTP

There is no pagination, but it is set show only 10 listings and expose 10 more each time you scroll to the end. - Please read this - https://products-filter.com/make-infinite-scroll-for-filtered-products-also

Hello.

The FTP logins are present in Private Data. They are at the bottom.

Re: Infinite scrolling. This  effect is being achieved using Avada Post Card settings. These are Avada templates, not native Woo templates. Do you see it causing an issue? I can set it to pagination but that would still be Avada settings.

Hello

Please disable all cache. My file changes are not working

Hello Pablo.

Sorry for the delay. There is no server caching or plugin caching on this site. I think that may not be the issue.

Hello

Then maybe you gave FTP access from another site

Pablo,

I have logged in via FTP using these credentials and confirmed they work. Please make sure you are accessing the"a46226c147.nxcli.io" directory.

Thank you!

Hello

Please add do a test

Pablo,

Using these credentials I have uploaded a test item to the website at /a46226c147.nxcli.io/html/test.php

You can view it at https://a46226c147.nxcli.io/test.php

If  caching seems to be an issue, you can clear it any any time by going to /chroot/home/a4a3dc74/a46226c147.nxcli.io/html/wp-content/ and removing the ''cache'' folder.

Let me know what you think. Thanks!

ok!

Please add do a test - I mean do a test with a price filter