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 should show only current category and its children, but it's not

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

Hi,

initial landing on category page shows filter correctly.

But after filtering it adds new categories which are neither current or its children.

This is not the desired behavior, why is this happening?

I understand that products do belong to both of these categories, so that is correct from that side, but those categories should not be seen on current category page.

 

Hello

Please  drop me  exact  link to the  issue

Please note this is a development website. You will find link and access credentials in private data for this topic.

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Update  the  plugin  to  latest  version - https://products-filter.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

try  to check  option - Advanced->Options->https://share.pluginus.net/image/i20231123132500.png

try  to check  option - Advanced->Options->https://share.pluginus.net/image/i20231123132500.png

This is already checked.

Please paste your license key here

Waiting on my employer to pass it over, once I get it I'll reply here.

 

License key entered.

Hello

Ok!  Please disable  ajax  mode and  do a test

You can drop  me  wp-admin+ftp access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png -  I will check it

WP admin added.
Unfortunately, I am not able to give you ftp, please use Wordpress editor to edit files.

Hello

Ok! It looks like you are using a custom theme and have customized the plugin code

This looks like a Routing Problem.  You can  disable this  option - https://share.pluginus.net/image/i20231127132417.png

OR  try   another  theme

 

Yes, I am the creator of the theme which is based on Understrap, basically Underscores (by the same people that build Wordpress) with  integrated Bootstrap.

How is the theme interfering with routing, what can I do to make it compatible with your plugin?

Another question - we have a product category which shows only products on sale (Monthly specials).

It has been done by using:

add_action( 'woocommerce_product_query', 'show_monthly_specials' );

function show_monthly_specials( $q ) {
if ("monthly-specials" !== $q->get( 'product_cat' ) ) return;
$q->set( 'post_type', 'product' );
$q->set( 'product_cat', null );
$product_ids_on_sale = wc_get_product_ids_on_sale() ? wc_get_product_ids_on_sale() : array();
$q->set( 'post__in', $product_ids_on_sale );
}

How can I make your filter work correctly on this page?

Hello

How is the theme interfering with routing -  Unfortunately, I don’t know what functionality you added to the theme. maybe you change wp_query, redefine archive pages, etc. an  example  try  this  link -  https://your_site.com/shop

To  show only  on sale products - https://products-filter.com/manipulate-search-data-options     - in  your case - $request['onsales'] = 'salesonly';

Then you don’t have to use your code, this request will be added automatically to the filter and products

We are redirecting shop page to home, but why should that interfere on product category pages?

function shop_url_redirect()
{
    if (is_shop()) {
        wp_redirect(home_url());
        exit();
    }
}
add_action('template_redirect', 'shop_url_redirect');

I have noticed that when I copy/paste search link, it acts like I'm on the shop page and not on the category page. That's why it's redirecting to home. Why is that??

When I am on the category page, and make filter selection, then copy that link and paste it in other browser, it does not take me to category page but to shop page and filters are messed up.

Example, filtering on category page created this link:

http://mywebsite.com/product-category/wine/?woof=1&product_cat=sparkling&paged=1&min_price=40&max_price=115&really_curr_tax=15-product_cat

Pasting this link in another browser (or clicking refresh) does not keep me on category page like it should (http://mywebsite.com/product-category/wine/) but loads Shop page while keeping this url structure. Why it behaves like this?

Hello

yes! This is a shop template, not a page.

https://share.pluginus.net/image/i20231127132417.png - This function disables the use of the shop template for the search result

But it seems the redirect still happens during filter counting

 

Hello,

I still have issues with URL parsing, when url contains product_cat it does not show correct page.

For example, when I'm on parent category page and make some filtering by category
http://mywebsite.com/product-category/wine/?woof=1&product_cat=sparkling&paged=1&really_curr_tax=15-product_cat

When I copy that link, or reload the page, I would expect to stay on the same page, which is http://mywebsite.com/product-category/wine/
Instead, its child 'sparkling' is shown as it exists in query parameters. It's like 'really_curr_tax' is not relevant at all.

How to fix this?

Hello

Do you have a server side cache? I change the code in the JS files, but the old version of the files is connected to the frontend

Yes, it is now turned off.

I played with settings, and it works fine when SEO is enabled (copy/paste link works as expected), but filter is not refreshing correctly after AJAX. JS rewrites the filter with all categories, which is wrong.

Hello

Please do a  test

Looks like it's behaving well now!

Would you tell me what's changed, because I need to update the main website? Or will you include this fix in your plugin update?

 

12