Commerce or Ubercart with RedHen Membership Info?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
samgreco's picture

Can anyone point me to any how-to, tutorial or info on how to get Redhen Membership and Commerce working? Or Ubercart?

I have been using/building Ubercart sites for a bit, but never Commerce. But either way, I need to have RedHen Memberships available for purchase and also events. And I don't have any real clues on how to begin. And info has been quite sparse out there.

Comments

Experience with Commerce

edward.peters's picture

Hi. I have two production sites running Drupal Commerce with RedHen, Memberships, events etc.

There is no direct integration between DC and RedHen memberships. I use Rules to create/update membership records after successful payments.

For DC integration with Registration, I use the Commerce Registration module which integrates the collection of registration info into the checkout process.

If you have more specific questions, get back to me.

"Registration Commerce" also an option

gcb's picture

We do this pretty regularly, and the usual workflow for Memberships is to mimic some of the Registration Commerce module's behavior. (Note that that is different from Commerce Registration: https://www.facebook.com/networks/stats.php?nk=16777260 ).

Registration Commerce creates a "Registration" product type, and generates line items automatically when registrations are created of certain statuses. Then, you can create a Rule that triggers on "order paid in full" to "set status on all registrations in cart" to set the registration status appropriately. It's pretty easy and the Registration Commerce module has some info in the Readme and project page.

For Redhen Memberships, I usually create my own Commerce Product and Line item types, and trigger a similar rule. In this case, I have usually written a custom rules trigger, since memberships tend to have a lot of peculiarities in my experience. However, you should be able to do it with standard Rules by looping through the line items in the cart. You might need the rules_conditional module as well.

Thanks so much for the

samgreco's picture

Thanks so much for the detailed reply.

I am working on Memberships now and have products for them created. So how do I "link" these to the organization and contact creation pages when someone checks out? I would like the purchaser of the membership to be asked during the checkout process for their organization's info (on this site, the org is the actual member) and then their contact info.

Entity references? Sorry for all the questions, but I'm a bit of a newb to both Redhen and Commerce.

This is the site's Membership "purchase" page: http://vpchamber.tbwdev.com/content/membership

That depends on how you are

gcb's picture

That depends on how you are creating those Organizations and Contacts. The simplest version (for Contacts) is to link Users and Contacts using the Redhen options here: /admin/config/redhen/crm

Then you can load that Contact using the "redhen contact" property of the active User. This also means you need to require people to log in to purchase memberships.

If the Organization is connected to the Contact, you can use the Relation to load one using the other.

"Entity Reference" is a type of field that connects two entities (anything that can have Fields on it in Drupal is an Entity: so are lots of other things in Drupal). For example, you might put an Entity Reference field on a Redhen Contact for "Favorite Restaurant", which links to a Redhen Organization representing the restaurant. Contacts, Orgs, Nodes, Taxonomy Terms, Users, Memberships, etc are all Entities.

Entity references, and properties on entities, are used to connect entities to one another. Rules is able to use these entity connections to load entities through these connections. So is Views. Commerce is heavily Rules and Entity based, so understanding these pieces is really helpful in working with a Commerce-based site.

RedHen CRM

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: