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

Filter shows all site's products on the WCFM Vendor's product catalogue?

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.

Good morning! I hope you're all safe and well :-)

We're having a bit of a problem. The filter works fantastic on the main site's product catalogue, however it works exactly the same way on an individual Vendor's product catalogue too (I have it inserted as a widget on the vendor page sidebar)  - I can easily get the filter to show the whole site's products.

We're using WCFM as our vendor solution, how should I go about fixing this? Thanks for the help! :-)

Hello

Read  this please - https://products-filter.com/manipulate-search-data-options/

try  to  use search  by author

 

Hey Pablo thanks for the quick reply :) So, I'd use something like:

$request['woof_author'] = '26';

perhaps? I did try that idea in a woof shortcode using taxonomies=woof_author:26 but it didn't seem to do anything.

The example you gave for functions.php looks like it applies to the entire site, if I went this route to solve the issue how would I adjust it to apply to vendor stores, and to account for which vendor it is?

I'm not sure it will solve the entire issue though even if we do get it working, as I'm not sure that will fix the filter showing selection options that don't apply.

If it helps I've been playing around earlier; when I set"form AJAX redrawing" to on in the widget two things happen:

  1. When I select a filter, it correctly filters that vendor's products and does not show other vendor's products that match the filter.
  2. The"auto refresh" of the filter attempts to run, but once complete hasn't actually done anything - this works fine normally.

However, even with form AJAX redrawing on, the filter's selectable values continue to not match the vendor's store (e.g. the category totals represent the whole site, not this vendor's store - and the selectable options in each attribute again represent the whole store, not just the values available for this vendor's products).

I know I've already said it, but I do appreciate that you guys and gals are so willing to help me out on this stuff :-)

Hello

I did try that idea in a woof shortcode using taxonomies=woof_author:26 but it didn't seem to do anything. - it won't work

Use  this  please -  - https://products-filter.com/manipulate-search-data-options/

looks like it applies to the entire site - Yes . To change this behavior, you need code customization.

An  example:

add_filter('woof_get_request_data', 'my_woof_get_request_data');

function my_woof_get_request_data($data){

$is_vendor_page = some_function_to_detect_vendor_page();

 

if($is_vendor_page ){

$vendor_id = some_function_to_get_vendor_id();
$request['woof_author']$vendor_id ;

}
return $data;
}

Drop me  exact  link to  the  issue