Post by yegga » Fri Oct 09, 2009 4:49 pm

hi, i'd like to remove the 'sort by rating' fields in the sort, how do i do this?

Active Member

Posts

Joined
Tue Sep 08, 2009 5:03 am

Post by fido-x » Fri Oct 09, 2009 9:27 pm

In "catalog/controller/product/category.php" find (lines 195 to 205):

Code: Select all

$this->data['sorts'][] = array(
	'text'  => $this->language->get('text_rating_desc'),
	'value' => 'rating-DESC',
	'href'  => $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $this->request->get['path'] . '&sort=rating&order=DESC'))
); 

$this->data['sorts'][] = array(
	'text'  => $this->language->get('text_rating_asc'),
	'value' => 'rating-ASC',
	'href'  => $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $this->request->get['path'] . '&sort=rating&order=ASC'))
);
and comment it out.

Do the same in "catalog/controller/product/manufacturer.php" (lines 144 to 154), "catalog/controller/product/search.php" (lines 192 to 202) and "catalog/controller/product/special.php" (lines 135 to 145).

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by mr.madsen » Wed Oct 28, 2009 10:06 pm

Thanks! This was just what I was looking for :)

-----------------
Internet is my only friend


Newbie

Posts

Joined
Tue Oct 27, 2009 6:11 pm
Who is online

Users browsing this forum: No registered users and 6 guests