结账时Opencart新的运输模块错误

时间:2014-11-17 12:19:04

标签: php html opencart

警告:需要送货方式!
当我继续使用新的运输模块结账时。 warning only in my new module

我的型号代码如下:

if ($status) {
    $quote_data = array();

    $quote_data['ndz.ndz'] = array(
        'code'         => 'ndz',
        'title'        => $this->config->get('ndz_name'),
        'cost'         => $this->config->get('ndz_amount'),
    'text'         => $this->currency->format($this->config->get('ndz_amount'))
    );

    $method_data = array(
        'code'       => 'ndz',
        'title'      => $this->language->get('text_title'),
        'quote'      => $quote_data,
    'sort_order' => $this->config->get('ndz_sort_order'),
    'name' => $this->config->get('ndz_name'),
    'amount' => $this->config->get('ndz_amount'),
        'error'      => false
    );
}

return $method_data;

帮助?

1 个答案:

答案 0 :(得分:1)

尝试更改

$quote_data['ndz.ndz'] = array(
    'code'         => 'ndz',

$quote_data['ndz'] = array(
    'code'         => 'ndz.ndz',