Post by Sean2806 » Tue Feb 27, 2024 6:55 pm

Hi All,
I've managed to change Total Sales on the Dashboard, so that it only shows sales from specific order statuses, But for some reason I can't seem to do the same on Total Orders.
So I'd like the Total Order count to not show orders that have the status as Refunded, Cancelled etc.
Any help would be massively appreciated.

Newbie

Posts

Joined
Sat Jan 16, 2016 4:24 am

Post by paulfeakins » Wed Feb 28, 2024 6:44 pm

Sean2806 wrote:
Tue Feb 27, 2024 6:55 pm
I can't seem to do the same on Total Orders.
What code have you tried changing for this?

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


User avatar
Legendary Member
Online

Posts

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

Post by Sean2806 » Wed Feb 28, 2024 10:22 pm

paulfeakins wrote:
Wed Feb 28, 2024 6:44 pm
Sean2806 wrote:
Tue Feb 27, 2024 6:55 pm
I can't seem to do the same on Total Orders.
What code have you tried changing for this?
Hi Paul, I cant even figure out which bit of code to try, So in short, none

Newbie

Posts

Joined
Sat Jan 16, 2016 4:24 am

Post by paulfeakins » Thu Feb 29, 2024 8:12 pm

Sean2806 wrote:
Wed Feb 28, 2024 10:22 pm
Hi Paul, I cant even figure out which bit of code to try, So in short, none
So OpenCart uses a design pattern / file layout called MVC, meaning if you can find the template file (View) in the "view" folder, it should have its own code file (Controller) in a similar location under "controller" and that is where the data for that view will be set.

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


User avatar
Legendary Member
Online

Posts

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

Users browsing this forum: No registered users and 18 guests