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

Filtering not working properly?

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.
12

Page: http://d-p-h-dk.hostingplus.dk/webshop/

No matter what category picked in the filter, it doesn't actually filter anything. It does load, so the connection is there, but just no filtering happening :-)

I was guessing it might be some JS or CSS optimization, but i couldn't find anything.

We are using the Divi theme.

Hello

Looks like this 3rd party template is not listening to the search query. To  show  products  try to  use a shortcode:  [products] OR [woof_products]

Thank you, this seems to have fixed the filtering issue ^^

How about customizing this wood_products shortcode? If we want to change the amount of rows etc?

Also, can we use this plugin sub pages that should only show (and filter) specific categories?

Hello

Please  read  this - https://products-filter.com/shortcode/woof_products

 If we want to change the amount of rows etc? - https://c2n.me/4higMrf.png

only show (and filter) specific categories? - https://c2n.me/4higOPR.png

Hi again,

I've just tried doing this, but with no luck. Nothing changes. I do have a bunch of categories setup but when i do something like: taxonomies=product_cat:3
It doesn't change anything. It still displays all my products. Doesn't matter whether i do that in the Woof or Woof Products shortcode. Nothing changes.

Hello

I checked  your  page

taxonomies=product_cat:9,12+locations:30,31  - are you sure you have such taxonomies.  https://share.pluginus.net/image/i20221214091806.png - It looks like you just copied it from the documentation. of course this won't work

Alright, so i found the category tag. There was nothing i could finding guiding me on where to find it. But i got it. However, now it doesn't seem to apply to the filter. It applies to the products, but the filter seemed to have the same shortcode for taxonomies, and it is not applying.

https://d-p-h-dk.hostingplus.dk/shop-vin/

You can see this. The filter and the products have the same taxonomies, and the products are only displaying from the"vin" category, but the filter is showing all categories as an option? Am i missing something again? :-)

Hello

Now everything seems to be correct.

But I understand what you want to achieve.

The problem is that this attribute in the shortcode is prefiltering. All filters will be displayed taking into account this category (other filters by attributes or price will change), but nothing will change inside the taxonomy (category). For example if you filter"portvin" other categories will remain the same

Try  to add this  code  in functions.php

add_filter('woof_set_shortcode_taxonomyattr_behaviour', 'test_test');
function test_test($tax){
   $taxonomy= explode(':',$tax );
   //really_curr_tax=80-product_cat
   if(count($taxonomy)>1 AND $taxonomy[0]=='product_cat'){
       $_GET['really_curr_tax'] = $taxonomy[1]."-product_cat";
   }
   return $tax;
}

I just tried adding that, but it hasn't changed anything i think?

Hello

Give me a screenshot of the code you posted

This is the code:

https://gyazo.com/fd15ca4dffcb35e1296aa758606d2992

This is the shortcode:

https://gyazo.com/728235378aee3c88c1cacf3d33eb3529

 

Hello

Where did you paste this code?

You are missing one line of code - https://share.pluginus.net/image/i20221221094353.png

My mistake,
I now added the missing line, but still not working. All the categories are still showing: https://d-p-h-dk.hostingplus.dk/shop-vin/

 

I added the code to the functions.php (theme functions) of our child theme. is this incorrect?

Hello

Ok! Give me a screenshot of the code you posted.

The problem is that other users use this code, so I can assume that you did something wrong

This is the functions.php code:

And this is the shortcode (category ID 17 is confirmed working with products)

Hello

Please  drop  me  wp-admin  access - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130637.png

Hope you had a merry christmas :-)

Login data is set.

Hello

Please  try  to show  products - [woof_products is_ajax='1' taxonomies='products_cat:17' ]

If i do that the products don't display properly.

The products are already displaying how they should, but the filter is not displaying properly.

Hello

Ok! This code only works with shortcode - [woof_products]

12