Jump to content

[Solved] how to delete/reset Stock Movements


Recommended Posts

  • 5 weeks later...

Hi
I am no expert, but here is a trick I learned when searching for a way to delete test orders, I hope it works with stock movements as well.

Go to your admin>tabs folder, then find and edit the file AdminStockMvt.php

Find:

class AdminStockMvt extends AdminTab
{
   public function __construct()
   {
        $this->table = 'stock_mvt';
        $this->className = 'StockMvt';
        $this->edit = false;
       $this->delete = false;
       $this->view = true;



then change

$this->delete =false;

into

$this->delete = true;



Now the delete button appears on the BO.

Hope it doesn't bring any bugs, like I said, i am no expert.

  • Like 1
Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...

Hi

I am no expert, but here is a trick I learned when searching for a way to delete test orders, I hope it works with stock movements as well.

 

Go to your admin>tabs folder, then find and edit the file AdminStockMvt.php

 

Find:

class AdminStockMvt extends AdminTab{    public function __construct()    {         $this->table = 'stock_mvt';         $this->className = 'StockMvt';         $this->edit = false;        $this->delete = false;        $this->view = true;

then change

$this->delete =false;
into
$this->delete = true;

Now the delete button appears on the BO.

 

Hope it doesn't bring any bugs, like I said, i am no expert.

 

 

Where can i find this admin -> tabsfolder ?

Link to comment
Share on other sites

  • 7 months later...

Hi Guys

 

I am trying to get rid of our test data but for some reason the stock movement is still in the admin section?
I have used the phpmyadmin method to clear everything.

 

For example:

TRUNCATE TABLE ps_product;
TRUNCATE TABLE ps_product_attachment;
TRUNCATE TABLE ps_product_country_tax;

Please can someone show me the right way in doing this I am using PS v1.6, thanks

Link to comment
Share on other sites

×
×
  • Create New...