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

WOOF and WooCommerce Sort By Feature Error

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.

We are experiencing a Sort By feature error on our website and we think we have isolated the issue and hope you can assist in why it's happening and offering a solution to the problem.

Our main store URL is: https://alsdelivers.com/store/

When you Select a Brand, Region, Volume, Etc. and then sort by Price or by Name, it sorts with problems and functions perfectly fine. When you go to Categories, this is where the issue tends to happen. We have a lot of subcategories, and this is triggering a"Nothing Found" Error.

If you Select"Beer & Seltzers" and then"Beer", then Sort by"Price", the page errors out and shows"Nothing Found".  Both the check box on the Category of"Beer & Seltzer" and"Beer" remains checked, and we think this is what's causing the error. It's like WooCommerce is trying to sort two categories at once, and that's causing the error.

If you click on just"Beer" and not check off the main category of"Beer & Seltzer", it sort perfectly fine. You can even go down several subs and check off just"Stout" and the sort works perfectly fine by name and price. But since"Stout" is part of Lager, and you check off Lager, it will then error out since two check boxes are checked at the same time.

Can you please advise? Not sure if this is an issue of how it's writing the URL string, or how it's returning the items that's the issue. Maybe there is a way to force the checkbox on just the subs?

Sort Works Fine When 1 Check Box is selected.

 

 

 

Progressive Filtering Then Errors Out

Error

 

We where able to correct the issue by changing the SEO URL Request under Advanced Settings. Just an FYI for anyone else using Avada as a theme and experiencing the sort issue being broken at times, just switch the SEO URL Request Enable/Disable to"Yes".

 

Hello

Ok!  Great! Thank you for  your  cooperation!

We are however still having 1 issue. All pages are no functioning correctly EXCEPT the search results page. We have two problems on this page.

  1. The Price scale doesn't appear to be registering correctly to show correct price point. The Low-High numbers are still the cheapest item and most expensive item in stock, regardless of the search results. However, the Categories, Brand, Etc. are all returning the correct results. Can you please advise? A good sample search would be"Smirnoff"
    1. https://alsdelivers.com/?s=smirnoff&post_type=product&search_limit_to_post_titles=0&fs=1
  2. The Sort By feature doesn't work still, but ONLY on the Search Results page. It seems like there is a conflict from WOOF. We resolved the rest of the pages by changing the SEO URL Request Enable/Disable to"Yes". But the Search Results page still doesn't seem to work. We have contacted AVADA on this and they said it's a WOOF issue and to contact you guys. Can you please advise?

Thank you!

Hello

1 The plugin is incompatible with third-party filters. Please  activate  this  extension - https://share.pluginus.net/image/i20221019075149.png

2 Ok!  Please  disable  my  plugin and  do a test

For the scale. We have enabled the husky extension, but it still not registering anything. on the pages. Please advise.

 

We have disabled the plugin and tried to do the sort, it still seems to be not functioning on the search results page. So could that be an Avada issue then?

 

Hello

Ok! Try  in  file -  \wp-content\plugins\woocommerce-products-filter\ext\by_text\index.php -  add  this  line - https://share.pluginus.net/image/i20221020080803.png

add_filter('woof_get_filtered_price_query', array($this, 'add_to_filtered_price'));

and  add  this  function - https://c2n.me/4gUMNkv.png

public function add_to_filtered_price($sql) {
$request = woof()->get_request_data();

if (isset($request['woof_text']) AND $request['woof_text']) {
$search_text = $request['woof_text'];
global $wpdb;
$ids = $this->get_all_ids($search_text);
if (empty($ids)) {
$ids = array(-1);
}
$product_ids = implode(',', $ids);
$sql.=" AND ( $wpdb->posts.ID IN($product_ids))";
}
return $sql;
}

 

But keep in mind that this can slow down page loading. For this reason, I recommend using the option Advanced->Options - https://share.pluginus.net/image/i20221020081243.png

So could that be an Avada issue then? - Yes it is possible

OK thank you! That script has worked.. One last item (I hope! lol)

https://alsdelivers.com/beer-and-seltzer/

On this page we are using the same archives as on the search results page to display the specific categories of items. The filter is showing and believes everything is still there. We can modify the URL string to adjust the filter, but where looking to see if it's possible to just have it auto check the page content and display the appropriate categories, price, etc. like it's doing now on the search results page?

Thanks in advance!

Hello

Please  read  this - https://products-filter.com/manipulate-search-data-options

Tried to add that code and turn of Ajax, however it did not work. Was still showing all categories, brands, etc on the page.

Hello

what code are you using? please   drop me  this  code and  exact  link to the  issue