Presta Portal
[TIP] Delete Individual Orders - Printable Version

+- Presta Portal (http://prestaportal.com)
+-- Forum: PrestaShop Resources (/forum-5.html)
+--- Forum: Tutorials & Tips (/forum-8.html)
+--- Thread: [TIP] Delete Individual Orders (/thread-436.html)


[TIP] Delete Individual Orders - spott - 07-10-2009 03:30 PM

Some times users make some wrong orders or You have some test orders and You want them completely remove from back-end. So here is simple solution, how You can enable this feature, so that you have.

Usually Your orders Tab in Backoffice looks like this:
[attachment=513]
Now
Open tabs/AdminOrders.php in your renamed admin (when Your admin directory is backoffice, then this file is located at backoffice/tabs/AdminOrders.php) directory, then find this line (it should be line 23):
PHP Code:
$this->colorOnBackground true
Then copy the below line on a new line after it:
PHP Code:
$this->delete true
You can then go to the Order tab as usual and a delete button should appear for each order.

Look this picture how its looks:[attachment=514]


RE: [TIP] Delete Individual Orders - yro - 01-21-2010 06:01 AM

Is it applicapable to Merchantise Returns (RMAs) also?


RE: [TIP] Delete Individual Orders - spott - 01-22-2010 04:48 AM

You can try


RE: [TIP] Delete Individual Orders - yro - 01-22-2010 05:20 AM

I tried but unfortunately i can't find right place for this code. Slips are displayed differently.


RE: [TIP] Delete Individual Orders - spott - 01-23-2010 06:49 PM

I checked AdminReturn.php file and beginning is the same. I don't have right now live testing server, so I can't test it.