We use discounts on our events so that we can do scholarships and such. We apply them to specific items in a price set, as they typically only apply to the regular price and not the early bird price. However, almost all the price sets have disappeared from the drop down inside the discount. All that is in the list are the textbook price sets. Each training should have 3 items - early bird reg, regular reg, and a textbook.

We're running: CiviDiscount 3.8.4 and CiviCRM 5.38.0

First Update: I've been doing a lot of testing over the last 2 weeks. I've even tried upgrading a test copy to the beta (no change) and alpha (doesn't work - website error). So then I tried creating a new price set and attaching it to an event. It's not in the price set list in discounts. I tried uninstalling and reinstalling the discount extension. No change.

I created another new price set and went super simple - just 1 item. That worked. Added the other option and the textbook - stopped working. Removed the textbook. Success!

So I've gone through and manually recreated every price set without the textbook. At least one item from each price set shows up in the discounts. Now the problem is that only 1 out of 11 is showing both options (early bird and regular). EB is up to 30 days before the event, so almost every one of these has an active early bird discount.

I tried copying the one price set that has both price options working, but the copy did the same thing - only one of the two shows in the options in discounts.

Second Update: So I tried the suggestion below and I made all my names unique. They still don't show up in the list. Screenshots added below. EGS is the only one showing up correctly and it's the only event of that type, so everything about it is unique.

Discount options Price set First price field Second price field

  • can you replicate a similar but simpler set up on dmaster.demo.civicrm.org
    – petednz - fuzion
    Jun 17, 2021 at 21:20
  • It worked on there without any problems. Jun 17, 2021 at 21:28
  • you will only see the options that are valid for the date you are looking, what dates are early bird reg and regular reg actually set for?
    – petednz - fuzion
    Jun 18, 2021 at 1:18
  • I put up some screenshots that shows one of them. There's a whole list of EB and regular registrations that are in the future, as we have events scheduled through the end of the year. None of them show. The only item from the price sets that show are the textbook ones, which have no date on them. And we're not using the date options in the discounts, just the price set one. Jun 23, 2021 at 11:49
  • We are also experiencing this issue CiviCRM 5.38.0 & CiviDiscount 3.8.4. It appears to be picking a single price field per price set to make available for selection. There appears to be no correlation with the expiry date of the price field, nor it's ID, it's like it's picking a random field per set. Jul 2, 2021 at 20:36

1 Answer 1


I have been able to replicate the problem. With 3.8.3 and 3.8.4 I believe the issue is if there are multiple price sets with fields with the same labels. I replicated the issue using the following steps:

  1. Create a price set of type event, add multiple fields
  2. Duplicate the price set, without changing the labels of any of the fields
  3. Create an event and select the 1st price set
  4. Create a second event and select the 2nd price set
  5. Create a discount code and view the available price fields: for each price set you created only 1 field's options will be available (Screenshot 1)
  6. Edit the price fields for the 2nd price set and make sure all of the labels are unique from those in the 1st price set
  7. Attempt to create a discount code again and this time all price fields from both price sets should be available (Screenshot 2)

Another example; if you change the labels so that only 1 field label is not unique, then you will see:

  • Price set 1 options: Only the field whose label is NOT unique
  • Price set 2 options: Only the fields whose labels ARE unique (Screenshot 3)

I have created an issue over in GitHub

  • I hope this problem is fixed soon, then, as I doubt I am the only one who needs to be able to reuse the same names. Ours are always Registrant and Early-Bird Registration. Jul 7, 2021 at 4:13
  • I just changed all of mine to be unique. Still didn't change anything. Jul 7, 2021 at 4:25
  • 2
    Ah, I think it is also running into an issue where it only looking at a certain number of characters to see if it's unique. I shortened everything and that didn't work. I shortened and moved the date to the beginning of the name - bingo! It worked. Jul 7, 2021 at 4:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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