Jump to content

[SOLVED] What db table stores the total product stock quantity?


BlackEngine

Recommended Posts

Hi!

I have a misalignment in the last item (qty: 36), it happents after deleting all of its variations and recreating them. The real stock is correct, but the total quantities in stock shown in the backoffice does not correspond, so I assume that something happent in-between when deleting, creating and saving changes.

I would like to locate the right table so I can try fixing it with the actual stock quantity.

Does someone know where it's stored in the database?

Thank you.

894723859235.JPG

Edited by BlackEngine (see edit history)
Link to comment
Share on other sites

15 minutes ago, Daresh said:

It is the ps_stock_available table in the database. The entry with id_product_attribute = 0 corresponds with the sum stock of all the combinations.

Thank you for your answer, but it does not store the total stock quantity. Also, its name tells you what it stores: ID of the product attribute.

Link to comment
Share on other sites

23 minutes ago, Daresh said:

Please read carefully ;)

Table: ps_stock_available

Entry with is_product_attribute = 0 - total quantity row

Column: quantity

Ok, I got what it's happening, I think. There are other entries for the same product ID, and the total of them is: 36.

Do you think that deleting these, minus the last 2 ones should fix it? And also ,why could that happend?

346456775467567.jpg

Link to comment
Share on other sites

  • BlackEngine changed the title to [SOLVED] What db table stores the total product stock quantity?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...