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

As of CiviCRM Entity 2.0-beta4 the sub module called CiviCRM Entity Price Set Field provides a Drupal maintenance support plans 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.

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 module.  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 Drupal maintenance support plans 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.

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

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

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

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.