<pre><code>{% for sale in variant.sales %}
  {{sale.name}}&lt;br&gt;
{% endfor %}
</code></pre>

CC BY-SA 4.0
2018-09-12T14:06:52.700Z
2018-09-12T14:06:52.700Z
Luke Holder
<p>I am still new to craft commerce and I have 5 sales, some are flat and others are percent. When i loop through my products, I am trying to get the type of the sale for the current product. How do i get that?</p>

CC BY-SA 4.0
2018-09-10T23:33:04.497Z
Is this Commerce 1 or Commerce 2?
Brad Bell
<plugin-craftcommerce>
How to get the name of a product's sale
# How to get the name of a product's sale

(Asked by: username_0 on 2018-09-10)

I am still new to craft commerce and I have 5 sales, some are flat and others are percent. When i loop through my products, I am trying to get the type of the sale for the current product. How do i get that?

**Tags:** plugin-craftcommerce
> **Comments:**
> **username_1**: Is this Commerce 1 or Commerce 2?  

---

## 1 answers

### Answer by username_2 on 2018-09-12. Score: 1

{% for sale in variant.sales %}
  {{sale.name}}
{% endfor %}


---

