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