日安,
我目前在一个重要的magento项目上工作,我需要添加零价格的航运选项,在此订单的价格将高于欧元33的情况下。我安装了这个模块:https://www.magentocommerce.com/magento-connect/multi-flat-shipping-1.html
用图片来解释我的问题:

谢谢。
发布于 2016-05-02 19:23:39
在位于app\code\community\MSP\FlatShipping5\Model\Carrier\Abstract.php的扩展抽象类MSP_FlatShipping5_Model_Carrier_Abstract中,您需要添加以下代码:
if ($request->getBaseSubtotalInclTax() > 33 ) {
$shippingPrice = '0.00';
}在这行代码下面的collectRates函数中,第90行左右:
if ($request->getFreeShipping() === true || $request->getPackageQty() == $this->getFreeBoxes()) {
$shippingPrice = '0.00';
} 要创建更易于管理的代码,您可以使用system.xml创建免费送货金额字段,并获取相同的字段。
https://stackoverflow.com/questions/36976706
复制相似问题