// Context part 12

This commit is contained in:
tDidierjean
2011-07-19 09:28:11 +00:00
parent ff81f71449
commit 52339502b6
53 changed files with 184 additions and 196 deletions
+4 -4
View File
@@ -157,7 +157,7 @@ class Cheque extends PaymentModule
$context = Context::getContext();
$context->controller->smarty->assign(array(
$context->smarty->assign(array(
'nbProducts' => $cart->nbProducts(),
'cust_currency' => $cart->id_currency,
'currencies' => $this->getCurrency((int)$cart->id_currency),
@@ -180,7 +180,7 @@ class Cheque extends PaymentModule
return ;
$context = Context::getContext();
$context->controller->smarty->assign(array(
$context->smarty->assign(array(
'this_path' => $this->_path,
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'
));
@@ -195,7 +195,7 @@ class Cheque extends PaymentModule
$context = Context::getContext();
$state = $params['objOrder']->getCurrentState();
if ($state == _PS_OS_CHEQUE_ OR $state == _PS_OS_OUTOFSTOCK_)
$context->controller->smarty->assign(array(
$context->smarty->assign(array(
'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false),
'chequeName' => $this->chequeName,
'chequeAddress' => nl2br2($this->address),
@@ -203,7 +203,7 @@ class Cheque extends PaymentModule
'id_order' => $params['objOrder']->id
));
else
$context->controller->smarty->assign('status', 'failed');
$context->smarty->assign('status', 'failed');
return $this->display(__FILE__, 'payment_return.tpl');
}