Jump to content

Ramirezik

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

Ramirezik's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Jak zrobić by po zakupie i wyborze za pobraniem od razu wysyłany był e-mail z potwierdzeniem zamówienia i linkiem w który jak się kliknie to zamówienie jest dopiero potwierdzone?
  2. 1.Przy zakupie i wybraniu metody płatności - pobranie wyświetla się error 500, więc zmieniłem już define('_PS_MODE_DEV_', false); na define('_PS_MODE_DEV_', true); i wyświetliło mi się: [PrestaShopException] Can't load Order status at line 174 in file classes/PaymentModule.php 168. 169. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id); 170. if (!Validate::isLoadedObject($order_status)) 171. { 172. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true); 173. throw new PrestaShopException('Can\'t load Order status'); 174. } 175. 176. if (!$this->active) 177. { 178. PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true); PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments]53. 54. if (Tools::getValue('confirm')) 55. { 56. $customer = new Customer((int)$this->context->cart->id_customer); 57. $total = $this->context->cart->getOrderTotal(true, Cart::BOTH); 58. $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); 59. Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder); 60. } 61. } 62. 63. /** Argument [0] 14 Argument [1] 3 Argument [2] 69 Argument [3] Płatność przy odbiorze Argument [4] Argument [5] Array ( ) Argument [6] Argument [7] Argument [8] e09af9b5169fee1791476cfe573b63e2 CashondeliveryValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]165. // setMedia MUST be called before postProcess 166. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) 167. $this->setMedia(); 168. 169. // postProcess handles ajaxProcess 170. $this->postProcess(); 171. 172. if (!empty($this->redirect_after)) 173. $this->redirect(); 174. 175. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) ControllerCore->run - [line 373 - classes/Dispatcher.php]367. // Execute hook dispatcher 368. if (isset($params_hook_action_dispatcher)) 369. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 370. 371. // Running controller 372. $controller->run(); 373. } 374. catch (PrestaShopException $e) 375. { 376. $e->displayMessage(); 377. } DispatcherCore->dispatch - [line 28 - index.php]22. * @license http://opensource.or...ses/osl-3.0.php Open Software License (OSL 3.0) 23. * International Registered Trademark & Property of PrestaShop SA 24. */ 25. 26. require(dirname(__FILE__).'/config/config.inc.php'); 27. Dispatcher::getInstance()->dispatch(); Co z tym począć?
  3. By nie tworzyć dwóch tematów i zaśmiecać forum, to ujmę trzy pytania w jeden wątek. Bardzo proszę o pomoc, bo nie mam pojęcia co z tym począć. 1.Przy zakupie i wybraniu metody płatności - pobranie wyświetla się error 500, więc zmieniłem już define('_PS_MODE_DEV_', false); na define('_PS_MODE_DEV_', true); i wyświetliło mi się: [PrestaShopException]Can't load Order status at line 174 in file classes/PaymentModule.php 168. 169. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id); 170. if (!Validate::isLoadedObject($order_status)) 171. { 172. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true); 173. throw new PrestaShopException('Can\'t load Order status'); 174. } 175. 176. if (!$this->active) 177. { 178. PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true); PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments]53. 54. if (Tools::getValue('confirm')) 55. { 56. $customer = new Customer((int)$this->context->cart->id_customer); 57. $total = $this->context->cart->getOrderTotal(true, Cart::BOTH); 58. $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); 59. Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder); 60. } 61. } 62. 63. /** Argument [0] 14 Argument [1] 3 Argument [2] 69 Argument [3] Płatność przy odbiorze Argument [4] Argument [5] Array ( ) Argument [6] Argument [7] Argument [8] e09af9b5169fee1791476cfe573b63e2 CashondeliveryValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]165. // setMedia MUST be called before postProcess 166. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) 167. $this->setMedia(); 168. 169. // postProcess handles ajaxProcess 170. $this->postProcess(); 171. 172. if (!empty($this->redirect_after)) 173. $this->redirect(); 174. 175. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) ControllerCore->run - [line 373 - classes/Dispatcher.php]367. // Execute hook dispatcher 368. if (isset($params_hook_action_dispatcher)) 369. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 370. 371. // Running controller 372. $controller->run(); 373. } 374. catch (PrestaShopException $e) 375. { 376. $e->displayMessage(); 377. } DispatcherCore->dispatch - [line 28 - index.php]22. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23. * International Registered Trademark & Property of PrestaShop SA 24. */ 25. 26. require(dirname(__FILE__).'/config/config.inc.php'); 27. Dispatcher::getInstance()->dispatch(); 2. Oraz nie mam pojęcia jak zrobić by po zakupie i wyborze za pobraniem od razu wysyłany był e-mail z potwierdzeniem zamówienia i linkiem w który jak się kliknie to zamówienie jest dopiero potwierdzone. 3.Czy jest taka możliwość by połączyć preste z kontem bankowym i by automatycznie mi przy zamówieniu pisało, że dana osoba dokonała/nie dokonała wpłaty przy swoim zamówieniu.
×
×
  • Create New...