PrestaShop Forum

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

PrestaShop Forum

Jump to content

 

[Solved] How do i remove the defualt invoice that is set up in prestashop?

6 replies to this topic
#1
David @ gfe.

    PrestaShop Apprentice

  • Members
  • PipPip
  • 370 posts
On the default install an invoice was generated for about 600.00. I have cancelled it, but how can i get rid of it so that it doesn't impact total sales on real orders?

thanks

David
Games from Everywhere

Best Board Games | Wooden Chess Sets

#2
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
There are a couple of ways you can do this. This post might help you.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#3
David @ gfe.

    PrestaShop Apprentice

  • Members
  • PipPip
  • 370 posts
Unfortunately, that post made no sense to me. I have no idea how to implement whatever it is he is describing.

David
Games from Everywhere

Best Board Games | Wooden Chess Sets

#4
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
The first way you could do it is to open tabs/AdminOrders.php in your renamed admin directory, then find this line (it should be line 23):

$this->colorOnBackground = true;


Then copy the below line on a new line after it:

$this->delete = true;


You can then go to the Order tab as usual and a delete button should appear for each order.

The second way you could do it is to open your database using phpMyAdmin and remove all rows in ps_order_credit_data, ps_orders, ps_order_detail, ps_order_discount and ps_order_history with the id_order of the order you want to delete.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#5
David @ gfe.

    PrestaShop Apprentice

  • Members
  • PipPip
  • 370 posts
Rippa! Beauty! That worked. Thank you very much, Rocky.
Games from Everywhere

Best Board Games | Wooden Chess Sets

#6
Amish Gramish

    PrestaShop Apprentice

  • Members
  • PipPip
  • 59 posts
Bump!

Thanks, but I just have one question:
Is there a way to delete the data that says the product has already sold a copy?
(I was testing out Google Checkout and PayPal, but now the GC order still shows up as sold, and it shows up as being a top seller, but the PP order just shows up as being sold. Is there any way to do away with this?)
PSN ID: Amish_Gramish
Record Label and Music Webstore (Coming Soon)
http://www.nologogroup.com

#7
Balefire

    PrestaShop Newbie

  • Members
  • Pip
  • 13 posts

From 1247182472:

Bump!

Thanks, but I just have one question:
Is there a way to delete the data that says the product has already sold a copy?
(I was testing out Google Checkout and PayPal, but now the GC order still shows up as sold, and it shows up as being a top seller, but the PP order just shows up as being sold. Is there any way to do away with this?)


I wanted the same thing. Read through the blockbestsellers module, figured out it is stored in product_sale table.

Back up your database before doing this!
Use phpmyadmin (or whichever tool your hosts provides) and empty the product_sale table. No more top sellers!
Back up your database before doing this!

Hope that was enough warning! Although I haven't noticed any side effects (yet), there may be some further down the road.

Still looking for the perfect, clean database for a fresh installation method. Something always gets left behind.