移除magento里list排列“Position”属性选项
2012-05-18 01:21
120 查看
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: 移除分类列表的排序Sort by下拉列表里面的第一个选项:position
- 列表属性list-style-type、图像符号list-style-image、列表缩进list-style-position
- list集合移除某个属性相同的重复对象
- magento 产品页面销量排序 - 字符属性 按照数字方式排列 - CAST(`sell_number` AS SIGNED)
- java List Collections.sort 排序 支持 对象属性 普通数据类型 升序 降序 正序 倒序 排列
- listitems.ListItemCollectionPosition属性为空
- Magento how to remove system attribute?(如何移除系统属性)
- StartPosition属性有如下选项
- position属性:static absolute relative fixed
- List-style-type属性失效
- django获取前端有multiple属性的select的多选项
- struts2 if 标签的使用 已经使用迭代取出List中的Object对象中的属性
- 【代码分享】关于List<V>按V的某个属性分组的通用代码实现
- Css中的Position属性
- STL-list容器的unique函数移除重复元素的策略
- 使用属性position:fixed的时候如何才能让div居中
- <select> 标签的 multiple 属性规定可同时选择多个选项。
- 暴汗,list控件默认sort属性为true
- dede:list调用自定义属性和 dede:arclist的区别
- css 属性定位position 详解