Added feature to apply rules only to prices, special prices or both