Write down eligible subtotals
Keep each person's discounted items together and total them before the promotion. Exclude items that the promotion skips from these subtotal cells and keep their prices aside. If the checkout already shows the discount for each line, use those amounts to avoid approximating its allocation.
Multiply the discount by each person's share
If three eligible subtotals are 25, 40 and 55, they sum to 120. A 12-unit discount split by subtotal gives 2.50, 4 and 5.50. Subtract these from the eligible subtotals and then add back the excluded lines.
Reconcile one cent at a time
Record both the unrounded allocation and the amount each person pays. If rounding leaves a difference, assign the leftover cent to the row with the biggest difference between its unrounded and rounded share. If somebody removes an item, recheck the discount threshold before reusing the split.