Jump to content

Recommended Posts

I am using 1.5.6.1

I have activated "Bestsellers" and reduced the number showing up from 5 to 3 products in the blockbestsellers.php file, and 3 products are visible in FO.

But when I click on "Show all bestsellers", I get the message: No bestsellers yet.

 

How can I solve this problem ?

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

Do you actually have any order which was set to shipped or payment accepted?

Try rebuilding smarty cache anyway (advanced parameters/performance)

Yes, several orders are marked as Payment Accepted.

Smarty Cache is cleared, but nothing happens.

Link to comment
Share on other sites

I have downloaded 1.5.6.1 again and installed it under a sub-domain, and no files are changed. I have click "Payment accepted" on the pre-installed order from John Doe. The item "iPod touch" are showing up as a bestseller. I than click on "Show all bestsellers" and I still get the same message "No bestsellers yet". I am using the Norwegian edition.

 

I have edited the file classes/productsale.php as suggested. That did not help.

What to do next ?

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

  • 2 weeks later...

1.5.6.1

The problem is solved. Why ? I am not sure. I have tried allmost everything and finally I did the following:

1. Replaced the hole catalog "Classes". Used the "Classes" from 1.5.6.2. (From 1.5.6.1 didn`t work).

2. Cleared Cache

3. Changed the status for an order. (Changed from Paymant accepted to Delivered).

Link to comment
Share on other sites

Yes, maybe. In fact all catalogs, one by one, were replaced in 1.5.6.1 with new catalogs from 1.5.6.1. 

Than i started over again with catalogs from 1.5.6.2, it suddenly worked out.

 

I finally changed the number of Bestsellers to 8 in BestSalesController.php in line 40. If anyone is interested, it now goes like this:

'products' => ProductSale::getBestSales($this->context->language->id, $this->p - 1, 8, $this->orderBy, $this->orderWay),

Link to comment
Share on other sites

×
×
  • Create New...