我刚刚安装了easypaisa付款范围,但在尝试激活时却给出了未定义的索引错误,请检查以下错误:
MyViewer
第61至76行的代码如下:
ObservableDictionary
任何想法我们如何解决?或通过其他任何方式激活此付款范围,如果有任何方法可以通过phpmyadmin启用它。
答案 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);