I wrote a patch to allow memberships to be sold to organizations. It utilizes entity reference with a view to select organizations that the current logged in user is a member of. The patch pulls in a requirement for commerce custom product so that the line item can define what organization the purchase was made for.

(For this to work, commerce custom product requires the add to cart form to create line item types for the product of the new line item type that is created with the organization reference field. This can be configured in the node display settings.)

Everything works with my testing, patch to be posted shortly.

Comments

arosboro’s picture

Status: Active » Needs review
StatusFileSize
new22.25 KB

This patch works off of two other patches found in issues I created.

Apply patches in this order for this functionality:

  1. #2449621-2: Coding Standards
  2. #2449639-4: Support indefinite memberships
  3. #2451153-1: Allow commerce memberships for Organizations

  • arosboro committed be00f53 on 7.x-1.x
    Issue #2451153 by arosboro: Allow commerce memberships for Organizations
    
arosboro’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.