Answers.Body: <p>I was able to reproduce the issue using the discount code configuration you provide in your screenshots and it appears that it has been reported to the developers of CiviDiscount <a href="https://github.com/civicrm/org.civicrm.module.cividiscount/issues/202" rel="nofollow noreferrer">here</a>. So, bottom line is, your codes are set up correctly, but currently only one autodiscount can be applied per contribution or event page.</p>
  <p>You may wish to offer funding in the same thread listed above if resolution of this issue is of high priority to you.</p>
  <p>Hope this helps,
  Tamar</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T22:54:36.903Z
Answers.Text: The link doesn't appear to work?
Answers.UserDisplayName: Jenni Simonis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T23:03:51.407Z
Answers.Text: @JenniSimonis I fixed the link!
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T22:34:28.863Z
Answers.LastActivityDate: 2018-11-19T23:03:41.337Z
Answers.LastEditDate: 2020-06-17T09:00:50.810Z
Answers.UserDisplayName: Tamar Meir - Cividesk
Answers.Body: <p>I've raised a PR on cividiscount extension <a href="https://github.com/civicrm/org.civicrm.module.cividiscount/pull/210" rel="nofollow noreferrer">https://github.com/civicrm/org.civicrm.module.cividiscount/pull/210</a> which fixes the similar use case. More details about the steps to replicate, etc in the PR description.</p>
  
  <p>@jenni-simonis - Can you pls verify if it works for your case as well?</p>
  
  <p>Thanks.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-20T21:27:42.130Z
Answers.Text: I made the change, cleared the Drupal cache and the Civi cache, but nothing changed on my renewal page. Am I missing clearing something somewhere?
Answers.UserDisplayName: Jenni Simonis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-25T21:03:29.207Z
Answers.Text: Well, I would be happy to verify this, but have never heard back. I've posted both here and at the link you gave.
Answers.UserDisplayName: Jenni Simonis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-13T19:53:53.363Z
Answers.Text: @jitendra-fuzion, this fixed the issue where two autodiscounts can now be applied to the same event type (where the discount is driven by the price field); this does NOT fix a situation where multiple discounts need to be applied to the same price set (on the same event registration page) - e.g. I have an event where someone can buy a 1-day $20 ticket or 2-day $40 ticket, and I want two autodiscounts for members: $10 off for the 1-day option and $20 off for the 2-day option; this used to work (last time we used this successfully was in June 2018)
Answers.UserDisplayName: MtnPavlas
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-13T20:57:37.340Z
Answers.Text: #215 (https://github.com/civicrm/org.civicrm.module.cividiscount/pull/215) solves it but I didn't regression test
Answers.UserDisplayName: MtnPavlas
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-20T13:29:53.650Z
Answers.LastActivityDate: 2018-11-20T13:29:53.650Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>So we have three membership levels - a 1 year, 2 year, and 3 year. The discount level for 1 year and 2 year are the same, but it is higher for the 3 year. I have the discounts for them set up the same way, except one applies to 1 and 2 year and the other applies to 3 year. However, only one is showing on our membership page. Is it a problem of there only being one allowed?</p>
  
  <p>The point of the discount is that it automatically applies if the person still has a current membership. If it has expired, they are charged the full price.</p>
  
  <p>The user that I am logged in as when looking at this membership page has the 3 year membership type.</p>
  
  <p>Here's what I get on the membership renewal page, the setup for the 1 &amp; 2 year discount, and the setup for the 3 year discount:</p>
  
  <p><a href="https://i.sstatic.net/FsO8b.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FsO8b.jpg" alt="Here&#39;s what I get on the membership renewal page: "></a></p>
  
  <p><a href="https://i.sstatic.net/tdaYR.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/tdaYR.jpg" alt="Here&#39;s the setup for the 1 &amp; 2 year memberships:"></a></p>
  
  <p><a href="https://i.sstatic.net/xlrak.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xlrak.jpg" alt="Here&#39;s the setup for the 3 year membership:"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-09T20:29:09.747Z
