// fix notice error on payment validation
This commit is contained in:
1 parent
28ab48985b
commit
336f23fbe2
2 files changed
+2
-2
No files matched your search
@@ -130,7 +130,7 @@ abstract class PaymentModuleCore extends Module
|
|||||||
die($errorMessage);
|
die($errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
$order_status = new OrderState((int)$id_order_state, (int)$order->id_lang);
|
$order_status = new OrderState((int)$id_order_state, (int)$cart->id_lang);
|
||||||
if (!Validate::isLoadedObject($order_status))
|
if (!Validate::isLoadedObject($order_status))
|
||||||
throw new PrestashopException('Can\'t load Order state status');
|
throw new PrestashopException('Can\'t load Order state status');
|
||||||
|
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ class Cheque extends PaymentModule
|
|||||||
if (!Validate::isLoadedObject($customer))
|
if (!Validate::isLoadedObject($customer))
|
||||||
Tools::redirect('index.php?controller=order&step=1');
|
Tools::redirect('index.php?controller=order&step=1');
|
||||||
|
|
||||||
$currency = Tools::isSubmit('currency_payement') ? new Currency(Tools::getValue('currency_payement')) : $context->currency;
|
$currency = Tools::isSubmit('currency_payement') ? new Currency(Tools::getValue('currency_payement')) : $this->context->currency;
|
||||||
$total = (float)$cart->getOrderTotal(true, Cart::BOTH);
|
$total = (float)$cart->getOrderTotal(true, Cart::BOTH);
|
||||||
|
|
||||||
$mailVars = array(
|
$mailVars = array(
|
||||||
|
|||||||
Reference in new issue
Block a user