Add attribute discount-applied=1 to discountcode textfield when discount is applied and valid to support eg. stripe#315