Comments.Text: I'm assuming the 3-year discount is set up the same way as the 1- and 2-year ones?  Any chance you could provide the screenshot of the discount config for the 3-year?
Comments.UserDisplayName: Lesley Carter - BackOffice
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-10T01:04:38.677Z
Comments.Text: Yes, as far as I can tell it is. I've posted screenshots.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-12T13:27:50.810Z
Comments.Text: And what membership type does the user you're showing on the initial screenshot have?
Comments.UserDisplayName: Lesley Carter - BackOffice
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-12T15:15:22.243Z
Comments.Text: Full Member - 3 Years
Comments.UserDisplayName: Jenni Simonis
Tags: <civimember><cividiscount>
Title: Multiple automatic discounts for memberships
ThreadText: # Multiple automatic discounts for memberships
  
  (Asked by: username_0 on 2018-11-08)
  
  So we have three membership levels - a 1 year, 2 year, and 3 year. The discount level for 1 year and 2 year are the same, but it is higher for the 3 year. I have the discounts for them set up the same way, except one applies to 1 and 2 year and the other applies to 3 year. However, only one is showing on our membership page. Is it a problem of there only being one allowed?
  
  The point of the discount is that it automatically applies if the person still has a current membership. If it has expired, they are charged the full price.
  
  The user that I am logged in as when looking at this membership page has the 3 year membership type.
  
  Here's what I get on the membership renewal page, the setup for the 1 & 2 year discount, and the setup for the 3 year discount:
  
  [![Here's what I get on the membership renewal page: ](https://i.sstatic.net/FsO8b.jpg)](https://i.sstatic.net/FsO8b.jpg)
  
  [![Here's the setup for the 1 & 2 year memberships:](https://i.sstatic.net/tdaYR.jpg)](https://i.sstatic.net/tdaYR.jpg)
  
  [![Here's the setup for the 3 year membership:](https://i.sstatic.net/xlrak.jpg)](https://i.sstatic.net/xlrak.jpg)
  
  **Tags:** civimember, cividiscount
  
  > **Comments:**
  > **username_1**: I'm assuming the 3-year discount is set up the same way as the 1- and 2-year ones?  Any chance you could provide the screenshot of the discount config for the 3-year?  
  > **username_0**: Yes, as far as I can tell it is. I've posted screenshots.  
  > **username_1**: And what membership type does the user you're showing on the initial screenshot have?  
  > **username_0**: Full Member - 3 Years  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-11-19. Score: 2
  
  I was able to reproduce the issue using the discount code configuration you provide in your screenshots and it appears that it has been reported to the developers of CiviDiscount [here](https://github.com/civicrm/org.civicrm.module.cividiscount/issues/202). So, bottom line is, your codes are set up correctly, but currently only one autodiscount can be applied per contribution or event page.
  
  You may wish to offer funding in the same thread listed above if resolution of this issue is of high priority to you.
  
  Hope this helps,
  username_2
  
  > **Comments:**
  > **username_0**: The link doesn't appear to work?  
  > **username_3**: @username_0 I fixed the link!  
  
  ---
  
  ### Answer by username_4 on 2018-11-20. Score: 1
  
  I've raised a PR on cividiscount extension <https://github.com/civicrm/org.civicrm.module.cividiscount/pull/210> which fixes the similar use case. More details about the steps to replicate, etc in the PR description.
  
  @username_0-username_0 - Can you pls verify if it works for your case as well?
  
  Thanks.
  
  > **Comments:**
  > **username_0**: I made the change, cleared the Drupal cache and the Civi cache, but nothing changed on my renewal page. Am I missing clearing something somewhere?  
  > **username_0**: Well, I would be happy to verify this, but have never heard back. I've posted both here and at the link you gave.  
  > **username_5**: @username_4, this fixed the issue where two autodiscounts can now be applied to the same event type (where the discount is driven by the price field); this does NOT fix a situation where multiple discounts need to be applied to the same price set (on the same event registration page) - e.g. I have an event where someone can buy a 1-day $20 ticket or 2-day $40 ticket, and I want two autodiscounts for members: $10 off for the 1-day option and $20 off for the 2-day option; this used to work (last time we used this successfully was in June 2018)  
  > **username_5**: #215 (https://github.com/civicrm/org.civicrm.module.cividiscount/pull/215) solves it but I didn't regression test  
  
  ---
  
  