Jump to content

How to update physical stock quantity programmatically in Prestashop 1.7.7.8 ?


Tone87

Recommended Posts

Hi , i have a script who update quantity of product programmatically

i use the function:

StockAvailable::setQuantity((int)$Prodotto->id, 0, (int)$As400Prodotto->quantita, Context::getContext()->shop->id);

but whit this function i reset all reserved quantity.

is there a way to update the quantity physically in warehouse and not reset the reserved quantity?

 

Thanks in advance

 

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

  • Tone87 changed the title to How to update physical stock quantity programmatically in Prestashop 1.7.7.8 ?

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...