Post by Treat Your Mobile » Thu Dec 08, 2011 6:34 pm

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


New member

Posts

Joined
Mon May 23, 2011 4:41 am


Post by uksitebuilder » Fri Dec 09, 2011 2:24 am

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

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Treat Your Mobile » Mon Dec 12, 2011 6:01 pm

Thanks :)

Works great!

Regards,

Mobile Phone and Apple Generic Accessories - http://www.treatyourmobile.co.uk


New member

Posts

Joined
Mon May 23, 2011 4:41 am


Post by Johnny2017 » Fri Aug 25, 2017 1:05 pm

Is there a OCMOD for this?

Newbie

Posts

Joined
Wed Aug 23, 2017 12:05 pm
Who is online

Users browsing this forum: Bing [Bot] and 14 guests