在magento 1.9中单击价格过滤器第一个范围后出现错误结果
我尝试编辑magento 1.9的价格过滤器。当点击过滤器的第一个范围时,它给我错误的结果bcz,它的最小值是0.00,我想把这个0.00改为1在magento 1.9中单击价格过滤器第一个范围后出现错误结果,magento,filter,range,edit,price,Magento,Filter,Range,Edit,Price,我尝试编辑magento 1.9的价格过滤器。当点击过滤器的第一个范围时,它给我错误的结果bcz,它的最小值是0.00,我想把这个0.00改为1 您可以使用以下命令更改价格筛选值: <?php $getLabel = $_item->getLabel(); if (strpos($getLabel, 'price')!== false) :?> <a class="multi-select unselected" href="<?php echo $thi
您可以使用以下命令更改价格筛选值:
<?php
$getLabel = $_item->getLabel();
if (strpos($getLabel, 'price')!== false) :?>
<a class="multi-select unselected" href="<?php echo $this->urlEscape($_item->getUrl()) ?>">
<?php
$getValue = $_item->getValue();
$fitlerPrices = str_replace('-', ' - ', $getValue);
$file = basename($fitlerPrices);
$parts = explode("-", $file);
$getCurency = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
$priceBefore = $getCurency . number_format($parts[0], 0);
$priceAfter = $getCurency . number_format($parts[1], 0); ?>
<?php
if($i == $count){
//item terakhir
echo '<span class="price">' . $priceBefore . 'and Above</span>';
}elseif($i <= 1){
//item pertama
echo '<span class="price">Below ' . $priceAfter . '</span>';
}else{
echo '<span class="price">' . $priceBefore . ' - ' .$priceAfter . '</span>';
}
?>
</a>
<?php else :?>
<a class="multi-select unselected" href="<?php echo $this->urlEscape($_item->getUrl()) ?>"><?php echo $_item->getLabel(); ?></a>
<?php endif?>
对于此