Post by nyo » Mon Jul 21, 2025 12:12 am

I have installed the OpenCart best-seller extension and placed it on the homepage layout, but it is not displaying any products.

Upon investigation, I examined the getBestSellers function within the Bestseller model. I found that its SQL query selects products from the oc_product_bestseller table, but this query returns no records because the table is empty. Furthermore, I cannot find any code responsible for inserting records into the oc_product_bestseller table.

Could anyone explain how the best-seller product data is generated? I am using OpenCart version 4.0.2.3. Thanks.

The getBestSellers function is located in the file extension/opencart/catalog/model/module/bestseller.php

nyo
Newbie

Posts

Joined
Sat Jul 28, 2018 11:11 pm

Post by JNeuhoff » Mon Jul 21, 2025 4:49 pm

The bestseller feature does indeed not work for any of the OpenCart 4 versions, this one of many bugs, and a reason not to use OpenCart 4 yet for a live site.
Use the stable OpenCart 3.0.4.1 where the bestsellers work just fine.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 9 guests