Property Cart->id_currency is empty
at line 837 in file classes/ObjectModel.php
831.
832. $message = $this->validateField($field, $this->$field);
833. if ($message !== true)
834. {
835. if ($die)
836. throw new PrestaShopException($message);
837. return $error_return ? $message : false;
838. }
839. }
840.
841. return true;
249. *
250. * @return array All object fields
251. */
252. public function getFields()
253. {
254. $this->validateFields();
255. $fields = $this->formatFields(self::FORMAT_COMMON);
256.
257. // For retro compatibility
258. if (Shop::isTableAssociated($this->def['table']))
259. $fields = array_merge($fields, $this->getFieldsShop());
590. $id_shop_list = $this->id_shop_list;
591.
592. if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default)
593. $this->id_shop_default = min($id_shop_list);
594. // Database update
595. if (!$result = ObjectModel::$db->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values))
596. return false;
597.
598. // Database insertion for multishop fields related to the object
599. if (Shop::isTableAssociated($this->def['table']))
600. {
193.
194. if (isset(self::$_totalWeight[$this->id]))
195. unset(self::$_totalWeight[$this->id]);
196.
197. $this->_products = null;
198. $return = parent::update();
199. Hook::exec('actionCartSave');
200.
201. return $return;
202. }
203.
338. if (empty($this->context->cart->id_carrier))
339. {
340. $checked = $this->context->cart->simulateCarrierSelectedOutput();
341. $checked = ((int)Cart::desintifier($checked));
342. $this->context->cart->id_carrier = $checked;
343. $this->context->cart->update();
344. CartRule::autoRemoveFromCart($this->context);
345. CartRule::autoAddToCart($this->context);
346. }
347.
348. // SHOPPING CART
174.
175. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
176. $this->initHeader();
177.
178. if ($this->viewAccess())
179. $this->initContent();
180. else
181. $this->errors[] = Tools::displayError('Access denied.');
182.
183. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
184. $this->initFooter();
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. }
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();