Title: COD payment option &amp; coupon
Last modified: November 28, 2018

---

# COD payment option & coupon

 *  Resolved [masurana](https://wordpress.org/support/users/masurana/)
 * (@masurana)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cod-payment-option-coupon/)
 * Sir,
 *  I want to disable COD payment option if customer used Coupon Code.
 * Now coupon amount is deducted from the ‘Total’. I think it should be deducted
   from the ‘Sub Total’. Because of this way deduction, calculate wrong total amount
   in “Advance or part payment options”
 * Can it possible? Please help me.
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcod-payment-option-coupon%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cod-payment-option-coupon/#post-10934139)
 * Hey there,
 * > I want to disable COD payment option if customer used Coupon Code
 * You’ll need some custom code to make that happen – here’s a good place to get
   started:
    [https://stackoverflow.com/questions/52120053/remove-some-payment-gateways-if-any-coupon-code-is-applied-in-woocommerce](https://stackoverflow.com/questions/52120053/remove-some-payment-gateways-if-any-coupon-code-is-applied-in-woocommerce)
 * > Now coupon amount is deducted from the ‘Total’. I think it should be deducted
   > from the ‘Sub Total’. Because of this way deduction, calculate wrong total 
   > amount in “Advance or part payment options”
 * That’ll actually be down to how your part payment plugin is working. Our Deposits
   plugin uses the subtotal, for example:
    [https://www.woocommerce.com/products/woocommerce-deposits/](https://www.woocommerce.com/products/woocommerce-deposits/)
 * If it’s not working correctly for you, I recommend reaching out to the developer
   of that specific plugin.
 *  [Kenin](https://wordpress.org/support/users/kbassart/)
 * (@kbassart)
 * Automattic Happiness Engineer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cod-payment-option-coupon/#post-10960551)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘COD payment option & coupon’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [COD](https://wordpress.org/support/topic-tag/cod/)
 * [Deduction](https://wordpress.org/support/topic-tag/deduction/)
 * [sub-total](https://wordpress.org/support/topic-tag/sub-total/)

 * 2 replies
 * 3 participants
 * Last reply from: [Kenin](https://wordpress.org/support/users/kbassart/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/cod-payment-option-coupon/#post-10960551)
 * Status: resolved