Skip Navigation

[Closed] woocommerce stock level innacurate when toolset blocks plugin enabled

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 7.09 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 3 voices.

Last updated by Nigel 3 months ago.

Assisted by: Nigel.

Author
Posts
#2711907

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.

Please can you let me know how to resolve this?

#2712735

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2715708

I am trying to replicate it on your site I haven't quit efinished setting it up on your test site I will get it finished within there today.

Alternatively I can give you access to my site?

#2716646

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2723123

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Minesh is on vacation, so let me take over here.

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?

#2724778

Hi Nigel,

Yes no problem.

Do you need any further access to do this?

#2725612

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

No, I have what I need, thanks, I just wanted to confirm it is okay.

I've downloaded a copy, I'll set that up locally and get back to you with my findings.

#2725688

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

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.