37 lines
702 B
PHP
37 lines
702 B
PHP
<?php
|
|
|
|
use x13gpsr\Config\ConfigKeys;
|
|
|
|
if (!defined('_PS_VERSION_')) {
|
|
exit;
|
|
}
|
|
|
|
require_once _PS_MODULE_DIR_ . '/x13gpsr/x13gpsr.ion.php';
|
|
|
|
function upgrade_module_1_1_0($module)
|
|
{
|
|
Configuration::updateGlobalValue(
|
|
ConfigKeys::MANUFACTURER_NO_BRAND,
|
|
0
|
|
);
|
|
|
|
Configuration::updateGlobalValue(
|
|
ConfigKeys::DISPLAY_ADDRESS_LABEL,
|
|
0
|
|
);
|
|
|
|
Configuration::updateGlobalValue(
|
|
ConfigKeys::LAYOUT,
|
|
'default'
|
|
);
|
|
|
|
$module->refreshTabs();
|
|
|
|
if (version_compare(_PS_VERSION_, '1.7', '<')) {
|
|
$module->registerHook('displayLeftColumnProduct');
|
|
$module->registerHook('displayRightColumnProduct');
|
|
}
|
|
|
|
return true;
|
|
}
|