Jump to content

Regenerate Best Sellers/Top Sellers


Design2Please

Recommended Posts

Hi,

 

I am currently building a site and I have imported all the orders from the old site into the new one, however when I navigate to the best sellers page https://www.sociablecook.co.uk/best-sellers it says that there are no top sellers at the moment.

 

Does anyone know if there is there a way to generate the best sellers based on the historic orders I have imported or does Prestashop only base best sellers on orders that have been placed through the current site?

 

Jon

Edited by Design2Please (see edit history)
Link to comment
Share on other sites

You could create a file like fill.php in PrestaShop's root directory with the following:

<?php

require(dirname(__FILE__).'/config/config.inc.php');
ProductSale::fillProductSales();

Then run it in your browser. Hopefully, that will execute the function. Then you can delete the file when you're done.

Link to comment
Share on other sites

  • 2 months later...
  • 3 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...