/** * Runs all the methods to store the various settings from the shop * admin zone. * * Note that not all of the methods report their success or failure back * here (yet), so you should not rely on the result of this method. * @return mixed True on success, false on failure, * null if no change is detected. * @static */ static function storeSettings() { global $_CORELANG; self::$success = true; self::$changed = false; self::storeGeneral(); self::storeCurrencies(); self::storePayments(); self::storeShipping(); self::storeCountries(); $result = Zones::store_from_post(); if (isset($result)) { self::$changed = true; self::$success &= $result; } self::storeVat(); if (\Cx\Core\Setting\Controller\Setting::changed()) { self::$changed = true; if (\Cx\Core\Setting\Controller\Setting::updateAll() === false) { return false; } } if (self::$changed) { return self::$success ? \Message::ok($_CORELANG['TXT_CORE_SETTING_STORED_SUCCESSFULLY']) : \Message::error($_CORELANG['TXT_CORE_SETTING_ERROR_STORING']); } return null; }