* @copyright PayPal * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ if (!defined('_PS_VERSION_')) { exit; } use PaypalPPBTlib\Install\ModuleInstaller; /** * @param $module PayPal * @return bool */ function upgrade_module_5_4_0($module) { if (Shop::isFeatureActive()) { foreach (Shop::getShops() as $shop) { Configuration::updateValue( 'PAYPAL_SHOW_INSTALLMENT_POPUP', 1, false, null, (int)$shop['id_shop'] ); } } else { Configuration::updateValue('PAYPAL_SHOW_INSTALLMENT_POPUP', 1); } $module->resetHooks(); $installer = new ModuleInstaller($module); $installer->uninstallModuleAdminControllers(); $installer->installAdminControllers(); $module->hookActionLocalizationPageSave([]); return true; }