Wol*_*Dev 5 magento magento-1.7
我想删除/隐藏我的类别中的一些属性排序选项.
为此我取消选中"使用所有属性"并选择我想要在排序选择中显示的属性.
在此之后,我清除了缓存并重新索引了类别和产品数据.
但我依旧选择显示所有属性.可以给我一个帮助吗?
我正在使用修改后的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>
Run Code Online (Sandbox Code Playgroud)
编辑:
这是我在类别中显示设置的图像:

但在我的商店内查看所有选项
好的,解决了问题:
我更改了所有商店视图中的设置,但在所有 sotre 视图中都没有更改。当我尝试更改“语言视图”中的设置“使用默认值”时。我收到错误“可用产品列表排序依据上不存在默认产品列表排序依据”。
所以我“只是”需要更改每种语言的所有类别设置。
编辑:
编辑一些类别并选中/取消选中“使用默认值”后,错误消失了,我将所有“使用默认值”设置为“是”。
| 归档时间: |
|
| 查看次数: |
11263 次 |
| 最近记录: |