[*] BO: Add an option to choose to not import the behavior of taxes displaying for the groups in localization pack import
This commit is contained in:
@@ -52,6 +52,7 @@ class LocalizationPackCore
|
||||
$res &= $this->installConfiguration($xml);
|
||||
$res &= $this->installModules($xml);
|
||||
$res &= $this->_installLanguages($xml, $install_mode);
|
||||
$res &= $this->updateDefaultGroupDisplayMethod($xml);
|
||||
|
||||
if ($res && isset($this->iso_code_lang))
|
||||
{
|
||||
@@ -240,7 +241,7 @@ class LocalizationPackCore
|
||||
}
|
||||
}
|
||||
}
|
||||
return $this->updateDefaultGroupDisplayMethod($xml);
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function _installCurrencies($xml, $install_mode = false)
|
||||
@@ -388,6 +389,11 @@ class LocalizationPackCore
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function _installGroups($xml)
|
||||
{
|
||||
return $this->updateDefaultGroupDisplayMethod($xml);
|
||||
}
|
||||
|
||||
protected function updateDefaultGroupDisplayMethod($xml)
|
||||
{
|
||||
|
||||
@@ -930,7 +930,7 @@ class ValidateCore
|
||||
*/
|
||||
public static function isLocalizationPackSelection($data)
|
||||
{
|
||||
return ($data === 'states' || $data === 'taxes' || $data === 'currencies' || $data === 'languages' || $data === 'units');
|
||||
return in_array((string)$data, array('states', 'taxes', 'currencies', 'languages', 'units', 'groups'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -236,6 +236,11 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
'id' => 'units',
|
||||
'val' => 'units',
|
||||
'name' => $this->l('Units (e.g. weight, volume, distance)')
|
||||
),
|
||||
array(
|
||||
'id' => 'groups',
|
||||
'val' => 'groups',
|
||||
'name' => $this->l('Change the behavior of the taxes display for the groups')
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user