tes*_*est 0 shipping opencart2.x
我想如果订单超过x金额,那么免费送货,否则需要收取x金额.
在免费送货我已经设置了X金额.在统一费率我设置X金额.
但在前端,如果订单高于x金额,那么它显示免费送货和统一费率.
如果订单超过X金额,我需要的是它只显示免费送货,否则统一费率.
这是一个简单的想法,只有当小计金额小于免费送货时才返回统一费率
// catalog/model/shipping/flat.php
Run Code Online (Sandbox Code Playgroud)
更换
return $method_data;
Run Code Online (Sandbox Code Playgroud)
同
if ($this->cart->getSubTotal() < $this->config->get('free_total')) {
return $method_data;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3154 次 |
| 最近记录: |