Помогите исправить Fatal error: Cannot re-assign $this в osStore 1.5.5
В чекауте, при переходе к подтверждению оплаты вылетает: Fatal error: Cannot re-assign $this in X:\openserver\OpenServer\domains\localhost\catalog\controller\payment\rbs.php on line 252
line 252:
private function get_template($template, $this->data) {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/' . $template . '.tpl')) {
return $this->load->view($this->config->get('config_template') . '/template/' . $template . '.tpl', $this->data);
} else {
return $this->load->view('default/template/' . $template . '.tpl', $this->data);
}
}
PS адаптировал модуль оплаты для osStore 2.1 под osStore 1.5.5
Ответы (1 шт):
Автор решения: InDevX
→ Ссылка
До версии 2.0.Х Нужно использовать метод render()
private function get_template($template) {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/' . $template . '.tpl')) {
$this->template = $this->config->get('config_template') . '/template/' . $template . '.tpl';
} else {
$this->template = 'default/template/' . $template . '.tpl';
}
return $this->render();
}