0
我已经设置了特定产品类别在magento的免费送货通过引用这篇博文http://www.regularjen.com/archives/2010/06/11/free-shipping-on-a-single-item-in-magento/。它的工作正常。现在问题是,Magento在shiiping reuslt展示免费送货&其他运费。Magento:取消其他运费的结果,当显示免费送货
我该如何删除这些结果?
我已经设置了特定产品类别在magento的免费送货通过引用这篇博文http://www.regularjen.com/archives/2010/06/11/free-shipping-on-a-single-item-in-magento/。它的工作正常。现在问题是,Magento在shiiping reuslt展示免费送货&其他运费。Magento:取消其他运费的结果,当显示免费送货
我该如何删除这些结果?
一种解决方案可能是覆盖getShippingRates()方法,你可以在Mage_Checkout_Block_Onepage_Shipping_Method_Available类找到。
public function getShippingRates()
{
parent::getShippingRates();
if (isset($this->_rates['freeshipping'])) {
$this->_rates = array('freeshipping' => $this->_rates['freeshipping']);
}
return $this->_rates;
}