Update working of options Features and Customer Groups

This commit is contained in:
Abhishek Kumar
2023-09-20 19:10:11 +05:30
parent c4d30a80ee
commit dab830fcce
5 changed files with 33 additions and 23 deletions

View File

@@ -212,27 +212,27 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'hidden',
'name' => 'features_detachables_up'
),
array(
'type' => 'switch',
'label' => $this->l('Combinations'),
'name' => 'combination',
'is_bool' => true,
'disabled' => Combination::isCurrentlyUsed(),
'values' => array(
array(
'id' => 'combination_1',
'value' => 1,
'label' => $this->l('Yes'),
),
array(
'id' => 'combination_0',
'value' => 0,
'label' => $this->l('No')
)
),
'hint' => $this->l('Choose "No" to disable Product Combinations.'),
'desc' => Combination::isCurrentlyUsed() ? $this->l('You cannot set this parameter to No when combinations are already used by some of your products') : null
),
// array(
// 'type' => 'switch',
// 'label' => $this->l('Combinations'),
// 'name' => 'combination',
// 'is_bool' => true,
// 'disabled' => Combination::isCurrentlyUsed(),
// 'values' => array(
// array(
// 'id' => 'combination_1',
// 'value' => 1,
// 'label' => $this->l('Yes'),
// ),
// array(
// 'id' => 'combination_0',
// 'value' => 0,
// 'label' => $this->l('No')
// )
// ),
// 'hint' => $this->l('Choose "No" to disable Product Combinations.'),
// 'desc' => Combination::isCurrentlyUsed() ? $this->l('You cannot set this parameter to No when combinations are already used by some of your products') : null
// ),
array(
'type' => 'switch',
'label' => $this->l('Features'),