Have tested and appears to work @pradeep - Handed over to client for testing.
Have tested latest on Wordpress, CiviCRM 5.71.1 and master branch (Cividiscount shows as v3.8.10) which includes a number of fixes for discounts not being applied, and issue still present. Discount code doesn't apply to event price set. This was for an event ticket price set. Was previously working with patches, but not with newest CiviCRM.
@colemanw I've pushed a second commit for that fix.
@lcdweb this looks great, just on suggestion above (which will require regenerating the DOA file also).
I think this is just meant for events not templates.
<labelColumn>title</labelColumn>
<condition>is_template = 0</condition>
here's a PR: !318 (merged)
probably the api option if that works I think
I'm not a heavy user of the extension and not familiar with the code, but these lines don't seem to make sense: It looks like they compare the event id to a pricefieldvalue (what it calls price set ids seem to be pricefieldvalues).
$ids = _cividiscount_get_discounted_priceset_ids();
if (!empty($ids)) {
if (in_array($formHelper->getEventID(), $ids)) {
$addDiscountField = TRUE;
I'm not a heavy user of the extension and not familiar with the code, but these lines don't seem to make sense: It looks like they compare the event id to a pricefieldvalue (what it calls price set ids seem to be pricefieldvalues).
$ids = _cividiscount_get_discounted_priceset_ids();
if (!empty($ids)) {
if (in_array($formHelper->getEventID(), $ids)) {
$addDiscountField = TRUE;
Thanks @DaveD - I'll merge it!