
Jean-Philippe(@jean-philippe)
49 Posts
Customers
Quote from Jean-Philippe on August 22, 2021, 21:10
Hi Pablo
After reading some WOOF support threads I noticed something interesting. Am I correct that it may be possible to display a WOOF vendor specific product category filter in the widget area? (pre Filtered for vendor). I was looking for a way to improve the terrible format of the native Dokan vendor product category widget.
Refer to screen shot of how it looks now - https://www.dropbox.com/s/hqxag5o69jt187t/Screenshot%202021-08-22%20at%2021.02.31.png?dl=0 or link to a vendor store page https://www.mytanklife.com/Store/aquazon/
If this is possible, can you guide me how to achieve this?
Hi Pablo
After reading some WOOF support threads I noticed something interesting. Am I correct that it may be possible to display a WOOF vendor specific product category filter in the widget area? (pre Filtered for vendor). I was looking for a way to improve the terrible format of the native Dokan vendor product category widget.
Refer to screen shot of how it looks now - https://www.dropbox.com/s/hqxag5o69jt187t/Screenshot%202021-08-22%20at%2021.02.31.png?dl=0 or link to a vendor store page https://www.mytanklife.com/Store/aquazon/
If this is possible, can you guide me how to achieve this?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 23, 2021, 12:26
Hello
Please read this - https://products-filter.com/manipulate-search-data-options
Use key = woof_author
Hello
Please read this - https://products-filter.com/manipulate-search-data-options
Use key = woof_author

Jean-Philippe(@jean-philippe)
49 PostsTopic Author
Customers
Quote from Jean-Philippe on August 24, 2021, 21:51
Thank you, I read your article and others but unfortunately do not have enough experience to implement the advice for this situation.
1 - Can I have a custom product category filter by author on each vendor's page? (I have about 15 vendors)
2 - If, so does each vendor need a unique script pasted into child theme? What should the script be?
3 - I assume I must use add some kind of widget to Dokan store sidebar and paste a filter script into it? (text widget?)
Thank you, I read your article and others but unfortunately do not have enough experience to implement the advice for this situation.
1 - Can I have a custom product category filter by author on each vendor's page? (I have about 15 vendors)
2 - If, so does each vendor need a unique script pasted into child theme? What should the script be?
3 - I assume I must use add some kind of widget to Dokan store sidebar and paste a filter script into it? (text widget?)

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 25, 2021, 12:02
Hello
1 No! Because the author is not a category. But to show a filter for a specific author, use this code - https://share.pluginus.net/image/i20210825125636.png - The filter will show items that are relevant to this author
2 Yes, or you can create one script for all pages, but this is more complicated and you need to investigate this
an example:
add_filter('woof_get_request_data', 'my_woof_get_request_data');
function my_woof_get_request_data($data){
$data['woof_author']=$use_id_of_the_vendor;
return $data;
}
3 No! If you have no experience in programming, you'd better hire a developer.
Hello
1 No! Because the author is not a category. But to show a filter for a specific author, use this code - https://share.pluginus.net/image/i20210825125636.png - The filter will show items that are relevant to this author
2 Yes, or you can create one script for all pages, but this is more complicated and you need to investigate this
an example:
add_filter('woof_get_request_data', 'my_woof_get_request_data');
function my_woof_get_request_data($data){
$data['woof_author']=$use_id_of_the_vendor;
return $data;
}
3 No! If you have no experience in programming, you'd better hire a developer.