title: Custom Coupon type woocommerce wordpress
body: <p>I need to create custom coupon type. Because i had custom calculation for custom coupon. Anyone out there help me.</p>
  
  <p>Coupon calculation:
  the cart has one product and value is 5000, then custom coupon code applied. The cart total need to change 2000. Similarly the cart has 2 product and value is 7000. If the custom coupon code applied, then cart total need to be 4000. </p>
  
  <p>So the coupon need to make the cart total as flat 2000 for one product</p>