Title: Coupon Code Type Conditional
Last modified: August 21, 2016

---

# Coupon Code Type Conditional

 *  [weslebsack](https://wordpress.org/support/users/weslebsack/)
 * (@weslebsack)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/coupon-code-type-conditional/)
 * Hi Everyone,
    I’m trying to write a conditional statement based on the coupon
   code type that’s been applied. For example, if someone entered a free shipping
   coupon code, it would display a message specific to getting free shipping. I 
   can’t find the hook anywhere to do this. All I can find is to check if there’s
   _any_ coupon applied, and the ability to echo the _name_ of the coupon–but not
   the ability to check the coupon _type_.
 * Can anyone please help?
 * Thanks!
 * [https://wordpress.org/plugins/wp-e-commerce/](https://wordpress.org/plugins/wp-e-commerce/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [weslebsack](https://wordpress.org/support/users/weslebsack/)
 * (@weslebsack)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/coupon-code-type-conditional/#post-4770215)
 * Just wanted to follow up–does anyone know the answer to this?

Viewing 1 replies (of 1 total)

The topic ‘Coupon Code Type Conditional’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-e-commerce_ebebeb.svg)
 * [WP eCommerce](https://wordpress.org/plugins/wp-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-e-commerce/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [coupon code](https://wordpress.org/support/topic-tag/coupon-code/)
 * [name](https://wordpress.org/support/topic-tag/name/)

 * 1 reply
 * 1 participant
 * Last reply from: [weslebsack](https://wordpress.org/support/users/weslebsack/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/coupon-code-type-conditional/#post-4770215)
 * Status: not resolved