Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19001

Please add Cart form to list for cividiscount

    Details

    • 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

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              zorgalina Zorga Lina
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified