Answer the question
In order to leave comments, you need to log in
How to add a product in opencart using PHP?
Actually, you need a script, or help in understanding how to set up a regular addProduct($data) function from admin\model\catalog\product.php of the ModelCatalogProduct class.
I'm not very good with OOP, I can't figure out how to make this function work in my script.
Answer the question
In order to leave comments, you need to log in
$this->model->load('catalog/product);
$this->model_catalog_product->addProduct($data);
where $data is an array with all product data
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question