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]
4560. || ($this->config_vars['OPC_REDIRECT_DIRECTLY_TO_OPC'] && Tools::getIsset('rc'))
4561. ) {
4562. if ($this->context->cart->nbProducts() <= 0) {
4563. $this->context->cart->id_address_delivery = 0;
4564. $this->context->cart->id_address_invoice = 0;
4565. $this->context->cart->update();
4566. $this->context->cart->setDeliveryOption(null);
4567. }
4568.
4569. //compatibilidad con modulo nacex
4570. $module_nacex = $this->core->isModuleActive('nacex');
586. }
587. }
588.
589. // Immediately return the result if we do not log performances
590. if (!Module::$_log_modules_perfs) {
591. return $module->{$method}($params);
592. }
593.
594. // Store time and memory before and after hook call and save the result in the database
595. $time_start = microtime(true);
596. $memory_start = memory_get_usage(true);
543.
544. // Call hook method
545. if ($hook_callable) {
546. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
547. } elseif ($hook_retro_callable) {
548. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
549. }
550.
551. // Live edit
552. if (!$array_return && $array['live_edit'] && Tools::isSubmit('live_edit') && Tools::getValue('ad')
553. && Tools::getValue('liveToken') == Tools::getAdminToken('AdminModulesPositions'
Argument [0] Argument [1] hookHeader Argument [2]
574.
575. if (!$this->useMobileTheme()) {
576. // These hooks aren't used for the mobile theme.
577. // Needed hooks are called in the tpl files.
578. $this->context->smarty->assign(array(
579. 'HOOK_HEADER' => Hook::exec('displayHeader'),
580. 'HOOK_TOP' => Hook::exec('displayTop'),
581. 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
582. 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
583. ));
584. } else {
Argument [0] displayHeader
350. * Assign template vars related to page content
351. * @see FrontController::initContent()
352. */
353. public function initContent()
354. {
355. parent::initContent();
356.
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));
69. * date: 2020-02-23 10:47:41
70. * version: 2.7.3
71. */
72. public function initContent()
73. {
74. parent::initContent();
75. if (!$this->is_active_module) {
76. return;
77. }
78. $this->opc->initContentControllerOPC($this);
79. }
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();