Jump to content
  • 0

Problem z płatnościami dla produktów nie będących na stanie.


foka666

Question

Witam

 

Jak w temacie. Wszystkie metody płatność (transferuj.pl,przelew,na miejscu) w przypadku gdy towaru nie ma na stanie wyrzucają błąd 500.

 

Parę dni temu wszystko działało :) przeczytałem parę (naście) tematów o ty temacie. U mnie coś dziwnego się dzieje :P

 

Mianowicie kiedy dziś to zaobserwowałem to włączyłem Debugowanie. I teraz najlepsze za pierwszym razem po włączeniu wszystko zadziałało :))))))) włączyłem i znowu błąd 500

 

teraz inna sprawa był błąd w lini 872 a jest 909

 

*ERROR* 2015/10/21 - 15:35:35: Property OrderHistory->id_order_state is empty at line 872 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 15:46:08: Property OrderHistory->id_order_state is empty at line 872 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 15:58:07: Property OrderHistory->id_order_state is empty at line 872 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 16:30:25: Property OrderHistory->id_order_state is empty at line 872 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 18:20:43: Property OrderHistory->id_order_state is empty at line 872 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 18:30:37: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 18:41:30: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 18:47:05: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 19:36:11: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 19:42:45: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 19:58:42: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php
*ERROR* 2015/10/21 - 21:19:15: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php
 
kiedy był 872 to dodałem do ps_configuration wpisy PS_OS_OUTOFSTOCK_PAID i PS_OS_OUTOFSTOCK_UNPAID
​miało pomuc nie pomogło :) (nie wiem z jakim wartościami miał bym je wprowadzić)

 

[PrestaShopException]

Property OrderHistory->id_order_state is empty
at line 909 in file classes/ObjectModel.php

904. }
905.
906. $message = $this->validateField($field, $this->$field);
907. if ($message !== true) {
908. if ($die) {
909. throw new PrestaShopException($message);
910. }
911. return $error_return ? $message : false;
912. }
913. }
914.

 

ktoś coś pomoże :) ?

 

Adres sklep www.okean.pl 

login artur

haslo Lipaar

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

No problem rozwiązany !!!!!!!!!!!!!! :)

 

Co pomogło wywalenie tabel ps_order_state ps_ order_state_lang następnie

 

dodanie ich za pomocą sql czyli:

