Body: <p>I'm having a problem where only one autodiscount is being applied using the CiviDiscount extension.</p>
  <p>I'll show my settings to see if anyone can point out a misconfiguration...</p>
  <p><strong>The Price Field:</strong></p>
  <p><a href="https://i.sstatic.net/u7iGb.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/u7iGb.png" alt="enter image description here" /></a>
  <a href="https://i.sstatic.net/tzkRR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/tzkRR.png" alt="enter image description here" /></a></p>
  <p><strong>Price Options for the Price Field:</strong></p>
  <p><a href="https://i.sstatic.net/POkpp.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/POkpp.png" alt="enter image description here" /></a></p>
  <p>** The Discount Codes (1 for each radio price option) **</p>
  <p><a href="https://i.sstatic.net/dL1Er.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dL1Er.png" alt="enter image description here" /></a></p>
  <p><strong>Settings for Price Option &quot;One Day Pass&quot;</strong>:
  <em>(this one does not work)</em></p>
  <p><a href="https://i.sstatic.net/PUhPh.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/PUhPh.png" alt="enter image description here" /></a>
  <a href="https://i.sstatic.net/eVv41.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/eVv41.png" alt="enter image description here" /></a></p>
  <p><strong>Settings for Price Options &quot;Two Day Pass&quot;</strong>:
  <em>(this one works)</em></p>
  <p><a href="https://i.sstatic.net/9d1oP.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9d1oP.png" alt="enter image description here" /></a>
  <a href="https://i.sstatic.net/66ryB.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/66ryB.png" alt="enter image description here" /></a></p>
  <p><strong>This is the result of those settings</strong></p>
  <p><a href="https://i.sstatic.net/yr4ze.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yr4ze.png" alt="enter image description here" /></a></p>
  <p><strong>I've done some research on the bug...</strong></p>
  <p>-The problem originated here:</p>
  <p><a href="https://github.com/civicrm/org.civicrm.module.cividiscount/issues/145" rel="nofollow noreferrer">https://github.com/civicrm/org.civicrm.module.cividiscount/issues/145</a></p>
  <p>-And seems to have resurfaced recently:</p>
  <p><a href="https://civicrm.stackexchange.com/questions/41461/only-one-auto-discount-applying-when-using-multiple-discounts-based-on-price-opt">only one auto discount applying when using multiple discounts based on price option</a></p>
  <p>I came across this in the code that references the linked git bug report, but <code>$this-&gt;entity_discounts</code> seems to populate both discounts correctly when logging out the array:</p>
  <p><a href="https://i.sstatic.net/zMftS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zMftS.png" alt="enter image description here" /></a></p>
  <p>I'm starting to think that the issue does not exist here anymore, but now exists in <code>cividiscount_civicrm_buildForm</code> or <code>cividiscount_civicrm_buildAmount</code> in <code>cividiscount.php</code> where things are getting built and displayed to the user</p>
  <p>Has anyone else come across this bug? Is it a bug? If so, can someone post this bug on their Git Repo? I can't seem to be able to because their repo is &quot;Archived&quot;</p>
  <p>Any help would be welcomed. Thanks</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-19T19:59:24.867Z
Comments.Text: It says at https://github.com/civicrm/org.civicrm.module.cividiscount "This project has moved to CiviCRM's Gitlab. lab.civicrm.org/extensions/cividiscount/" . Does that help?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-19T22:09:29.747Z
Comments.Text: @petednz Thanks, looks like I can post an issue there if it already isn't raised.
Comments.UserDisplayName: Kurt Leadley
Tags: <cividiscount>
Title: Only One Autodiscount is being applied in my event. (CiviDiscount extention)
ThreadText: # Only One Autodiscount is being applied in my event. (CiviDiscount extention)
  
  (Asked by: username_0 on 2022-05-19)
  
  I'm having a problem where only one autodiscount is being applied using the CiviDiscount extension.
  
  I'll show my settings to see if anyone can point out a misconfiguration...
  
  **The Price Field:**
  
  [![enter image description here](https://i.sstatic.net/u7iGb.png)](https://i.sstatic.net/u7iGb.png)
  [![enter image description here](https://i.sstatic.net/tzkRR.png)](https://i.sstatic.net/tzkRR.png)
  
  **Price Options for the Price Field:**
  
  [![enter image description here](https://i.sstatic.net/POkpp.png)](https://i.sstatic.net/POkpp.png)
  
  \*\* The Discount Codes (1 for each radio price option) \*\*
  
  [![enter image description here](https://i.sstatic.net/dL1Er.png)](https://i.sstatic.net/dL1Er.png)
  
  **Settings for Price Option "One Day Pass"**:
  *(this one does not work)*
  
  [![enter image description here](https://i.sstatic.net/PUhPh.png)](https://i.sstatic.net/PUhPh.png)
  [![enter image description here](https://i.sstatic.net/eVv41.png)](https://i.sstatic.net/eVv41.png)
  
  **Settings for Price Options "Two Day Pass"**:
  *(this one works)*
  
  [![enter image description here](https://i.sstatic.net/9d1oP.png)](https://i.sstatic.net/9d1oP.png)
  [![enter image description here](https://i.sstatic.net/66ryB.png)](https://i.sstatic.net/66ryB.png)
  
  **This is the result of those settings**
  
  [![enter image description here](https://i.sstatic.net/yr4ze.png)](https://i.sstatic.net/yr4ze.png)
  
  **I've done some research on the bug...**
  
  -The problem originated here:
  
  <https://github.com/civicrm/org.civicrm.module.cividiscount/issues/145>
  
  -And seems to have resurfaced recently:
  
  [only one auto discount applying when using multiple discounts based on price option](https://civicrm.stackexchange.com/questions/41461/only-one-auto-discount-applying-when-using-multiple-discounts-based-on-price-opt)
  
  I came across this in the code that references the linked git bug report, but `$this->entity_discounts` seems to populate both discounts correctly when logging out the array:
  
  [![enter image description here](https://i.sstatic.net/zMftS.png)](https://i.sstatic.net/zMftS.png)
  
  I'm starting to think that the issue does not exist here anymore, but now exists in `cividiscount_civicrm_buildForm` or `cividiscount_civicrm_buildAmount` in `cividiscount.php` where things are getting built and displayed to the user
  
  Has anyone else come across this bug? Is it a bug? If so, can someone post this bug on their Git Repo? I can't seem to be able to because their repo is "Archived"
  
  Any help would be welcomed. Thanks
  
  **Tags:** cividiscount
  
  > **Comments:**
  > **username_1**: It says at https://github.com/civicrm/org.civicrm.module.cividiscount "This project has moved to CiviCRM's Gitlab. lab.civicrm.org/extensions/cividiscount/" . Does that help?  
  > **username_0**: @username_1 Thanks, looks like I can post an issue there if it already isn't raised.  
  
  ---
  
  ## 0 answers
  
  