mmreed Posted July 5, 2011 Share Posted July 5, 2011 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 Link to comment Share on other sites More sharing options...
mmreed Posted July 6, 2011 Author Share Posted July 6, 2011 any way to delete the order? Link to comment Share on other sites More sharing options...
Cosmi Posted July 6, 2011 Share Posted July 6, 2011 Yes.Go to admin folder>tab>AdminOrders.phpFind $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 Link to comment Share on other sites More sharing options...
judian Posted July 11, 2011 Share Posted July 11, 2011 thanks ^^ Link to comment Share on other sites More sharing options...
mmreed Posted July 11, 2011 Author Share Posted July 11, 2011 is there a document or guide that covers these types of tweaks? Link to comment Share on other sites More sharing options...
Cosmi Posted July 12, 2011 Share Posted July 12, 2011 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. Link to comment Share on other sites More sharing options...
BaDTaG Posted July 12, 2011 Share Posted July 12, 2011 Yes.Go to admin folder>tab>AdminOrders.phpFind$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 :-) Link to comment Share on other sites More sharing options...
kaelta Posted July 16, 2011 Share Posted July 16, 2011 It was so easy! Thank you so much!It worked on 1.4.3 Link to comment Share on other sites More sharing options...
LovePrestashop Posted July 18, 2011 Share Posted July 18, 2011 Yes.Go to admin folder>tab>AdminOrders.phpFind$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. Link to comment Share on other sites More sharing options...
samuelprabhu Posted January 9, 2014 Share Posted January 9, 2014 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 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