Page 1 of 1

Changes to category.php not showing

Posted: Wed Apr 27, 2016 5:45 pm
by LandingNet
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?

Re: Changes to category.php not showing

Posted: Tue May 03, 2016 6:52 am
by oc-extensions
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!

Re: Changes to category.php not showing

Posted: Tue May 03, 2016 7:12 pm
by LandingNet
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.