Post by scottyboyyy » Sun Jun 03, 2018 10:44 pm

https://demo.opencart.com/index.php?rou ... e_modified

The above sorts by first letter of product name rather than date modified.

When changed to for example date_added:

https://demo.opencart.com/index.php?rou ... date_added

The correct results are shown.

I believe the demo is version 3 but I'm having this issue with my 2.3.0.2 also. And I see threads as far back as 1.5 of people not being able to get this working.

Does anyone know a fix? Or work around?

I am able to access the values for date_modified just seems to not be working for the sort.

New member

Posts

Joined
Fri Apr 07, 2017 2:36 am

Post by Qphoria » Mon Jun 04, 2018 12:48 pm

1. EDIT: catalog/model/catalog/product.php

2. FIND:

Code: Select all

'p.date_added'
3. BEFORE, ADD

Code: Select all

'p.date_modified',
And yes it has been broken since forever.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by scottyboyyy » Tue Jun 05, 2018 5:55 am

Qphoria wrote:
Mon Jun 04, 2018 12:48 pm
1. EDIT: catalog/model/catalog/product.php

2. FIND:

Code: Select all

'p.date_added'
3. BEFORE, ADD

Code: Select all

'p.date_modified',
And yes it has been broken since forever.
That's for advice, I've tried that though with no luck.

Do you possibly know how the date_added is sorted / where the code is that telling it how do order? I see none so I'm not sure whether there is some hidden away or whether it's simply numerical. If it's numerical you would think p.date_modified would work though.

New member

Posts

Joined
Fri Apr 07, 2017 2:36 am
Who is online

Users browsing this forum: No registered users and 4 guests