Post by LandingNet » Wed Apr 27, 2016 5:45 pm

I have been trying to order products by price by changing the code in catalog/controller/product/category.php to

if (isset($this->request->get['sort'])) {
$sort = $this->request->get['sort'];
} else {
$sort = 'p.price';
}

but this didn't make any difference so I tried changing the name of this file and as expected the products didn't appear on site. I have since changed some code in category.php to break the file and see if it throws up errors but it hasn't had any effect and the website still works fine. I have cleared browser caches, emptied the cache in opencart admin and also manually deleted the files in system/storage/cache without any effect so it would appear something is overriding this file. Has anybody got a clue what the problem is?

Newbie

Posts

Joined
Wed Apr 27, 2016 12:14 am

Post by oc-extensions » Tue May 03, 2016 6:52 am

Hi,

[1] Be sure you change file on correct server
[2] Don't forget to upload modified file (if was donwloaded on your computer and then modified)
[3] Rebuild modification cache (ocmod) from Extensions > Modification > press blue refresh button
[4] Clear page cache (if you use some page cache extensions)

Good luck!

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by LandingNet » Tue May 03, 2016 7:12 pm

Hi,

this seems to be resolved now. It appeared to start working about 24 hours after we modified the file and we don't have caching set on the server so I don't know why that might be.

Newbie

Posts

Joined
Wed Apr 27, 2016 12:14 am
Who is online

Users browsing this forum: No registered users and 51 guests