CREATE TABLE IF NOT EXISTS `ps_order_state` (
  `id_order_state` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `invoice` tinyint(1) unsigned DEFAULT '0',
  `send_email` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `module_name` varchar(255) DEFAULT NULL,
  `color` varchar(32) DEFAULT NULL,
  `unremovable` tinyint(1) unsigned NOT NULL,
  `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `logable` tinyint(1) NOT NULL DEFAULT '0',
  `delivery` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `shipped` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `paid` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `pdf_invoice` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `pdf_delivery` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_order_state`),
  KEY `module_name` (`module_name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;

INSERT INTO `ps_order_state` (`id_order_state`, `invoice`, `send_email`, `module_name`, `color`, `unremovable`, `hidden`, `logable`, `delivery`, `shipped`, `paid`, `pdf_invoice`, `pdf_delivery`, `deleted`) VALUES
(1, 0, 1, 'cheque', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(2, 1, 1, '', '#32CD32', 1, 0, 1, 0, 0, 1, 1, 0, 0),
(3, 1, 1, '', '#FF8C00', 1, 0, 1, 1, 0, 1, 0, 0, 0),
(4, 1, 1, '', '#8A2BE2', 1, 0, 1, 1, 1, 1, 0, 0, 0),
(5, 1, 0, '', '#108510', 1, 0, 1, 1, 1, 1, 0, 0, 0),
(6, 0, 1, '', '#DC143C', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(7, 1, 1, '', '#ec2e15', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(8, 0, 1, '', '#8f0621', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(9, 1, 1, '', '#FF69B4', 1, 0, 0, 0, 0, 1, 0, 0, 0),
(10, 0, 1, 'bankwire', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(11, 0, 0, '', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(12, 1, 1, '', '#32CD32', 1, 0, 1, 0, 0, 1, 0, 0, 0),
(13, 0, 1, '', '#FF69B4', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(14, 0, 0, 'cashondelivery', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0);

 

CREATE TABLE IF NOT EXISTS `ps_order_state_lang` (
  `id_order_state` int(10) unsigned NOT NULL,
  `id_lang` int(10) unsigned NOT NULL,
  `name` varchar(64) NOT NULL,
  `template` varchar(64) NOT NULL,
  PRIMARY KEY (`id_order_state`,`id_lang`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


INSERT INTO `ps_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES
(1, 1, 'Oczekiwanie płatności czekiem', 'cheque'),
(2, 1, 'Płatność zaakceptowana', 'payment'),
(3, 1, 'Przygotowanie w toku', 'preparation'),
(4, 1, 'Wysłane', 'shipped'),
(5, 1, 'Dostarczone', ''),
(6, 1, 'Anulowane', 'order_canceled'),
(7, 1, 'Zwrot', 'refund'),
(8, 1, 'Błąd płatonści', 'payment_error'),
(9, 1, 'Brak towaru', 'outofstock'),
(10, 1, 'Oczekiwanie na płatność przelewem bankowym', 'bankwire'),
(11, 1, 'Oczekiwanie na płatność Paypal', ''),
(12, 1, 'Płatność przyjęta', 'payment'),
(13, 1, 'Brak towaru', 'outofstock'),
(14, 1, 'Awaiting cod validation', 'cashondelivery');

Następnie w tabeli ps_configuration trzeba było dodać dwa pola

INSERT INTO `ps_configuration` (`id_configuration`, `id_shop_group`, `id_shop`, `name`, `value`, `date_add`, `date_upd`) VALUES
(760, NULL, NULL, 'PS_OS_OUTOFSTOCK_PAID', '9', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(761, NULL, NULL, 'PS_OS_OUTOFSTOCK_UNPAID', '13', '0000-00-00 00:00:00', '0000-00-00 00:00:00');

Jeżeli masz ten sam problem poszukaj w bazie danych

SELECT * FROM `ps_configuration` WHERE name LIKE '%OS%'

jeżeli nie znajdziesz ps_os_outofstock_unpaid i ps_os_outofstock_paid dodaj je pamiętając o zmianie id_configurtaion z 760 i 761 na następne po ostatnim id_cofiguration

 

TEMAT DO ZAMKNIĘCIA !

 

Jak lubie prawie samemu do czegoś dojść ;) dzięki chłopaki za pomoc naprowadziliście w czym sprawa

Edited by foka666 (see edit history)
Link to comment
Share on other sites

  • 0

Wgrałem kopie bezpieczeństwa niestety była zrobiona po włączeniu ssl i zainstalowania modułów:

Kod rabatowy za rejestrację v1.7.3 - przez MyPresta.eu

Delete Orders Free v1.3 - przez MyPresta.eu

 

teraz wszystko jest jak było znaczy oczywiście jest błąd.

 

[PrestaShopException]

Property OrderHistory->id_order_state is empty
at line 872 in file classes/ObjectModel.php

867.
868.             $message = $this->validateField($field, $this->$field);
869.             if ($message !== true)
870.             {
871.                 if ($die)
872.                     throw new PrestaShopException($message);
873.                 return $error_return ? $message : false;
874.             }
875.         }
876.
877.         return true;
  • ObjectModelCore->validateFields - [line 278 - classes/ObjectModel.php]
    273.      *
    274.      * @return array All object fields
    275.      */
    276.     public function getFields()
    277.     {
    278.         $this->validateFields();
    279.         $fields = $this->formatFields(self::FORMAT_COMMON);
    280.
    281.         // For retro compatibility
    282.         if (Shop::isTableAssociated($this->def['table']))
    283.             $fields = array_merge($fields, $this->getFieldsShop());
  • ObjectModelCore->getFields - [line 486 - classes/ObjectModel.php]
    481.         }
    482.
    483.         // Database insertion
    484.         if (Shop::checkIdShopDefault($this->def['table']))
    485.             $this->id_shop_default = min($id_shop_list);
    486.         if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
    487.             return false;
    488.
    489.         // Get object id in database
    490.         $this->id = ObjectModel::$db->Insert_ID();
    491.
  • ObjectModelCore->add - [line 454 - classes/order/OrderHistory.php] - [1 Arguments]
    449.         return true;
    450.     }
    451.
    452.     public function add($autodate = true, $null_values = false)
    453.     {
    454.         if (!parent::add($autodate))
    455.             return false;
    456.
    457.         $order = new Order((int)$this->id_order);
    458.         // Update id_order_state attribute in Order
    459.         $order->current_state = $this->id_order_state;
  • OrderHistoryCore->add - [line 380 - classes/order/OrderHistory.php] - [1 Arguments]
    375.     {
    376.         if (!$context)
    377.             $context = Context::getContext();
    378.         $order = new Order($this->id_order);
    379.
    380.         if (!$this->add($autodate))
    381.             return false;
    382.
    383.         $result = Db::getInstance()->getRow('
    384.             SELECT osl.`template`, c.`lastname`, c.`firstname`, osl.`name` AS osname, c.`email`, os.`module_name`, os.`id_order_state`, os.`pdf_invoice`, os.`pdf_delivery`
    385.             FROM `'._DB_PREFIX_.'order_history` oh
  • OrderHistoryCore->addWithemail - [line 676 - classes/PaymentModule.php]
    671.                     if (Configuration::get('PS_STOCK_MANAGEMENT') && $order_detail->getStockState())
    672.                     {
    673.                         $history = new OrderHistory();
    674.                         $history->id_order = (int)$order->id;
    675.                         $history->changeIdOrderState(Configuration::get($order->valid ? 'PS_OS_OUTOFSTOCK_PAID' : 'PS_OS_OUTOFSTOCK_UNPAID'), $order, true);
    676.                         $history->addWithemail();
    677.                     }
    678.
    679.                     unset($order_detail);
    680.
    681.                     // Order is reloaded because the status just changed
  • PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments]
    54.
    55.         if (Tools::getValue('confirm'))
    56.         {
    57.             $customer = new Customer((int)$this->context->cart->id_customer);
    58.             $total = $this->context->cart->getOrderTotal(true, Cart::BOTH);
    59.             $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);
    60.             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);
    61.         }
    62.     }
    63.
    64.     /**
  • CashondeliveryValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
    166.             // setMedia MUST be called before postProcess
    167.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    168.                 $this->setMedia();
    169.
    170.             // postProcess handles ajaxProcess
    171.             $this->postProcess();
    172.
    173.             if (!empty($this->redirect_after))
    174.                 $this->redirect();
    175.
    176.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
  • ControllerCore->run - [line 373 - classes/Dispatcher.php]
    368.             // Execute hook dispatcher
    369.             if (isset($params_hook_action_dispatcher))
    370.                 Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    371.
    372.             // Running controller
    373.             $controller->run();
    374.         }
    375.         catch (PrestaShopException $e)
    376.         {
    377.             $e->displayMessage();
    378.         }
  • DispatcherCore->dispatch - [line 28 - index.php]
    23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
    24. * International Registered Trademark & Property of PrestaShop SA
    25. */
    26.
    27. require(dirname(__FILE__).'/config/config.inc.php');
    28. Dispatcher::getInstance()->dispatch();

 

 

 

 

