Jump to content
  • 0
mmreed

[Solved] delete example data

Question

How can I delete the order that is part of the sample data?

I see how to delete all the products, categories, and the john doe customer - but the order seems to not be able to be deleted, only cancelled... which if I delete the products, customer ect, seems like it will be a problem record

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Yes.

Go to admin folder>tab>AdminOrders.php
Find

$this->colorOnBackground = true;


And add on the next line

$this->delete = true;



I hope it helps.

EDIT: You can then delete any order in Admin > Orders

Share this post


Link to post
Share on other sites
  • 0

I don't think so, but if you need something, search on Google, you should find solutions. (works for me).
Anyway, if there is a document for this, I'll need it.

Share this post


Link to post
Share on other sites
  • 0
Yes.

Go to admin folder>tab>AdminOrders.php
Find
$this->colorOnBackground = true;


And add on the next line

$this->delete = true;



I hope it helps.

EDIT: You can then delete any order in Admin > Orders






Thanks this worked like a charm :-)

Share this post


Link to post
Share on other sites
  • 0
Yes.

Go to admin folder>tab>AdminOrders.php
Find
$this->colorOnBackground = true;


And add on the next line

$this->delete = true;



I hope it helps.

EDIT: You can then delete any order in Admin > Orders



this will be soft delet only. the records will be still in database.

Share this post


Link to post
Share on other sites
  • 0

Yes.

 

Go to admin folder>tab>AdminOrders.php

Find

$this->colorOnBackground = true;
And add on the next line

$this->delete = true;

I hope it helps.

 

EDIT: You can then delete any order in Admin > Orders

 

what have to do to delete sample orders, customers, products and categories in PrestaShop™ 1.5.4.1

Share this post


Link to post
Share on other sites

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

×