If you created a customer group that receives a discount and you also allocated
different prices based on different attributes (FAQ How to allocate different prices to an item based on a certain feature)
and now the discount is either not being considered, or else is being calculated
Solution: Insert the following code at the end of the rule under Items
Check FAQ Where to enter Item Rules
The discount will now be calculated correctly.
if ($SHOP_CUSTOMERDATA[discount]&amp;gt; 0)