5 replies [Last post]
stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575

We're looking for someone to code a UC module (D6) to allow purchasing of access to an OG group. No, not via roles, since we're talking about many dozens of groups. Upon creating/editing a product, the administrator should be able to add one or more groups (via the Features in UC, I would assume) that the user would become a member of upon successful checkout with that product.

Code should of course be contributed back to the community Smiling

Please PM or contact via form: http://www.topnotchthemes.com/contact

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

coworks_dieter's picture
Offline
Joined: 02/20/2008
Juice: 50
Is this what you are looking for?

After reading your post, I started writing this module.

When installed, at the edit of a product node, you will find a local task 'Group subscribe'. You can select the groups you want the member to be subscribed to after purchasing this product.

With conditional actions, you have to create a new predicate with trigger 'Customer completes checkout' and action 'Subscribe to the groups ordered'. When a customer completes the checkout of the product, he will be member of the groups selected.

Let me know if this is ok for you or you want something extra.

Greetz

Dieter

AttachmentSize
uc_og_subscribe.zip 3.57 KB
stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Re: Is this what you are looking for?

Thanks again for working on this Smiling

I haven't yet tested the functionality thoroughly, but I took a look at the product node options and action. One issue I see is that it is a blanket group setting for the product, rather than the SKU. For example, for File Download, it is a "Feature" added to the product, under which you can choose the specific SKU (or all SKUs) that it applies to. This allows you to have different SKUs for different attributes, which could affect the desired group membership. I would think this feature makes sense as a product "Feature" that behaves in the same way as product file downloads.

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 294
Re: Re: Is this what you are looking for?

Would there be a 1-1 product-groups relationship?

Or could the creator of the product add a set of groups that would appear in a drop down attribute listing all the groups in that sub set as options, so the customer could select which group the wanted to join? Maybe leveraging the sub group module for OG?

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 294
Re: Re: Re: Is this what you are looking for?

just linking to
http://drupal.org/project/uc_og_subscribe

and some brainstorming on managing a large number of groups:
http://www.ubercart.org/forum/support/15829/practical_advice_setting_lar...

waltercat's picture
Offline
Joined: 06/11/2010
Juice: 16
How to Set Up This Relationship

This is exactly what I need, but I have no clue how to implement it, there is no documentation. Maybe I am missing something obvious since I am new to both Ubercart and OG, but I could really use some advice.