Prestashop: Error Stock in New Products

Created on 21 May 2019  路  22Comments  路  Source: PrestaShop/PrestaShop

I am loading the stock as the images show.
I attach the images step by step.
1-update stock in 4 new products
2-click on the "Apply new Quantity" button
3-The stock was updated
4-Re-enter Stock Management
5-There is only one product with stock!

stock
sotck3
stock2
stock1

Deshabilitado
Stock

Thanks, and help me, please.

Additionnal information
PrestaShop version: 1.7.2.4
PHP version: Versi贸n del software del servidor: Apache
Versi贸n PHP: 7.1.22
L铆mite de memoria: 512M
Tiempo m谩x. de ejecuci贸n: 30
Tama帽o m谩x. para la subida de archivos: 128M

1.7.2.4 BO Bug No change required Stocks

All 22 comments

Hi @sebaborda04,

Thanks for your report.
I did not manage to reproduce the issue with PS1.7..6.0beta1.
We need to retrieve the PHP error log and the debug mode report in order to find out what's wrong.
Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/

Thanks!

Do you mean this data?
log
log1
log3
Sin t铆tulo

@sebaborda04, when debugging mode enabled in your case => there is no exception.
You can use DevTools, so:

  1. enable debug mode
  2. go to the stocks page
  3. open up developer tools
  4. go to Network tab
  5. Click on the "Apply new Quantity" button
  6. wait for an error, you should see red request information in Network tab
  7. click on it, you should see the error message in "Response" or "Preview" tab

Thanks to check & feedback.

Error.
error
Error1

@sebaborda04, you have some duplicated entry in the table ps_stock_avalible for the product which has id_product = 34.
Did you edit your database manually?
Thanks!

I'm going to check it and I'll tell you ...
Thanks

@sebaborda04, thanks!
Waiting for your feedback

I do not have any product_id = 34 in the table ps_stock_avalible. The last number is the product_id = 31 and has id_stock_available = 0

@sebaborda04, this error is displayed in your case
image
Thanks!

IMG-1579

Product_ID34
when I want to modify the product_id 34, it shows this error.

@sebaborda04, could you please run the command SQL in your Database & feedback.

Select * from ps_stock_available where id_product = 34;

Thanks!

now I see it
IMG-1580

@sebaborda04, the id_stock_available for this product which has id_product = 34 is incorrect.
id_stock_available = 0 where id_product = 34 => incorrect => you need to edit it.
Thanks!

Thank you very much for the help.
What happens if that table is empty? I do not know why he kept that field at 0.

@sebaborda04, in my case, it is OK.
I tried with steps that you provided but I did not manage to reproduce the issue.
Thanks!

If I empty that table, I only lose the stock or can I lose something else?

@sebaborda04, if you empty this table, you will lose the quantity of your products.
Make sure to have a backup of your database before deleting anything from the database.
Thanks!

Thank you, you are very kind.

@sebaborda04, you are welcome!
Can I close the issue?
Thanks!

yes, Thanks

@sebaborda04, Thanks!

Feel free to open a new one when needed.
THanks!

Was this page helpful?
0 / 5 - 0 ratings