Search the Community
Showing results for tags 'help!!'.
-
Hi All, I can place an order but when I try to confirm I get this error: [PrestaShopException] Can't load Order state status at line 146 in file classes/PaymentModule.php 140. if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery') 141. $context_country = $this->context->country; 142. 143. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id); 144. if (!Validate::isLoadedObject($order_status)) 145. throw new PrestaShopException('Can\'t load Order state status'); 146. 147. if (!$this->active) 148. die(Tools::displayError()); 149. // Does order already exists ? 150. if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false) PaymentModuleCore->validateOrder - [line 65 - modules/bankwire/controllers/front/validation.php] - [9 Arguments] 59. '{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'), 60. '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')), 61. '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS')) 62. ); 63. 64. $this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); 65. 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); 66. } 67. } Argument [0] 15 Argument [1] 10 Argument [2] 228.31 Argument [3] Bank Wire Argument [4] Argument [5] Array ( [{bankwire_owner}] => [{bankwire_details}] => [{bankwire_address}] => ) Argument [6] 2 Argument [7] Argument [8] 7c661221684c9e0049ae72fce7dc4e98 BankwireValidationModuleFrontController->postProcess - [line 159 - classes/controller/Controller.php] - [0 Argument] 153. // setMedia MUST be called before postProcess 154. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) 155. $this->setMedia(); 156. 157. // postProcess handles ajaxProcess 158. $this->postProcess(); 159. 160. if (!empty($this->redirect_after)) 161. $this->redirect(); 162. 163. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] 343. // Execute hook dispatcher 344. if (isset($params_hook_action_dispatcher)) 345. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 346. 347. // Running controller 348. $controller->run(); 349. } 350. catch (PrestaShopException $e) 351. { 352. $e->displayMessage(); 353. } DispatcherCore->dispatch - [line 29 - index.php] - [0 Argument] Has anyone got any Idea as to what is going on. Complete newby here
-
I created a negative voucher according to a different topic here. Now my problem is this, the voucher is basically a charge for credit card usage (the charging fee of the payment gateway system) and I want it to calculate the value after all the regular discounts have been implimented. this is what i aim for: initial price = $3000 discount vouchers value = $1000 Charging fee = $2000 * 3.5% final price = $2070 This is what I have at the moment (default usage of vouchers): initial price = $3000 discount value = $1000 + (-3.5%) => $895 charging fee = (already calculated in the discount value) final price = $2105 I know that in total the outcome is good for the seller, the problem is that customers are not stupid and will figure out sooner or later that this is a fishy way to make additional profit. Anyone knows how to change the way that the voucher are calculated in such a way that the negative vouchers (the added cost, since it's a double negative) that is always a percentage will be calculated only AFTER the total price has been summarized with the normal discount vouchers. Thanks.