Hi There i have a weird anomoly that is occuring on my site. I have ran various tests including disabling plugins etc.
The issue seems to ONLY occur when the toolset woocommerce blocks plugin is activated, the issue is as below:
Product A has a stock quantity of 100, and displays this in the backend and frontend fine.
If I add 40 to the basket, and pay for it, it goes through. This should leave 60 in stock.
And 60 is showing in the front end and backend. however If I then place an order for 30, it brings up a message on the cart page, saying there is not enough in stock (the standard woocommerce message). However If I then amend the order for 10, it goes through.
From my advanced testing I've carried out, somehow the stock quantity that is being ordered, is actually being doubled somewhere in the database, even though the stock levels being displayed is correct in the backend.
I have tried enabling, disabling using a standard wordpress blocks theme etc, and the same issues exist ONLY if the toolset woocommerce blocks plugin is enabled.
Hello. Thank you for contacting the Toolset support.
That is strange.
Here is a sandbox site and you can auto-login to it using the following link:
- hidden link
Can you please setup a example and send me exact steps in order to see the issue. You can install all required plugins like WooCommrece as well as any other.
Please send me the problem URL and steps to follow to see the issue.
Well - it will be great if you can setup on the sandbox site I shared and share all required details in order to see the issue. This will help us to eliminate any possible conflict with third-party plugin or theme you use.
I have set the next reply to private which means only you and I have access to it.
I logged in to your site and I can see the issue with the Toolset test product.
I did some preliminary testing, including checking the issue on a minimal install with non-Toolset and WooCommerce plugins disabled, and checking directly the contents of the database relating to stock levels.
I couldn't determine the problem on that basis, I need to look into this more deeply.
Is it okay if I take a copy of the site to install locally and do some testing there?
During testing I saw that the problem only occurs with your custom theme. Switching to the 2024 theme the custom theme is based upon, the issue disappears.
We can't debug issues relating to custom code or themes, I'm afraid, but that appears to be where the problem originates.
I suggest you review the code used in that custom theme to try to isolate the source of the problem. If you locate the problem to a specific bit of code but you are not sure how to fix it, let me know and I'll see if I can help.
Note, I left the 2024 theme active on your staging site.
The topic ‘[Closed] woocommerce stock level innacurate when toolset blocks plugin enabled’ is closed to new replies.