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.