Set discount correctly in case of autodiscount
Steps to reproduce -
-
Create a discount code for one event (say
test event
) with Contact typeIndividual
in Automatic discount panel (so that this applies to all individuals registering to this event). -
Create another discount code for all events with any discount amount.
-
Navigate to test event page - Notice that discount 1 has applied automatically.
-
Complete the registration process.
Open cividiscount_track
table and check that item id recorded for the participant is the id of discount created at step 2. It should contain the value of discount 1.