Discount codes can only be applied based on registration type and not by attributes.