Link to comment
Share on other sites

  • 0

Statusy systemowe masz wszystkie plus te od modułów płatności.

Błąd wywala na braku jakiegoś ID statusu w historii zamówień.

A w panelu admina możesz wejść w każde z zamówień?

 

Ten moduł do kasowania zamówień to wywal, bo to więcej problemów z tego niż pożytku.

Jeśli chcesz wyczyścić dane testowe z presty, to tylko modułem "pscleaner".

Link to comment
Share on other sites

  • 0

moduł wywalony.

problem jest taki że sklep miał być już uruchomiony ( koło 1000 produktów i prawie 6 miesiecy pracy) i oczywiście człowiek szuka jakiś wodotrysków.

Czy to że podwójnie w statusach jest brak toawru może mieć jakiś wpływ ???

Problem dotyczy tylko potwierdzenia zakupu towaru którego nie ma na stanie oczywiście niezależnie od metody płatności

Edited by foka666 (see edit history)
Link to comment
Share on other sites

  • 0

po aktualizacji u mnie wygląda to tak :/ wcześniej sprawdziłem nic nie pomaga i wszystkie moduły działają.

kopia którą posiadam jest zrobiona ręcznie przed aktualizacją. Może ktoś mi dać zrzut z tabeli (najlepiej z czystej instalacji) z v 1.6.1.1

 

ps_order_state

 

 

post-1119712-0-10844500-1445521460_thumb.jpg

Link to comment
Share on other sites

  • 0

Niestety błąd jest jedyne co się zmieniło to teraz inny błąd :/

 

[PrestaShopException]

Property OrderHistory->id_order_state is empty
at line 909 in file classes/ObjectModel.php

