%name Borrar pedidos en Prestashop 1.6

To delete orders in Prestashop 1.6 we have made during our tests we only need to modify the controller file that performs all operations with the orders. The file to modify is:

controllersadminAdminOrdersController.php

In this file we need to add the following line inside the class constructor:

$ This-> addRowAction ( 'delete');

being as follows:


public function __construct()
{
$this->bootstrap = true;
$this->table = 'order';
$this->className = 'Order';
$this->lang = false;
$this->addRowAction('view');
$this->addRowAction('delete');
$this->explicitSelect = true;
$this->allow_export = true;
$this->deleted = false;

Once the change is made, we can remove the products one to one as we can see in the picture:

%name Borrar pedidos en Prestashop 1.6

Delete orders in Prestashop

 

This method works both Prestashop Prestashop 1.5 and 1.6.

Advertisements

Use of cookies

This site uses cookies for you to have the best user experience. If you continue to browse you are giving your consent to the acceptance of the above cookies and acceptance of our cookies policy, Click the link for more information.

OK
Notice of cookies

Pin it on Pinterest

Share This

Share

Share this with your friends!

Veo que te gusta mi Blog...

Si te ha parecido interesante este artículo, no esperes a suscribirte a mi blog. Cuando vuelva a escribir otro seguro que te interesará y no desearás no haberte enterado. Puedes suscribirte con total tranquilidad de que no recibirás spam. Lo odio igual que tu. Solo quiero que aprendas cosas nuevas y te sientas agusto con mis artículos. ¡Gracias!

Thank you for subscribing!