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

Enable Drupal Views integration for Price Sets

    Details

    • Documentation Required?:
      None

      Description

      New Feature Request:
      Integrate price sets and price field data with Drupal Views.

      Use Case:
      Need to create event listings in Drupal using Views and that include information stored in price sets, such as registration fees and workshops.

      Patch Info:
      The attached patch adds a Price Set ID field to CiviCRM Events in Views.
      In addition, it enables Views to be created on:

      • CiviCRM Price Sets
      • CiviCRM Price Fields
      • CiviCRM Price Field Values
        It includes a Views Relationship between CiviCRM Price Fields and CiviCRM Price Field Values to make it easier to retrieve all of the values for a price field.

      Usage:
      Typical usage would be to create a view on CiviCRM Price Set or CiviCRM Price Field and pass in a Price Set ID as a contextual filter. The Price Set ID can be obtained as a field on CiviCRM Events. A Views Relationship can be added between CiviCRM Price Fields and CiviCRM Price Field Values to retrieve all of the values for a price field.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              happysnowmantech Kathryn Benedicto
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: