* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ if (!defined('_PS_VERSION_')) { exit; } function upgrade_module_4_0_0($object) { $res = true; if (!Configuration::hasKey('PRODUCT_COMMENTS_COMMENTS_PER_PAGE')) { $res &= (bool) Configuration::updateValue('PRODUCT_COMMENTS_COMMENTS_PER_PAGE', 5); } if (!Configuration::hasKey('PRODUCT_COMMENTS_USEFULNESS')) { $res &= (bool) Configuration::updateValue('PRODUCT_COMMENTS_USEFULNESS', 1); } $res &= (bool) $object->unregisterHook('displayRightColumnProduct'); $res &= (bool) $object->registerHook('displayProductAdditionalInfo'); $res &= (bool) $object->registerHook('displayFooterProduct'); return (bool) $res; }