Opencart 3.0“警告:无运输选项可用”

时间:2018-07-16 18:30:23

标签: opencart shipping

此问题与OpenCart 3.0.0.0有关

正确设置地理区域和基于重量的运输模块后,我仍然收到错误消息“警告:没有可用的运输选项。请与我们联系以获取帮助!”

在各处搜索,但未找到解决方案。

1 个答案:

答案 0 :(得分:1)

已解决!

深入研究代码后,我通过修改一个核心文件找到了解决方案。这似乎是一个编码错误,并且可能在将来的版本中得到纠正。

解决方案:

编辑文件:catalog / model / extension / shipping / weight.php

第11行看起来像这样:

if ($this->config->get('weight_' . $result['geo_zone_id'] . '_status')) {

替换为:

if ($this->config->get('shipping_weight_' . $result['geo_zone_id'] . '_status')) {

AND

第27行如下:

$rates = explode(',', $this->config->get('weight_' . $result['geo_zone_id'] . '_rate'));

替换为:

$rates = explode(',', $this->config->get('shipping_weight_' . $result['geo_zone_id'] . '_rate'));

此更改解决了问题。