BlackEngine Posted yesterday at 05:51 PM Share Posted yesterday at 05:51 PM (edited) 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. Edited yesterday at 06:46 PM by BlackEngine (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted yesterday at 05:53 PM Share Posted yesterday at 05:53 PM 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. Link to comment Share on other sites More sharing options...
BlackEngine Posted yesterday at 06:09 PM Author Share Posted yesterday at 06:09 PM 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 More sharing options...
Daresh Posted yesterday at 06:10 PM Share Posted yesterday at 06:10 PM Please read carefully Table: ps_stock_available Entry with is_product_attribute = 0 - total quantity row Column: quantity Link to comment Share on other sites More sharing options...
BlackEngine Posted yesterday at 06:19 PM Author Share Posted yesterday at 06:19 PM (edited) 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? Edited yesterday at 06:33 PM by BlackEngine (see edit history) Link to comment Share on other sites More sharing options...
BlackEngine Posted yesterday at 06:34 PM Author Share Posted yesterday at 06:34 PM 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? Link to comment Share on other sites More sharing options...
Daresh Posted yesterday at 06:37 PM Share Posted yesterday at 06:37 PM Maybe there are leftovers after deleting / regenerating combinations? You should delete all entries that have id_product_attribute > 0 and do not exist in the ps_product_attribute table. Link to comment Share on other sites More sharing options...
BlackEngine Posted yesterday at 06:46 PM Author Share Posted yesterday at 06:46 PM Ok, solved. After deleting all entries with unmatched id_product_attribute it got synced. Thank you! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now