Property Cart->id_currency is empty
at line 915 in file classes/ObjectModel.php
910. }
911.
912. $message = $this->validateField($field, $this->$field);
913. if ($message !== true) {
914. if ($die) {
915. throw new PrestaShopException($message);
916. }
917. return $error_return ? $message : false;
918. }
919. }
920.
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.
Argument [0]
559. if (empty($this->context->cart->id_carrier))
560. {
561. $checked = $this->context->cart->simulateCarrierSelectedOutput();
562. $checked = ((int)Cart::desintifier($checked));
563. $this->context->cart->id_carrier = $checked;
564. $this->context->cart->update();
565. CartRule::autoRemoveFromCart($this->context);
566. CartRule::autoAddToCart($this->context);
567. }
568. $this->_assignSummaryInformations();
569. $this->_assignWrappingAndTOS();
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))) {
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.
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();