移除magento里list排列“Position”属性选项
来源:互联网 发布:程序员怎么去找视频 编辑:程序博客网 时间:2024/05/26 22:59
1.打开编辑 app/design/frontend/default/Yourtheme/template/catalog/product/list/toolbar.phtml
2.找到类似下面代码
< ?php echo$this->__('Sort by')?><select onchange="setLocation(this.value)">< ?php foreach($this->getAvailableOrders()as$_key=>$_order):?><option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"< ?php if($this->isOrderCurrent($_key)):?> selected="selected"< ?php endif;?>>< ?php echo$_order?></option>< ?php endforeach;?></select>
3.在此代码里面加入下面两行:
< ?php if($_order!='Position'):// Remove "Position" from the sort option list ?>//code< ?php endif;// End for removing "Position" sort option ?>
4.加完代码类似这样
< ?php echo$this->__('Sort by')?><select onchange="setLocation(this.value)">< ?php foreach($this->getAvailableOrders()as$_key=>$_order):?>< ?php if($_order!='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$_order?></option>< ?php endif;// End for removing "Position" sort option ?>< ?php endforeach;?></select>
- 移除magento里list排列“Position”属性选项
- Magento: 移除分类列表的排序Sort by下拉列表里面的第一个选项:position
- Magento 移除block
- Magento按钮的移除
- list集合移除某个属性相同的重复对象
- Magento how to remove system attribute?(如何移除系统属性)
- List移除元素
- position里absolute和relative属性浅析
- 移除属性
- js移除属性
- 移除属性
- 返回一个List里的全部排列
- 文件夹的属性里显示安全选项
- Java List 移除元素
- JAVA List 移除元素
- JAVA List 移除元素
- JAVA List 移除元素
- List循环移除元素
- (转)从生活角度学习c++
- Maganto错误-Cannot initialize the indexer process的解决方法
- Navigation menu - left/right megamenu
- “cvSnakeImage”: 找不到标识符
- (分享)批量上传多图模块(非在线安装)
- 移除magento里list排列“Position”属性选项
- 利用magento自带的javascript做slideshow效果
- magento 常见属性和自定义属性的调用
- zoj 1004 深度优先遍历
- aheadworks extensions
- [线段树+区间染色]LightOJ 1207 Posters for Election
- 2011版兰亭(lightinthebox.com)的Magento模板
- magento extensions:
- 只有原创和翻译文章才能推荐到首页