Easypaisa付款扩展未定义索引opencart 3.0.3.1

时间:2019-03-14 09:57:07

标签: opencart opencart-3

我刚刚安装了easypaisa付款范围,但在尝试激活时却给出了未定义的索引错误,请检查以下错误:

MyViewer

第61至76行的代码如下:

ObservableDictionary

任何想法我们如何解决?或通过其他任何方式激活此付款范围,如果有任何方法可以通过phpmyadmin启用它。

2 个答案:

答案 0 :(得分:1)

Opencart 3031您应该使用user_token代替token。我正确设置了会话数据。 您可以尝试以下我认为很棒的代码。

$data['breadcrumbs'][] = array(
            'text' => $this->language->get('text_home'),
            'href' => $this->url->link('common/dashboard', 'user_token=' . isset($this->session->data['user_token']), true)
        );

        $data['breadcrumbs'][] = array(
            'text' => $this->language->get('text_extension'),
            'href' => $this->url->link('marketplace/extension', 'user_token=' . isset($this->session->data['user_token']) . '&type=payment', true)
        );

        $data['breadcrumbs'][] = array(
            'text' => $this->language->get('heading_title'),
            'href' => $this->url->link('extension/payment/easypaisa', 'user_token=' . isset($this->session->data['user_token']), true)
        );

        $data['action'] = $this->url->link('extension/payment/easypaisa', 'user_token=' . isset($this->session->data['user_token']), true);

        $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . isset($this->session->data['user_token']) . '&type=payment', true);
进行这些更改后,

确保代码运行良好。 谢谢

答案 1 :(得分:0)

在OC3中,您应该使用user_token代替token

  $data['breadcrumbs'][] = array(
            'text' => $this->language->get('text_home'),
            'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true)
        );

        $data['breadcrumbs'][] = array(
            'text' => $this->language->get('text_extension'),
            'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true)
        );

        $data['breadcrumbs'][] = array(
            'text' => $this->language->get('heading_title'),
            'href' => $this->url->link('extension/payment/easypaisa', 'user_token=' . $this->session->data['user_token'], true)
        );

        $data['action'] = $this->url->link('extension/payment/easypaisa', 'user_token=' . $this->session->data['user_token'], true);

        $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true);