haveCartRuleToday(); } else return true; } /* * module: ets_promotion * date: 2023-11-25 09:55:38 * version: 1.1.9 */ public static function getCustomerCartRules($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null, $free_shipping_only = false, $highlight_only = false) { $result = parent::getCustomerCartRules($id_lang,$id_customer,$active,$includeGeneric,$inStock,$cart,$free_shipping_only,$highlight_only); Module::getInstanceByName('ets_promotion')->getCustomerCartRules($result,$id_customer,$highlight_only); return $result; } /* * module: ets_promotion * date: 2023-11-25 09:55:38 * version: 1.1.9 */ public function delete() { $r = parent::delete(); if(!Configuration::getGlobalValue('PS_CART_RULE_FEATURE_ACTIVE')) { Configuration::updateGlobalValue( 'PS_CART_RULE_FEATURE_ACTIVE', CartRule::isCurrentlyUsed('cart_rule', true) || Ets_pr_rule::isCurrentlyUsed('ets_pr_rule', true) ); } return $r; } }