904. }
905.
906. $message = $this->validateField($field, $this->$field);
907. if ($message !== true) {
908. if ($die) {
909. throw new PrestaShopException($message);
910. }
911. return $error_return ? $message : false;
912. }
913. }
914.
  • ObjectModelCore->validateFields - [line 246 - classes/ObjectModel.php]
    241. * @return array All object fields
    242. * @throws PrestaShopException
    243. */
    244. public function getFields()
    245. {
    246. $this->validateFields();
    247. $fields = $this->formatFields(self::FORMAT_COMMON);
    248.
    249. // For retro compatibility
    250. if (Shop::isTableAssociated($this->def['table'])) {
    251. $fields = array_merge($fields, $this->getFieldsShop());
  • ObjectModelCore->getFields - [line 487 - classes/ObjectModel.php]
    482.
    483. // Database insertion
    484. if (Shop::checkIdShopDefault($this->def['table'])) {
    485. $this->id_shop_default = (in_array(Configuration::get('PS_SHOP_DEFAULT'), $id_shop_list) == true) ? Configuration::get('PS_SHOP_DEFAULT') : min($id_shop_list);
    486. }
    487. if (!$result = Db::getInstance()->insert($this->def['table'], $this->getFields(), $null_values)) {
    488. return false;
    489. }
    490.
    491. // Get object id in database
    492. $this->id = Db::getInstance()->Insert_ID();
  • ObjectModelCore->add - [line 482 - classes/order/OrderHistory.php] - [1 Arguments]
    477. return true;
    478. }
    479.
    480. public function add($autodate = true, $null_values = false)
    481. {
    482. if (!parent::add($autodate)) {
    483. return false;
    484. }
    485.
    486. $order = new Order((int)$this->id_order);
    487. // Update id_order_state attribute in Order
  • OrderHistoryCore->add - [line 399 - classes/order/OrderHistory.php] - [1 Arguments]
    394. */
    395. public function addWithemail($autodate = true, $template_vars = false, Context $context = null)
    396. {
    397. $order = new Order($this->id_order);
    398.
    399. if (!$this->add($autodate)) {
    400. return false;
    401. }
    402.
    403. if (!$this->sendEmail($order, $template_vars)) {
    404. return false;
  • OrderHistoryCore->addWithemail - [line 690 - classes/PaymentModule.php]
    685. // Switch to back order if needed
    686. if (Configuration::get('PS_STOCK_MANAGEMENT') && ($order_detail->getStockState() || $order_detail->product_quantity_in_stock <= 0)) {
    687. $history = new OrderHistory();
    688. $history->id_order = (int)$order->id;
    689. $history->changeIdOrderState(Configuration::get($order->valid ? 'PS_OS_OUTOFSTOCK_PAID' : 'PS_OS_OUTOFSTOCK_UNPAID'), $order, true);
    690. $history->addWithemail();
    691. }
    692.
    693. unset($order_detail);
    694.
    695. // Order is reloaded because the status just changed
  • PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments]
    54.
    55.         if (Tools::getValue('confirm'))
    56.         {
    57.             $customer = new Customer((int)$this->context->cart->id_customer);
    58.             $total = $this->context->cart->getOrderTotal(true, Cart::BOTH);
    59.             $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);
    60.             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);
    61.         }
    62.     }
    63.
    64.     /**
  • CashondeliveryValidationModuleFrontController->postProcess - [line 178 - classes/controller/Controller.php]
    173. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
    174. $this->setMedia();
    175. }
    176.
    177. // postProcess handles ajaxProcess
    178. $this->postProcess();
    179.
    180. if (!empty($this->redirect_after)) {
    181. $this->redirect();
    182. }
    183.
  • ControllerCore->run - [line 367 - classes/Dispatcher.php]
    362. if (isset($params_hook_action_dispatcher)) {
    363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    364. }
    365.
    366. // Running controller
    367. $controller->run();
    368. } catch (PrestaShopException $e) {
    369. $e->displayMessage();
    370. }
    371. }
    372.
  • DispatcherCore->dispatch - [line 28 - index.php]
    23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
    24. * International Registered Trademark & Property of PrestaShop SA
    25. */
    26.
    27. require(dirname(__FILE__).'/config/config.inc.php');
    28. Dispatcher::getInstance()->dispatch();
Link to comment
Share on other sites

  • 0

Nie przyjmuje mi tego pliku serwer prestashop.com więc skopiuj sobie i zapisz jako sql.
 

-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Czas wygenerowania: 22 Paź 2015, 17:06
-- Wersja serwera: 5.5.16
-- Wersja PHP: 5.3.8

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=[spam-filter]CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=[spam-filter]CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=[spam-filter]COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Baza danych: `maker`
--

