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
Last edited by Treat Your Mobile on Mon Dec 12, 2011 6:01 pm, edited 1 time in total.
Regards,
Mobile Phone and Apple Generic Accessories - http://www.treatyourmobile.co.uk
edit catalog/view/theme/default/template/product/category.tpl
find & delete
You may also want to do the same in manufacturer_info.tpl, search.tpl and special.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>
Thanks
Works great!
Works great!
Regards,
Mobile Phone and Apple Generic Accessories - http://www.treatyourmobile.co.uk
Who is online
Users browsing this forum: No registered users and 26 guests