PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

Photo

[Solved] delete example data


  • Please log in to reply
9 replies to this topic
mmreed

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 05 July 2011 - 07:00 PM

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

mmreed

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 06 July 2011 - 04:45 PM

any way to delete the order?

Cosmi

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts

Posted 06 July 2011 - 08:31 PM

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

judian

    PrestaShop Newbie

  • Members
  • Pip
  • 9 posts

Posted 11 July 2011 - 11:05 PM

thanks ^^

mmreed

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 posts

Posted 11 July 2011 - 11:54 PM

is there a document or guide that covers these types of tweaks?

Cosmi

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts

Posted 12 July 2011 - 08:30 AM

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.

BaDTaG

    PrestaShop Newbie

  • Members
  • Pip
  • 12 posts

Posted 12 July 2011 - 09:08 PM

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 :-)

kaelta

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 July 2011 - 12:52 AM

It was so easy! Thank you so much!

It worked on 1.4.3

renamed_account_99341

    PrestaShop Apprentice

  • Members
  • PipPip
  • 154 posts

Posted 18 July 2011 - 03:06 AM

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.
Love the Shop:

Love Station Lingerie

samuelprabhu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 36 posts

Posted 09 January 2014 - 08:39 AM

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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users