moonwhale
Forum Replies Created
-
Okay. Thanks for the directions and for your time.
There’s lots of info you’ve covered in the messages. Can you lay out exactly what the problems are and we can focus on them individually?
Sorry.
Actually, I believe I solved the two main issues by disabling conflicting plugins. Now I just need to know which solution to expire full carts would work best with your plugin.
If you can give me some exact steps to reproduce the issue I should be able to solve it, but I haven’t seen any problems so far.
I’m also using the Pro version, but I’m not sure if that can have a real impact. I also have both options enabled in the Performance tab. But I believe it will be hard to create a similar scenario, as the site I’m working on has a lot of clients purchasing things at the same time.
Another thing: I have Redis enabled on the server. And the site has a Cache System, but I already excluded the main WooCommerce Pages and Products, just in case.
Besides all of that, I don’t think there is anything more specific to report.
I’ll see if I can debug any issues. Can you give me some steps to duplicate one of your products that is setup with that variation swatches plugin?
Usually, the Variable Product only have one Attribute, like “Color”, but most have almost 100 variations. With the Swatches plugin installed, the Variation Image is automatically used as thumbnail.
When you want a 24 hour expiration, is that 24 hours from the first item being added, at midnight local time, or something else?
The ideal is for the timer to start when the first product is added and restart when the cart is empty. Once the 24 hours end, the whole cart is excluded.
So, after a lot of investigation, I believe I found the problem.
Seems like the plugin “Variation Swatches for WooCommerce” is not correctly updated when only the Virtual Stock is reduced, that’s why some variations were available to purchase despite not being available on the Virtual Stock.
That’s the free version: https://wordpress.org/plugins/woo-variation-swatches/
Just in case you want to take a look, maybe make both compatible.
One last question: I need to make the whole cart expire in 24 hours. What is the easiest way to do that without having another conflict with your plugin?
Thanks!
And how the configuration “Ignore Order Status” works exactly?
I’m still investigating the issue. Just two questions:
1) Your plugin restores the stock after an order is canceled?
2) Or do you know, by any chance, if they added this feature on any of the latest WooCommerce updates?If you add that snippet it should be disabled regardless of the setting.
Okay, in that case, I’ll keep only the snippet for now and see what will happen.
Thanks so far.
If you have it set to 0 it should be ignore but if it’s blank it might default to 60 minutes.
So I should set to 0 instead of letting it blank? Because it says to just keep it blank to disabled it, so I thought that was the right way.
And I keep the snippet you shared and the 0 in the settings at the same time?
I can’t be sure it will help at all, I’ve not been able to reproduce a failure instance related to that functionality but there could be some interaction with another plugin causing a problem.
I understand, but I’ll give it a try. Just one thing: this is similar to the “Hold Stock” in the settings? Because I already have that one disabled (blank).
You could try adding the following to your functions.php (or elsewhere):
add_filter( 'woocommerce_hold_stock_for_checkout', '__return_false' );Okay, I added this snippet to the site. I’ll keep monitoring and I’ll let you know if there is any change.
Again, thanks for the plugin and the help.
Honestly, the easiest way would be to start from the bare minimum and just start enabling other plugins to see if you can reproduce a failure. If you only have a production site and not a development/staging site that might be tough to do.
I can create a stagging site, but the problem is to have the same volume of access and interactions from the original site, in order to properly compare.
Have you tried clearing all the existing carts/sessions via WooCommerce? Maybe items were added to carts without this plugin enabled and it’s causing the count to be off?
I’m gonna give it a try later when there are no customers online, maybe it can solve.
Thanks for all the help so far. 🙂
What type of products are you using (simple, variable, something else)?
Both Simple and Variable, but most are Variable Products with A LOT of Variations (some have almost 100 variations). The issue occurs in both cases, I’m not sure if the issue occurs more with one type than the other.
Are you getting any errors in the logs?
Can’t find anything specific about the plugin.
I haven’t been able to reproduce these issues on a test setup. Your theme and a bunch of those plugins aren’t freely available so I won’t be able to duplicate your exact setup in a test environment.
Based on the plugin list I shared, do you have any idea which ones I should check or maybe disable? Plugins that can affect your plugin?
And what about the latest WC version? Anything in this latest updated (or any updated before) that can affect your plugin? Because, as I said, everything was fine until I updated WC. :S