Page 1 of 1
How to remove the list by and sort by option (Solved)
Posted: Thu Dec 08, 2011 6:34 pm
by Treat Your Mobile
Hi All,
Anyone know how to remove the Sort By and List By options completely, so the option to change them does not even appear on the category pages.
I am using 1.5.1 and my front office is
http://www.treatyourmobile.co.uk should you need to view my site.
Thanks in advance

Re: How to remove the list by and sort by option completely
Posted: Fri Dec 09, 2011 2:24 am
by uksitebuilder
edit catalog/view/theme/default/template/product/category.tpl
find & delete
Code: Select all
<div class="product-filter">
<div class="display"><b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display('grid');"><?php echo $text_grid; ?></a></div>
<div class="limit"><b><?php echo $text_limit; ?></b>
<select onchange="location = this.value;">
<?php foreach ($limits as $limits) { ?>
<?php if ($limits['value'] == $limit) { ?>
<option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
<div class="sort"><b><?php echo $text_sort; ?></b>
<select onchange="location = this.value;">
<?php foreach ($sorts as $sorts) { ?>
<?php if ($sorts['value'] == $sort . '-' . $order) { ?>
<option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
</div>
You may also want to do the same in manufacturer_info.tpl, search.tpl and special.tpl
Re: How to remove the list by and sort by option completely
Posted: Mon Dec 12, 2011 6:01 pm
by Treat Your Mobile
Thanks
Works great!
Re: How to remove the list by and sort by option (Solved)
Posted: Fri Aug 25, 2017 1:05 pm
by Johnny2017
Is there a OCMOD for this?