As of CiviCRM Entity 2.0-beta4 the sub module called CiviCRM Entity Price Set Field provides a Drupal field type for the Event entity type. In this article we’ll review the features of this submodule and discuss how to configure and customize it to fit your needs.
When configured to display on the Event view pages, this field generates a registration form that supports:
A “simple” field widget is provided by default for this module. At the time of this writing, only the first price field can be edited via this widget.
CiviCRM Entity and CiviCRM Entity Profile are dependencies for CiviCRM Entity Price Set Field. Go to the Drupal module page and enable all three modules and enable CiviCRM Entity Price Set Field, CiviCRM Entity, and CiviCRM Entity Profile.
Once enabled, you can add the Price Set Field to the Event Entity Type.
Please note that the registration form takes into account the different settings on the CiviCRM Event. For instance it will only enable CC transactions and render a billing block if the “Paid Event?” checkbox is checked. The form conforms to registration start and end dates, only renders if Online Registration is enabled. The form checks to see if Max Participants has been reached, even when adding additional participants. Additional participants can only be added if “Allow Multiple Registrations” is enabled.
To learn more about registration form, how transactions work with the Contribution API, and how it can be customized, please continue reading on Skvare.com.