Property Cart->id_currency 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;
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());
626. $id_shop_list = $this->id_shop_list;
627.
628. if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default)
629. $this->id_shop_default = min($id_shop_list);
630. // Database update
631. if (!$result = ObjectModel::$db->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values))
632. return false;
633.
634. // Database insertion for multishop fields related to the object
635. if (Shop::isTableAssociated($this->def['table']))
636. {
202.
203. if (isset(self::$_totalWeight[$this->id]))
204. unset(self::$_totalWeight[$this->id]);
205.
206. $this->_products = null;
207. $return = parent::update($null_values);
208. Hook::exec('actionCartSave');
209.
210. return $return;
211. }
212.
Argument [0]
301. if (empty($this->context->cart->id_carrier))
302. {
303. $checked = $this->context->cart->simulateCarrierSelectedOutput();
304. $checked = ((int)Cart::desintifier($checked));
305. $this->context->cart->id_carrier = $checked;
306. $this->context->cart->update();
307. CartRule::autoRemoveFromCart($this->context);
308. CartRule::autoAddToCart($this->context);
309. }
310.
311. // SHOPPING CART
175.
176. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
177. $this->initHeader();
178.
179. if ($this->viewAccess())
180. $this->initContent();
181. else
182. $this->errors[] = Tools::displayError('Access denied.');
183.
184. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
185. $this->initFooter();
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. }
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();