カテゴリのいくつかの属性の並べ替えオプションを削除/非表示にしたいです。
このために、「すべての属性を使用する」のチェックを外し、ソート選択で表示したい属性を選択しました。
この後、キャッシュをクリアし、カテゴリと製品データのインデックスを再作成しました。
しかし、私はまだ選択によるソートにすべての属性を表示しています。誰か助けてくれませんか?
「位置」ソートオプションを非表示にするために変更されたtoolbar.phtmlを使用していますが、これは問題とは何の関係もないと思います:
<div class="sort-by">
<label><?php echo $this->__('Sort By') ?></label>
<select onchange="setLocation(this.value)">
<?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
<?php if ($_order != $this->__('Position')) : // Remove "Position" from the sort option list ?>
<option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
<?php echo $this->__($_order) ?>
</option>
<?php endif; ?>
<?php endforeach; ?>
</select>
<?php if($this->getCurrentDirection() == 'desc'): ?>
<a href="<?php echo $this->getOrderUrl(null, 'asc') ?>" title="<?php echo $this->__('Set Ascending Direction') ?>"><img src="<?php echo $this->getSkinUrl('images/i_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /></a>
<?php else: ?>
<a href="<?php echo $this->getOrderUrl(null, 'desc') ?>" title="<?php echo $this->__('Set Descending Direction') ?>"><img src="<?php echo $this->getSkinUrl('images/i_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /></a>
<?php endif; ?>
</div>
編集:
これは、カテゴリ内のディスプレイ設定の画像です。
しかし、私のストアビュー内にはすべてのオプションが表示されます