製品リストページでは、デフォルトのMagentoと同様に、「位置、名前、価格」で並べ替えを確認できます。
並べ替え方法
- 最新の製品(最近アップロード)
- 割引(最高の割引商品が最初)
- ベストセラー(最も売れた製品が最初)
- レビュー(高評価の製品が最初に表示されます)
説明が必要な場合はお知らせください...
製品リストページでは、デフォルトのMagentoと同様に、「位置、名前、価格」で並べ替えを確認できます。
並べ替え方法
説明が必要な場合はお知らせください...
回答:
->評価によるソート
ファイルをコピーする
app/code/core/Mage/Catalog/Block/Product/List.php に
app/code/local/Mage/Catalog/Block/Product/List.php 
でlist.php、このラインを見つけます
$this->_productCollection =$layer->getProductCollection();周りline no 86にあるので、その後に次のコードを追加します
$this->_productCollection->joinField('rating_summary', 'review_entity_summary', 'rating_summary', 'entity_pk_value=entity_id', array('entity_type'=>1, 'store_id'=> Mage::app()->getStore()->getId()), 'left')今すぐコピー
app/code/core/Mage/Catalog/Model/Config.php に 
app/code/local/Mage/Catalog/Model/Config.php
config.phpでこのコードを見つけます
$options = array(
    'position'  => Mage::helper('catalog')->__('Position')
);と置換する
$options = array(
    'position'  => Mage::helper('catalog')->__('Position'),
    'rating_summary' => Mage::helper('catalog')->__('Rating')
);->>用 BESTSELLER 
フォルダの命名を作成するには、この手順に従うInchooと、そのフォルダの場所の内側Catalogと内側のカタログ3つのフォルダを作成しBlock、etcそしてModelではBlockアドオンProductでProduct追加ListしてでListファイルを作成してそれに名前を付けるToolbar.phpことにこのコードを広告
<?php
class Inchoo_Catalog_Block_Product_List_Toolbar extends Mage_Catalog_Block_Product_List_Toolbar
{
    public function setCollection($collection)
    {
        parent::setCollection($collection);
        if ($this->getCurrentOrder()) {
            if($this->getCurrentOrder() == 'qty_ordered') {
                $this->getCollection()->getSelect()
                     ->joinLeft(
                            array('sfoi' => $collection->getResource()->getTable('sales/order_item')),
                             'e.entity_id = sfoi.product_id',
                             array('qty_ordered' => 'SUM(sfoi.qty_ordered)')
                         )
                     ->group('e.entity_id')
                     ->order('qty_ordered ' . $this->getCurrentDirection());
            } else {
                $this->getCollection()
                     ->setOrder($this->getCurrentOrder(), $this->getCurrentDirection())->getSelect();
            }
        }
        return $this;
    }
}今etcフォルダーに名前の付いたファイルを作成し、config.xmlこのコードを追加します
<config>
    <modules>
        <Inchoo_Catalog>
            <version>0.1.0</version>
        </Inchoo_Catalog>
    </modules>
    <global>
        <blocks>
            <catalog>
                <rewrite>
                    <product_list_toolbar>Inchoo_Catalog_Block_Product_List_Toolbar</product_list_toolbar>
                </rewrite>
            </catalog>
        </blocks>
        <models>
            <catalog>
                <rewrite>
                    <config>Inchoo_Catalog_Model_Config</config>
                </rewrite>
            </catalog>
            <catalog_resource>
                <rewrite>
                    <product_collection>Inchoo_Catalog_Model_Resource_Product_Collection</product_collection>
                </rewrite>
            </catalog_resource>
        </models>
    </global>
</config>次にModel、ファイル名Config.phpを作成し、このコードを追加します。
<?php class Inchoo_Catalog_Model_Config extends Mage_Catalog_Model_Config
{
    public function getAttributeUsedForSortByArray()
    {
        return array_merge(
            parent::getAttributeUsedForSortByArray(),
            array('qty_ordered' => Mage::helper('catalog')->__('Sold quantity'))
        );
    }
}また、Resourceフォルダ内ModelおよびResourceフォルダ内にProductフォルダを作成し、ファイル名Collection.phpを作成して、次のコードを追加します。
<?php
class Inchoo_Catalog_Model_Resource_Product_Collection extends Mage_Catalog_Model_Resource_Product_Collection
{
    protected function _getSelectCountSql($select = null, $resetLeftJoins = true)
    {
       $this->_renderFilters();
       $countSelect = (is_null($select)) ?
           $this->_getClearSelect() :
           $this->_buildClearSelect($select);
       if(count($countSelect->getPart(Zend_Db_Select::GROUP)) > 0) {
           $countSelect->reset(Zend_Db_Select::GROUP);
       }
       $countSelect->columns('COUNT(DISTINCT e.entity_id)');
       if ($resetLeftJoins) {
           $countSelect->resetJoinLeft();
       }
       return $countSelect;
    }
}最後にapp/etc/modules、ファイルを作成してこのモジュールをアクティブにし、Inchoo_Catalog.xmlこのコードを追加します。
<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Mage
 * @package     Mage_Connect
 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->
<config>
    <modules>
        <Inchoo_Catalog>
            <active>true</active>
            <codePool>community</codePool>
            <depends />
        </Inchoo_Catalog>
    </modules>
</config>そして、のためにSALE、私はあなたにこの提案拡張子を私はこれを達成するための任意のプログラム的な方法を見つけることができませんよう。