// clean useless code
This commit is contained in:
@@ -54,7 +54,7 @@ class BankwireValidationModuleFrontController extends ModuleFrontController
|
|||||||
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::getValue('currency_payement', false) ? new Currency(Tools::getValue('currency_payement')) : Context::getContext()->currency;
|
$currency = $this->context->currency;
|
||||||
$total = (float)$cart->getOrderTotal(true, Cart::BOTH);
|
$total = (float)$cart->getOrderTotal(true, Cart::BOTH);
|
||||||
$mailVars = array(
|
$mailVars = array(
|
||||||
'{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),
|
'{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ include(dirname(__FILE__).'/../../config/config.inc.php');
|
|||||||
include(dirname(__FILE__).'/../../header.php');
|
include(dirname(__FILE__).'/../../header.php');
|
||||||
include(dirname(__FILE__).'/bankwire.php');
|
include(dirname(__FILE__).'/bankwire.php');
|
||||||
|
|
||||||
|
$context = Context::getContext();
|
||||||
|
$cart = $context->cart;
|
||||||
$bankwire = new BankWire();
|
$bankwire = new BankWire();
|
||||||
|
|
||||||
if ($cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$bankwire->active)
|
if ($cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$bankwire->active)
|
||||||
@@ -54,7 +56,7 @@ $customer = new Customer((int)$cart->id_customer);
|
|||||||
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::getValue('currency_payement', false) ? new Currency(Tools::getValue('currency_payement')) : Context::getContext()->currency;
|
$currency = $context->currency;
|
||||||
$total = (float)($cart->getOrderTotal(true, Cart::BOTH));
|
$total = (float)($cart->getOrderTotal(true, Cart::BOTH));
|
||||||
$mailVars = array(
|
$mailVars = array(
|
||||||
'{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),
|
'{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class ChequeValidationModuleFrontController extends ModuleFrontController
|
|||||||
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')) : $this->context->currency;
|
$currency = $this->context->currency;
|
||||||
$total = (float)$cart->getOrderTotal(true, Cart::BOTH);
|
$total = (float)$cart->getOrderTotal(true, Cart::BOTH);
|
||||||
|
|
||||||
$mailVars = array(
|
$mailVars = array(
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ $customer = new Customer($cart->id_customer);
|
|||||||
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 = $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