Discount code issues

Discount codes weren't being applied because the `data-total` attribute
was not being updated when the discount code was applied or removed.