[Solved] delete example data - Configuring & using PrestaShop - PrestaShop

Jump to content

Photo

[Solved] delete example data

#1

Posted 05 July 2011 - 07:00 PM

mmreed

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts
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

#2

Posted 06 July 2011 - 04:45 PM

mmreed

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts
any way to delete the order?

#3

Posted 06 July 2011 - 08:31 PM

Cosmi

    PrestaShop Newbie

  • Members
  • Pip
  • 18 Active Posts
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

#4

Posted 11 July 2011 - 11:05 PM

judian

    PrestaShop Newbie

  • Members
  • Pip
  • 9 Active Posts
thanks ^^

#5

Posted 11 July 2011 - 11:54 PM

mmreed

    PrestaShop Apprentice

  • Members
  • PipPip
  • 34 Active Posts
is there a document or guide that covers these types of tweaks?

#6

Posted 12 July 2011 - 08:30 AM

Cosmi

    PrestaShop Newbie

  • Members
  • Pip
  • 18 Active Posts
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.

#7

Posted 12 July 2011 - 09:08 PM

BaDTaG

    PrestaShop Newbie

  • Members
  • Pip
  • 12 Active Posts

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

#8

Posted 17 July 2011 - 12:52 AM

kaelta

    PrestaShop Newbie

  • Members
  • Pip
  • 3 Active Posts
It was so easy! Thank you so much!

It worked on 1.4.3

#9

Posted 18 July 2011 - 03:06 AM

renamed_account_99341

    PrestaShop Apprentice

  • Members
  • PipPip
  • 154 Active Posts

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

#10

Posted 09 January 2014 - 08:39 AM

samuelprabhu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 38 Active Posts

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

Cookies help us deliver our services. By using our services, you agree to use our cookies.     Learn more