-- --------------------------------------------------------

--
-- Struktura tabeli dla  `ps_order_state`
--

CREATE TABLE IF NOT EXISTS `ps_order_state` (
  `id_order_state` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `invoice` tinyint(1) unsigned DEFAULT '0',
  `send_email` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `module_name` varchar(255) DEFAULT NULL,
  `color` varchar(32) DEFAULT NULL,
  `unremovable` tinyint(1) unsigned NOT NULL,
  `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `logable` tinyint(1) NOT NULL DEFAULT '0',
  `delivery` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `shipped` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `paid` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `pdf_invoice` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `pdf_delivery` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_order_state`),
  KEY `module_name` (`module_name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;

--
-- Zrzut danych tabeli `ps_order_state`
--

INSERT INTO `ps_order_state` (`id_order_state`, `invoice`, `send_email`, `module_name`, `color`, `unremovable`, `hidden`, `logable`, `delivery`, `shipped`, `paid`, `pdf_invoice`, `pdf_delivery`, `deleted`) VALUES
(1, 0, 1, 'cheque', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(2, 1, 1, '', '#32CD32', 1, 0, 1, 0, 0, 1, 1, 0, 0),
(3, 1, 1, '', '#FF8C00', 1, 0, 1, 1, 0, 1, 0, 0, 0),
(4, 1, 1, '', '#8A2BE2', 1, 0, 1, 1, 1, 1, 0, 0, 0),
(5, 1, 0, '', '#108510', 1, 0, 1, 1, 1, 1, 0, 0, 0),
(6, 0, 1, '', '#DC143C', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(7, 1, 1, '', '#ec2e15', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(8, 0, 1, '', '#8f0621', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(9, 1, 1, '', '#FF69B4', 1, 0, 0, 0, 0, 1, 0, 0, 0),
(10, 0, 1, 'bankwire', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(11, 0, 0, '', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(12, 1, 1, '', '#32CD32', 1, 0, 1, 0, 0, 1, 0, 0, 0),
(13, 0, 1, '', '#FF69B4', 1, 0, 0, 0, 0, 0, 0, 0, 0),
(14, 0, 0, 'cashondelivery', '#4169E1', 1, 0, 0, 0, 0, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Struktura tabeli dla  `ps_order_state_lang`
--

CREATE TABLE IF NOT EXISTS `ps_order_state_lang` (
  `id_order_state` int(10) unsigned NOT NULL,
  `id_lang` int(10) unsigned NOT NULL,
  `name` varchar(64) NOT NULL,
  `template` varchar(64) NOT NULL,
  PRIMARY KEY (`id_order_state`,`id_lang`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Zrzut danych tabeli `ps_order_state_lang`
--

INSERT INTO `ps_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES
(1, 1, 'Oczekiwanie płatności czekiem', 'cheque'),
(2, 1, 'Płatność zaakceptowana', 'payment'),
(3, 1, 'Przygotowanie w toku', 'preparation'),
(4, 1, 'Wysłane', 'shipped'),
(5, 1, 'Dostarczone', ''),
(6, 1, 'Anulowane', 'order_canceled'),
(7, 1, 'Zwrot', 'refund'),
(8, 1, 'Błąd płatonści', 'payment_error'),
(9, 1, 'Brak towaru', 'outofstock'),
(10, 1, 'Oczekiwanie na płatność przelewem bankowym', 'bankwire'),
(11, 1, 'Oczekiwanie na płatność Paypal', ''),
(12, 1, 'Płatność przyjęta', 'payment'),
(13, 1, 'Brak towaru', 'outofstock'),
(14, 1, 'Awaiting cod validation', 'cashondelivery');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Link to comment
Share on other sites

  • 0

no niestety pomimo walki nic to nie dało :) jakieś jeszcze pomysły ??? oczywiście po błędzie 500 jak nacisnę f5 to standardowo wyjdzie

"Cart cannot be loaded or an order has already been placed using this cart"

 

Błąd dla przypomnienia tylko dla produktów których niema na stanie przy wszystkich płatnościach

 

zrzrzut z loga to

 

2015/10/22 - 19:48:32: Property OrderHistory->id_order_state is empty at line 909 in file classes/ObjectModel.php

 

jakieś pomysły ???? :) 

 

czy statuty zamówienia łączą się jeszcze zjakoąś tabelą ???? albo jak sprawdzić który dokładnie on chce statut ?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...