Title: Coupon code conflict
Last modified: December 18, 2019

---

# Coupon code conflict

 *  Resolved [digitaldesign7](https://wordpress.org/support/users/digitaldesign7/)
 * (@digitaldesign7)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/coupon-code-conflict/)
 * Can you tell me if there is a way to make the code treat20 only apply to treats
   and nothing else?
 * I attempted to add this to an existing subscription which includes food as well
   as treats, the intended result would give the discount to only the freeze dried
   chicken hearts treat… It says not valid?
 * [https://prnt.sc/qcka7g](https://prnt.sc/qcka7g)
 * Maybe the easiest way to do this is to make the following logic work.
 * “If dog/cat food in cart AND treats in cart, apply 20% code to treats only”
 * Can the coupon code be used if there are other foods that aren’t treats in the
   cart? If so, how do I configure it? Thank you.

Viewing 1 replies (of 1 total)

 *  [mother.of.code](https://wordpress.org/support/users/imazed/)
 * (@imazed)
 * The Mother of Code
 * [6 years, 4 months ago](https://wordpress.org/support/topic/coupon-code-conflict/#post-12251934)
 * Hi there! That will require a bit of custom coding, or a plugin that can handle
   that kind of workflow for you. WooCommerce core doesn’t support this by default.
 * Perhaps there is someone from within the community who knows of a code snippet
   or a plugin alternative. I came up with this: [https://www.flycart.org/products/wordpress/woocommerce-discount-rules](https://www.flycart.org/products/wordpress/woocommerce-discount-rules).
   It’s a premium plugin, and I haven’t tried it – but it seems to do what you want.
 * Hope that helps. Have a wonderful day ahead!

Viewing 1 replies (of 1 total)

The topic ‘Coupon code conflict’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [mother.of.code](https://wordpress.org/support/users/imazed/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/coupon-code-conflict/#post-12251934)
 * Status: resolved