Book Image

CiviCRM Cookbook

Book Image

CiviCRM Cookbook

Overview of this book

CiviCRM is a web-based, open source, Constituent Relationship Management (CRM) software geared toward meeting the needs of non-profit and other civic-sector organizations.Organizations realize their mission via CiviCRM through contact management, fundraising, event management, member management, mass e-mail marketing, peer-to-peer campaigns, case management, and much more.CiviCRM is localized in over 20 languages including: Chinese (Taiwan, China), Dutch, English (Australia, Canada, U.S., UK), French (France, Canada), German, Italian, Japanese, Russian, and Swedish.CiviCRM Cookbook will enhance your CiviCRM skills. It has recipes to help you use CiviCRM more efficiently, integrate it with CMSs, and also develop CiviCRM.This book begins with recipes that help save time and effort with CiviCRM. This is followed by recipes for organizing data more efficiently and managing profiles.Then you will learn authentication and authorization and managing communication with contacts.Then you will be guided on using the searching feature and preparing reports. We will then talk about integrating Drupal and CiviCRM. You will also be taught to manage events effectively. Finally, learn about CiviCampaign, Civimember, and developing CiviCRM.
Table of Contents (19 chapters)
CiviCRM Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using a shopping cart and Drupal views for event registration


CiviCRM 4.2 includes a shopping cart system for event registration. This can be combined with a Drupal view of events to provide a quick and convenient event registration page.

How to do it…

We will create a list of available CiviCRM events in a Drupal view. None of the events should include any special profile or custom field requirements. We will then add shopping cart links in the view.

  1. Navigate to Administer | CiviEvent | CiviEvent component settings and tick the Use Shopping Cart Style Event Registrations checkbox.

  2. Create a page view of CiviCRM events in Drupal views.

  3. Add a filter to show only future events.

  4. Sort the list in date order.

  5. Add field values for Event Title, Event Date, and Event ID.

  6. Set Format to Table.

  7. We can rewrite the Event ID field in the Drupal view to provide us with add/remove links to the event shopping cart:

  8. Save the view and test it.

How it works…

The view will now look something like this. When a user adds or...