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 by stock doesn't work for non logged in visitors

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.

There's a strange problem. Everything works fine if I'm logged in https://myrth.nl/product-category/schoenen/?swoof=1&onsales=salesonly&really_curr_tax=173-product_cat

I can select MAAT (size) 36 and it shows the products with 36 in stock only https://prnt.sc/26aj7yu

Only the attribute MAAT (size) is used for variations.

However, when I'm checking as visitor the product count is wrong and it doesn't filter products in stock. Here's a comparison https://prnt.sc/26aja7a

Using the direct link the same problem happens https://myrth.nl/product-category/schoenen/?swoof=1&onsales=salesonly&stock=instock&pa_maat=36&really_curr_tax=173-product_cat

Dynamic Recount is enabled https://prnt.sc/26ar6pl

Cache is disabled https://prnt.sc/26area9

No cache plugin is installed on the site. mod_pagespeed is active but it can't be disabled. It's required by the server provider.

It looks like a problem with sessions. Do you have any advise?

Hello

It looks like a problem with sessions.  -  my plugin does not use sessions

if the result is different for the registered user and the guest - very similar to a cache problem. you should disable this third-party cache and do tests

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

 

Hi again,

mod_pagespeed was finally disabled and no other cache plugin is used.

All installed plugins have been deactivated to test without success.

When logged-in the filter is correctly displaying in stock variants only. But it doesn't work for guest visitors.

As previously mentioned login and check this URL https://myrth.nl/product-category/schoenen/?swoof=1&onsales=salesonly&really_curr_tax=173-product_cat

I can select MAAT (size) 36 and it shows the products with 36 in stock only https://prnt.sc/26aj7yu

Only the attribute MAAT (size) is used for variations.

However, if you check as guest it does not filter the size 36 in stock.

That's the problem, the filter count and the results are not the same logged-in vs guest.

Hope you can help us.

hello

Please  check  your  wp-admin access - https://c2n.me/4eR7VIN.png and  add FTP access - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130637.png

Hi again,

I updated the login details. The WP admin account is correct now.

The FTP access was also added to the private data.

Thanks

Hello

Please do a test

Hi Pablo,

It's working fine now. Many thanks!

Can you tell me what did you change? Is it in the plugin settings or files?

If any file was changed will it be included on the next plugin releases?

hello

in  file - wp-content\plugins\woocommerce-products-filter\ext\by_instock\index.php - I changed  code - https://c2n.me/4eWznGo.png

This will be included in the next version.

Hi Pablo,

I just checked and it's working fine.

Many thanks for your help.

Welcome;)