Details
-
Type: Improvement
-
Status: Open
-
Priority: Trivial
-
Resolution: Unresolved
-
Affects Version/s: 4.7.8
-
Fix Version/s: Unscheduled
-
Component/s: Extension System
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
modify cividiscount.php starting at line 147:
else if (in_array($fname, array( 'CRM_Event_Form_Registration_Register', //'CRM_Event_Form_Registration_AdditionalParticipant', 'CRM_Contribute_Form_Contribution_Main', 'CRM_Event_Form_ParticipantFeeSelection', 'CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices', ))) { // Display the discount textfield for online events (including // pricesets) and memberships. $ids = $memtypes = array(); $addDiscountField = FALSE; if ( in_array($fname, array( 'CRM_Event_Form_Registration_Register', //'CRM_Event_Form_Registration_AdditionalParticipant' 'CRM_Event_Form_ParticipantFeeSelection', 'CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices',
Adding 'CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices' to the array means that Event Cart users can configure event price discounts. If they do not, no harm done, so it seems doing this mod is low-to-no risk, and provide more functionality to the Cart. This goes along with CRM-16481, update to CRM/Event/Cart/Form/Checkout/payment.php