Magento – ” Sort By Position ” or ” Sort by Position ” or change. remove

Picture

Who is the opinion, that sorting by default position in the product summary does not really make sense, has the possibility, to change this in two places.

  1. Rapid and convenient method: In the backend can be selected in each category, how it should be sorted. PictureHere can then be adjusted, that can be sorted by price or name should. Assessment seems to stand for position.
    This should however be made for all categories. How can we expect but the little hooks and the grayed-out box, There is also a possibility, To change the default. This is for system > Configuration > Catalog housed. Picture 

     

  2. The laborious method (is also a method of the older versions of Magento): The file toolbar.phtml in the folder /app / design / frontend /[base or default]/IhrTemplate/template/catalog/product/list/ open.
    Dort ist ca. in line 78 The following entry:

    <div class ="sort-by">
    <label><?php echo $this->__('Sort By') ?></label>
    <select onchange="setLocation(this.value)">

    After that entry must be added the following line:

    <?php $this->removeOrderFromAvailableOrders('position'); ?>

    so then it looks like:

    <div class ="sort-by">
    <label><?php echo $this->__('Sort By') ?></label>
    <select onchange="setLocation(this.value)">
    <?php $this->removeOrderFromAvailableOrders('position'); ?>

    This removes the ability to sort by Position.

Again, it is then clear the cache.

Used in 1.4.1.1

Gives instructions to remove the entire navigation area it HERE.

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

5 comments on “Magento – ” Sort By Position ” or ” Sort by Position ” or change. remove”

Leave a Reply

Your email address will not be published. Required fields are marked *