Answers.Body: <pre><code>{% for sale in variant.sales %}
    {{sale.name}}&lt;br&gt;
  {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-12T14:06:52.700Z
Answers.LastActivityDate: 2018-09-12T14:06:52.700Z
Answers.UserDisplayName: Luke Holder
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-10T23:33:04.497Z
Comments.Text: Is this Commerce 1 or Commerce 2?
Comments.UserDisplayName: Brad Bell
Tags: <plugin-craftcommerce>
Title: How to get the name of a product's sale
ThreadText: # 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}}<br>
  {% endfor %}
  
  ```
  
  
  ---
  
  