Jump to content

How to update physical stock quantity programmatically in Prestashop 1.7.7.8 ?


Tone87
 Share

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More