I don’t know how to work by the nb_products () function of the warehouse.class.php in product / stock / class to get the stock of products by warehouse, please you can help me Thank you.
hello
the class file is entrepot.class.php.
the nb_products() function returns number of all item in the instanciated warehouse.
Does it answer your question ?
Hi,
A little serach ?
https://doxygen.dolibarr.org/11.0/db/de4/class_entrepot.html#a44e7ad78f38d618399fe033402bc6910
like any class function ? i do not understand the question.
@altatof so i want to get the quantity of product by warehouse to my website, so i know for i should cal nb_products() from http://##Url###/product/stock/class/entrepot.class.php/nb_products()
but for that i should make an requeste http ,but i dont know how to make this request .
Ok,
So you don’t know PHP.
First learn PHP before doing anything.
Either you include the class and call to the nb_products() in your script
Or you use REST API to make a http request
@ksar thank you but I know PHP .
that my dlolibarr:
my probleme is whene i’v exicute the request not function lik.
or like
And then you do stupid thing like calling the class.php with http ???
@ksar hhh i know php but beginner.
so tell me a way to use that .