Magento Questions Answered By Magento Experts

 

Sign in | Signup

2 Answers

Category View Default (ascending/descending)

Asked by: Jon Bunce 1233 views , , , ,
Questions

Hi, My shop is almost ready to be launched apart from one small issue.

We want the latest products added to the cart to be at the top of the category (list & grid) view.

I have set an attribute (New from date) to sort my items, but the standard view is (i think) ascending, and we need it to be descending so all new items come first in the view.

I would love to know how we could set this to default. If we change it to descending everything is perfect, but when new customer arrives, it is automatically set back to ascending for them.

 

Regards and thanks in advance!

2 Answers



  1. 0 Votes Thumb up 0 Thumb down 0

    Magento Expert on Sep 04, 2010

    One quick-and-dirty way to achieve this is to make a small change to one of Magento’s core files – open app\core\Mage\Catalog\Block\Product\List\Toolbar.php and change the default sorting from ‘asc’ to ‘desc’.

    reply


  2. 0 Votes Thumb up 0 Thumb down 0

    Bryan on Apr 27, 2011

    Is there another way to do this?
    In 1.5.0.1 I have set the protected direction to ‘desc’ , and the sort by opens that way, (Newest) but when I select a different sort by, “Price” it flips to asc, which is ok for price, and what I want, but then when you go back to “Newest” it sticks at asc and does not use desc, very confusing for site visitors.

    I would like to be able to set asc desc for each array item? Or replace the asc/desc function totally, and use more descriptive and simple sort by terms, price low to high, price high to low, etc.

    reply

Answer Question

Please use <code> </code> tags to display code.