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

@@ -400,8 +400,10 @@ class AdminPPreferencesControllerCore extends AdminController
'hint' => $this->l('Enable to display Amenities filter.'),
'validation' => 'isBool',
'cast' => 'intval',
'disabled' => (bool) !Configuration::get('PS_FEATURE_FEATURE_ACTIVE'),
'required' => false,
'type' => 'bool',
'desc' => (bool) !Configuration::get('PS_FEATURE_FEATURE_ACTIVE') ? sprintf($this->l('The feature Features/Amenities has been disabled. You can enable it from %s page.'), '<a href="'.$this->context->link->getAdminLink('AdminPerformance').'#fieldset_2_2" target="_blank">'.$this->l('Advanced Parameters > Performance').'</a>') : '',
),
'SHOW_PRICE_FILTER' => array(
'title' => $this->l('Show Price filter'),