В старом модуле она выглядит вот так:
Цитата:
public function execPayment($cart)
{
if (!$this->active)
return ;
global $cookie, $smarty;
$smarty->assign(array(
'nbProducts' => $cart->nbProducts(),
'cust_currency' => $cookie->id_currency,
'currencies' => $this->getCurrency(),
'total' => number_format($cart->getOrderTotal(true, 3), 2, '.', ''),
'isoCode' => Language::getIsoById(intval($cookie->id_lang)),
'bankwireDetails' => nl2br2($this->details),
'bankwireAddress' => nl2br2($this->address),
'bankwireOwner' => $this->owner,
'this_path' => $this->_path,
'this_path_ssl' => (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'modules/'.$this->name.'/'
));
return $this->display(__FILE__, 'payment_execution.tpl');
}
В мовом модуле она была:
Цитата:
public function execPayment($cart)
{
if (!$this->active)
return ;
if (!$this->_checkCurrency($cart))
return ;
global $cookie, $smarty;
$smarty->assign(array(
'nbProducts' => $cart->nbProducts(),
'cust_currency' => $cookie->id_currency,
'currencies' => $this->getCurrency(),
'total' => $cart->getOrderTotal(true, 3),
'isoCode' => Language::getIsoById(intval($cookie->id_lang)),
'this_path' => $this->_path,
'this_path_ssl' => Tools::getHttpHost(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'
));
return $this->display(__FILE__, 'payment_execution.tpl');
}
Поменял, теперь на странице modules/bankwire/payment.php при оформлении заказа пишет
Цитата:
Notice: Undefined property: BankWire::$details in /var/www/stria160/data/www/mirra-office.ru/modules/bankwire/bankwire.php on line 138
Notice: Undefined property: BankWire::$address in /var/www/stria160/data/www/mirra-office.ru/modules/bankwire/bankwire.php on line 139
Notice: Undefined property: BankWire::$owner in /var/www/stria160/data/www/mirra-office.ru/modules/bankwire/bankwire.php on line 140
То есть ругается на
Цитата:
'bankwireDetails' => nl2br2($this->details),
'bankwireAddress' => nl2br2($this->address),
'bankwireOwner' => $this->owner,
и всё равно показывает
Цитата:
- Общая сумма Вашего заказа 0 (вкл. налог)