We are having problems with the stock information of products to be correctly visible on archive pages. After the variation stock is updated and even after we clear WP Rocket cache the product variation/variations are still show as out of stock on archive pages…
However the variations are available to be added to cart on product page, just as they should be also on archive pages.
Thank you for reaching out to us. Please kindly do a plugin compatibility check by doing these steps to identify the error :
=> Deactivate all of your additional plugins except WooCommerce and WooCommerce Variation Swatches Plugin.
=> See if the problem persists. If the issue is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.
If the plugin conflict check doesn’t help, please record me reproducing your issue using a tool like this: https://www.useloom.com
It helps me to figure out the issue quickly.
And don’t forget to add your site login details in the site login details area. I’ll check what’s happening there.
You can add new users by going to Users > Add New set the user and password for us, set the role to admin, and set the info here.
Add your site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7
Hope to hear from you soon!
When I disabled WP Rocket and cleared cache I was able to get it working.
I have added these to exclusion list: https://getwooplugins.com/ticket/134654/
And I’ve enabled archive pages variation preloader: https://paste.pics/MT2MO
I recorded a video of the problem. It now seems to be that on the first page on every archive page the swatches aren’t updated. But on the second page and pages after that the swatches do update as they should…
Because of this the first page shows product sizes as available that in fact are out of stock.
Video can be seen on Dropbox: https://www.dropbox.com/scl/fi/7kgoukvg13kzzbhb9vrji/Screen-Recording-2023-10-27-at-13.04.06.mov?rlkey=v6q9dgexte2clr72zj8vam5qx&dl=0
Thanks for the screencast. Please make sure, your first page is loaded by AJAX or not.
Hope to hear from you soon.