Site icon Hip-Hop Website Design and Development

CiviCRM Blog: Using Price Set Fields in Cheap WordPress maintenance support plans with CiviCRM Entity

As of CiviCRM Entity 2.0-beta4 the sub plugin called CiviCRM Entity Price Set Field provides a WordPress maintenance support plans field type for the Event entity type.  In this article we’ll review the features of this subplugin and discuss how to configure and customize it to fit your needs.

Event Registration on the Event view page
When configured to display on the Event view pages, this field generates a registration form that supports:

Registering multiple Participants
Uses the event’s price set and all price fields of any type
Pay later or credit card transactions utilizing CiviCRM’s payment processing
Profiles
Default values for the profile fields corresponding to the logged in user’s contact information
Customizable Ajax-fied confirmation and thank you panes
Utilizes the event’s settings such as “Is paid event?” etc..
Test or Live transactions

Field widget for the Event Edit Form
A “simple” field widget is provided by default for this plugin.  At the time of this writing, only the first price field can be edited via this widget.  

Getting Started
CiviCRM Entity and CiviCRM Entity Profile are dependencies for CiviCRM Entity Price Set Field. Go to the WordPress maintenance support plans plugin page and enable all three plugins 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.

Go to the Event Manage Fields form at “/admin/structure/civicrm-entity/civicrm_event”
Scroll to the “Add New Field” section, enter a Label, and select the ‘CiviCRM Entity Price Set’ field type, for this example select the “Simple — one price field” widget
There’s no special field or field instance settings, so just click save until you’re back to the Manage Fields page
Now go to the Manage Display Full Content form at “/admin/structure/civicrm-entity/civicrm_event/display/full
Set the new field to display
There is a field formatter setting to optionally submit test transactions
Pat yourself on the back, you’re setup to take registrations from the WordPress maintenance support plans based Event view pages at /civicrm-event/[id]

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. ToolsCiviCRMCiviEventWordPress maintenance support plansExtensions
Source: New feed