Jump to content

Developing a recycle bin for Prestashop


angel_aparicio

Recommended Posts

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

  • 2 weeks later...

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