-1
내 사이트에 필터의 가격을 표시 중입니다 : Rs 0.00-Rs 1.00.Magento 프라이스 필터
최소값을 자동으로 가져 와서 가격을 정렬해야합니다.
다음은 filter.phtml의 코드입니다. 제발 도와주세요.
if(!function_exists("_displayDropdown")){
function _displayDropdown($atts,$displayitemcount,$new_attributeName){
echo '<select id="layered-select" class="select" name="layered-select" onchange="if (this.selectedIndex > 0) location.href=this[this.selectedIndex].value;">';
echo '<option selected="selected">'.$new_attributeName.'</option>';
foreach ($atts->getItems() as $_item){
echo '<option value="'.$_item->getUrl().'">';
echo $_item->getLabel();
if($displayitemcount){
echo ' ('.$_item->getCount().')';
}
echo '</option>';
}
echo '</select>';
}
}
switch ($attributeName) {
case 'Shoe Size':
case 'Overthreshold':
_displayDropdown($this,$displayitemcount,$new_attributeName);
break;
default:
_displayOrderedlist($this,$displayitemcount);
break;
}
코드를 추가하고이 문제가있는 곳을 알려주십시오. –
Magento 관리자 패널의 백엔드에서 설정을 변경하여이 문제를 해결했습니다. 가격 속성을 (Layered Navigation에서 사용 = "예")로 설정하십시오. – Raj