Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Katalog und Order by Fehler
 
Daim
Sr. Member
 
Total Posts:  172
Joined:  2008-01-08
Germany
 

Hallo,
habe in der Result.php das Order by Feld erweitert. In meinem Fall mit “Manufacturer”. Jedoch sortiert Magento dort nicht richtig, erst kommt A B ... T .. und dann wieder A und dann wieder U. Kann einer den Fehler reproduzieren?

Magento ver. 1.2.0.1
Manufacturer ist als Dropdown angelegt

Danke Damian

EDIT:
Mage/CatalogSearch/Block/Result.php

public function setListOrders() {
        $this
->getListBlock()
            ->
setAvailableOrders(array(
            
'name'      => $this->__('Name'),
            
'manufacturer'      => $this->__('Manufacturer'),    
            
'sku'     => 'CatalogNo',     
            ))
            ->
setDefaultDirection('desc');
        return 
$this;
    
}
 
Magento Community Magento Community
Magento Community
Magento Community
 
Daim
Sr. Member
 
Total Posts:  172
Joined:  2008-01-08
Germany
 

Ok habe die Lösung, er sortiert nach der ID statt nach den Namen oder noch besser sort_order :(

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top