angel_aparicio Posted February 7, 2018 Share Posted February 7, 2018 Hi, I'm trying to develop a recycle bin of Products in Prestashop (1.6) I have override the delete function in Product Class with this code: $sql = 'UPDATE `'._DB_PREFIX_.'product` SET `in_recycle_bin` = true WHERE id_product = '.$this->id; Db::getInstance(_PS_USE_SQL_SLAVE_)->execute($sql); return true; Now I want to override the code that get the list of products in the admin panel. I'm tried to override the function "getProducts" in the Product class, but with no effects. What I need to change? Where is the code that get the products in the admin panel. Thanks Link to comment Share on other sites More sharing options...
bellini13 Posted February 21, 2018 Share Posted February 21, 2018 I would probably start here \controllers\admin\AdminOrdersController.php Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now