0

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!

2

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

  • 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 Oct 1 '17 at 21:00
  • 2
    {% if product.promotable %} yes {% else %} no {% endif %}? – Brad Bell Oct 1 '17 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.