Property Cart->id_lang is empty
at line 912 in file classes/ObjectModel.php
907. }
908.
909. $message = $this->validateField($field, $this->$field);
910. if ($message !== true) {
911. if ($die) {
912. throw new PrestaShopException($message);
913. }
914. return $error_return ? $message : false;
915. }
916. }
917.
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());
647.
648. if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default) {
649. $this->id_shop_default = (in_array(Configuration::get('PS_SHOP_DEFAULT'), $id_shop_list) == true) ? Configuration::get('PS_SHOP_DEFAULT') : min($id_shop_list);
650. }
651. // Database update
652. if (!$result = Db::getInstance()->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values)) {
653. return false;
654. }
655.
656. // Database insertion for multishop fields related to the object
657. if (Shop::isTableAssociated($this->def['table'])) {
208. if (isset(self::$_totalWeight[$this->id])) {
209. unset(self::$_totalWeight[$this->id]);
210. }
211.
212. $this->_products = null;
213. $return = parent::update($null_values);
214. Hook::exec('actionCartSave');
215.
216. return $return;
217. }
218.
534. {
535. if ($checked == null)
536. $checked = $this->context->cart->simulateCarrierSelectedOutput();
537. $checked = ((int)Cart::desintifier($checked));
538. $this->context->cart->id_carrier = $checked;
539. $this->context->cart->update();
540. CartRule::autoRemoveFromCart($this->context);
541. CartRule::autoAddToCart($this->context);
542. }
543. /*
544. * module: onepagecheckout
577. }
578. }
579. }
580.
581. $this->origInitContent();
582. $this->_setCarrierSelection();
583. $this->_assignSummaryInformations();
584. $this->_assignWrappingAndTOS();
585. $selectedCountry = (int)(Configuration::get('PS_COUNTRY_DEFAULT'));
586. if (Configuration::get('PS_RESTRICT_DELIVERED_COUNTRIES'))
587. $countries = Carrier::getDeliveredCountries($this->context->language->id, true, true);
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
330. try
331. {
332. $controller = Controller::getController($controller_class);
333. if (isset($params_hook_action_dispatcher))
334. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
335. $controller->run();
336. if ($this->_isPageCacheActive())
337. {
338. PageCache::displayStats(false, $pre_display_html);
339. }
340. }
102. * date: 2019-05-09 03:54:13
103. * version: 4.44
104. */
105. public function dispatch() {
106. if (Tools::version_compare(_PS_VERSION_,'1.6','>=')) {
107. $this->dispatch_16();
108. } else {
109. $this->dispatch_15();
110. }
111. }
112. /*
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();