Property Cart->id_currency is empty
at line 917 in file classes/ObjectModel.php
912. }
913.
914. $message = $this->validateField($field, $this->$field);
915. if ($message !== true) {
916. if ($die) {
917. throw new PrestaShopException($message);
918. }
919. return $error_return ? $message : false;
920. }
921. }
922.
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]
357. /* id_carrier is not defined in database before choosing a carrier, set it to a default one to match a potential cart _rule */
358. if (empty($this->context->cart->id_carrier)) {
359. $checked = $this->context->cart->simulateCarrierSelectedOutput();
360. $checked = ((int)Cart::desintifier($checked));
361. $this->context->cart->id_carrier = $checked;
362. $this->context->cart->update();
363. CartRule::autoRemoveFromCart($this->context);
364. CartRule::autoAddToCart($this->context);
365. }
366.
367. // SHOPPING CART
186. $this->context->smarty->assign('register_customer', $this->only_register);
187. }
188.
189. public function initContent()
190. {
191. parent::initContent();
192.
193. $language = $this->context->language;
194. $smarty = $this->context->smarty;
195.
196. if (!$this->is_active_module) {
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: 2018-01-22 13:12:02
103. * version: 4.09
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();