tozi Posted January 6, 2014 Share Posted January 6, 2014 (edited) Hi all,after completing the order throws an error. "Oops, something went wrong. Try to refresh this page or feel free to contact us if the problem persists." I also reinstalled the module. But it does not work. Any idea? web:http://simplydesign.sk/shop/index.php Edited January 6, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
tozi Posted January 6, 2014 Author Share Posted January 6, 2014 (edited) i turn on debug and result in attachment if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery') 142. $context_country = $this->context->country; 143. 144. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id); 145. if (!Validate::isLoadedObject($order_status)) 146. throw new PrestaShopException('Can\'t load Order state status'); 147. 148. if (!$this->active) 149. die(Tools::displayError()); 150. // Does order already exists ? 151. if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false) PaymentModuleCore->validateOrder Argument [0] 14 Argument [1] 10 Argument [2] 5.49 Argument [3] Bankovní převod Argument [4] Argument [5] Array ( [{bankwire_owner}] => www.horeka-shop.cz [{bankwire_details}] => Číslo bankovního účtu: 107-6122640257/0100 IBAN : CZ1101000001076122640257 SWIFT: KOMBCZPPXXX [{bankwire_address}] => Bankovní účet společnosti je vedený u Komerční banky, a. s., Kobližná 683/3, 602 00, Brno. ) Argument [6] 2 Argument [7] Argument [8] 7f8001677903f59751354ed9f2633f37 bankwire/controllers/validation.php class BankwireValidationModuleFrontController extends ModuleFrontController { /** * @see FrontController::postProcess() */ public function postProcess() { $cart = $this->context->cart; if ($cart->id_customer == 0 || $cart->id_address_delivery == 0 || $cart->id_address_invoice == 0 || !$this->module->active) Tools::redirect('index.php?controller=order&step=1'); // Check that this payment option is still available in case the customer changed his address just before the end of the checkout process $authorized = false; foreach (Module::getPaymentModules() as $module) if ($module['name'] == 'bankwire') { $authorized = true; break; } if (!$authorized) die($this->module->l('This payment method is not available.', 'validation')); $customer = new Customer($cart->id_customer); if (!Validate::isLoadedObject($customer)) Tools::redirect('index.php?controller=order&step=1'); $currency = $this->context->currency; $total = (float)$cart->getOrderTotal(true, Cart::BOTH); $mailVars = array( '{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'), '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')), '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS')) ); $this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } } Edited January 6, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
tozi Posted January 6, 2014 Author Share Posted January 6, 2014 Come on. No one helps? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now