Fix cart rule feature flag refresh

This commit is contained in:
Amit sharma
2026-04-04 17:15:58 +05:30
parent 4f75a37729
commit e172cb5e4f

View File

@@ -1477,10 +1477,7 @@ class CartRuleCore extends ObjectModel
*/
public static function isFeatureActive()
{
static $is_feature_active = null;
if ($is_feature_active === null || $is_feature_active === false) {
$is_feature_active = (bool)Configuration::get('PS_CART_RULE_FEATURE_ACTIVE');
}
$is_feature_active = (bool)Configuration::get('PS_CART_RULE_FEATURE_ACTIVE');
return $is_feature_active;
}