Use WPForms and the Coupons addon to easily integrate coupons into your order forms.