Jump to content

How to Export all products... not only the products viewed in page


Recommended Posts

Hi forum,

 

In Prestashop BO 1.5.4 (the section is Catalog -> products), there's a button to export the products on excel; the export creates a file with only the items visible on the page (example if i have a filter that show only 10 products the export is only of this 10 products)

Does anyone know how to modify the code to export ever all products in the catalog ?

I've try to modify the file AdminController.php (located in classe/controller/) by deleting the limit of the query, row 2196 (($use_limit === true) ? ' LIMIT '.(int)$start.','.(int)$limit : '') ;)

So the csv is created with all products, but i lose the pagination of products (all products are viewed in the same page) so i think there's a better way to do that.

Please help :wacko:

 

 

Thanks

 

 

SOLVED

 

Solved by my own:

in the same file AdminController.php

 

row 574:

 

$this->getList($this->context->language->id);

 

change in:

 

$this->getList($this->context->language->id,null,null,0,false);

Edited by PGallerani (see edit history)
  • Like 3
Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...
  • 8 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...