Changes to category.php not showing
Posted: 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?
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?