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?
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!
[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!
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.
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.
Who is online
Users browsing this forum: No registered users and 51 guests