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

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Wed Jul 23, 2025 5:34 pm

JNeuhoff wrote:
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.
Yikes, is this a reported issue in Github?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by DesignCart » Thu Jul 24, 2025 9:27 pm

I don't know. But I have the latest version of OC and it shows me the bestsellers fine. Maybe it depends on the template? Maybe it depends on external modules?

Tworzenie sklepów internetowych | Portfolio | Cennik | O mnie


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin
Who is online

Users browsing this forum: No registered users and 15 guests