<p>In Craft Commerce?</p>

<blockquote>
  <p><strong>promotable</strong> (<em>true</em> or <em>false</em>)<br>
  Is this product and its variants able to be on sale or at a discount.</p>
</blockquote>

<p><a href="https://craftcommerce.com/docs/product-model#promotable" rel="nofollow noreferrer">https://craftcommerce.com/docs/product-model#promotable</a></p>

CC BY-SA 3.0
2017-10-01T21:00:48.477Z
This shows that it's a true or false, but I'm looking on how to actually use this Boolean. Do you have a link or example for using it?
Darryl Hardin
CC BY-SA 3.0
2017-10-01T22:26:58.210Z
`{% if product.promotable %} yes {% else %} no {% endif %}`?
Brad Bell
CC BY-SA 3.0
2017-09-28T07:25:52.587Z
2017-09-28T07:25:52.587Z
Digital Squid
<p>I'm sure this is somewhere in Craft documentation but I cannot find anything on it. There is that checkbox in the product area that says "Promotable". I'm assuming this is so I can reference it later in the code (which is why I'm interested in this box), but I've browsed through the documentation and found nothing about it. The lack of questions about it on here makes me assume I just missed it. Could I get an explanation or a link? Thanks!</p>

<plugin-craftcommerce><products>
How to use promotable Boolean in Craft Commerce?
# How to use promotable Boolean in Craft Commerce?

(Asked by: username_0 on 2017-09-28)

I'm sure this is somewhere in Craft documentation but I cannot find anything on it. There is that checkbox in the product area that says "Promotable". I'm assuming this is so I can reference it later in the code (which is why I'm interested in this box), but I've browsed through the documentation and found nothing about it. The lack of questions about it on here makes me assume I just missed it. Could I get an explanation or a link? Thanks!

**Tags:** plugin-craftcommerce, products


---

## 1 answers

### Answer by username_1 on 2017-09-28. Score: 2 | Accepted answer

In Craft Commerce?

> **promotable** (*true* or *false*)  
> Is this product and its variants able to be on sale or at a discount.

<https://craftcommerce.com/docs/product-model#promotable>

> **Comments:**
> **username_0**: This shows that it's a true or false, but I'm looking on how to actually use this Boolean. Do you have a link or example for using it?  
> **username_2**: `{% if product.promotable %} yes {% else %} no {% endif %}`?  

---

