The project page does not yet hint at what a person would do to deploy this. Could we get that in there? What do you have to do?

What are we subscribing to? What kind of subscriptions are being sold? Physical? Content? Does this require content_access?

Thanks! Sorry I don't grok it :-)

CommentFileSizeAuthor
#20 flowOfTimeMembership.txt221.5 KBmarcoka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ygerasimov’s picture

I have problems making this module creating Product Type.

After installation this module (via module list or with manage features) nothing happens. So I have created product type manually (machine name: commerce_sp_subscription) and reverted fields component of "Subscription Products" feature. This has created me two fields in product type.

ntigh52’s picture

ygerasimov,
Thank.
Its work.
but how can i declare that when someone finish to order a Subscription Products,
the role will change also?
thanks a lot.

ygerasimov’s picture

@ntigh52 I haven't make it working. I created my own rules that do what I needed. Regarding this module, I think you should take a look at rules that are imported and set them up according to your needs.

ntigh52’s picture

Hi,
a basic HOWTO for this.
this module added new rules that are imported: ( the necessary that we need to change)

  1. Subscription started (insert)
  2. Subscription started (update)
  3. Subscription validity is unset

If we have user role : "after subsription"
we need to go to the "rule" configuration module "admin/config/workflow/rules"
select the "Subscription started (insert)"
select "Add condition" on the "Actions" tab
on "Select the action to add" choose "add user role"
after it: select the role that you want! ( "after subsription" on this howto explanation )
the same to the "Subscription started (update)"
but to the "Subscription validity is unset" do the same but in the:
"Add condition" on the "Actions" tab
on "Select the action to add" choose " Remove user role"
after it: select the role that you want!( "after subsription" on this howto explanation )
hope that its usefully.

ntigh52’s picture

Version: 7.x-1.x-dev » 7.x-1.1
Category: bug » support
TomNET d.o.o.’s picture

Thanx!
This how to was helpful a lot, but can you please explane, how can I add an expiration time to this role, say 30 days, can you update your how to?

Thanx in advance.....

Dimanic’s picture

There are some mistakes in post #4

select "Add condition" on the "Actions" tab
/ change to/
select "Add Actions" on the "Actions" tab

"Add condition" on the "Actions" tab
/ change to/
"Add Actions" on the "Actions" tab

Dimanic’s picture

If anybody really want to prevent subscription without payment than after installation one event is needed to be changed:

within - Rules/ Apply bought subscription time / Events

Completing the checkout process
/change to/
When an order is first paid in full

mrconnerton’s picture

So I tried to follow #4 for assigning roles on subscription, but this is also assigning roles when a generic account is just created outside of subscription. What rule should the role assign be moved to so its only assigned when the subscription is valid?.

ntigh52’s picture

mrconnerton,
I think that you need to change the "Subscription started (insert ) rule event" from "After saving a new user account" to...
There are two "rule sets" (Subscription starts, Subscription ends) that make customizing the subscription easy, e.g. one could easily add rules for granting/removing a user role.
you need in the respective components "Subscription start/end" ( admin/config/workflow/rules/components ) to granting/removing a user roles according to your needs.

Hope that It helps.

isak_manresa’s picture

Hi all,

I was friendly to uc role module. With this module you can easy asociate a role (with time limitaton or not) to a product type or a single product.

Now, I'm using commerce for a new page that I'm developing. As I see the easy way to add a role in Ubercart is lost in Commerce. I see that you have to modify some preload rules to associate a role purchase with a product, but I'm not sure how to do it.

For example, If I have a product class "x" and I want that all purchased products of the class "x" give a new user role, how can I do this?

If I only want that the role is given to one product, not all the products of the class, how can I do this?

With the instructions of #4 you select a role to be purchased but no select which product class must be purchased.

Thanks in advance,

Isak.

pinkonomy’s picture

How can I change the time period of the subscription?I cannot find this...

batigol’s picture

#4 is working fine but #8 is not working for me. Any idea how to resolve this ?

@pinkonomy you set it in a product. However minimal amount of time is one week. And I don't know how to change it. Typing 0.0001 is not working...

This is interesting module but some basic info should be provided (maybe a Commerce Module Tuesday screencast :)

ntigh52’s picture

I think that you need to understand how to work with rules scheduals.
when I wrote #4 I didnt understand that but after it I learnd it.
did #10 is understanding?
because if you want that in the end of subscription the role will deleted you must do it luke #10 and not like #4

batigol’s picture

You are right, the subscription (role) is still active after subscription time is over!

I tried add role in Subscription start and remove it in Subscription end at the beginning but without any success so I did it exactly like in #4 (without reading this topic at start). So I guess we both did newbie steps...

I will try http://dev.nodeone.se/node/634

Also http://drupal.org/node/1554050 (same problem) I can't apply weight to 3...

pinkonomy’s picture

Guys there is another module that enables "site subscriptions" . http://drupal.org/project/subs

batigol’s picture

It seems nice but I need to sell subscriptions and since I want to use commerce to sell things, integration between commerce and subscriptions is crucial.

I will test both modules a little bit more and choose simpler one that do what I want and has additional options that could be use on further upgrade and modification.

haradhansharma’s picture

I tryied to give and remove role to user, an it is done by giving action in the component "Subscription start" and "Subscription end"

ntigh52’s picture

in the components "Subscription start/end" add to actions add/remove roles.
now when someuser get the start Subscription, schedual will create to exe when the date = to Subscription end date. ( in cron )
you can see it in schedule tab on rules.
first check it with authorized role.
next check it with anonymous role.
did you tried it?

marcoka’s picture

FileSize
221.5 KB

i have created a flowchart in visio to get the structure. i added 2 additional rules myself. its german. if i have more time i will make it better and in english. meanwhile, maybe it helps someone. if you find errors tell me so i can fix it in the chart

rename it to .VSD and open with visio

batigol’s picture

nice. i'm waiting for english version

marcoka’s picture

it is part english, some notes are german ^^

ntigh52’s picture

Hi all and Dimanic,

If anybody really want to prevent subscription without payment than after installation one event is needed to be changed:

within - Rules/ Apply bought subscription time / Events

Completing the checkout process
/change to/
When an order is first paid in full

but Did you success to create subscription to Anonymous users?
It seems that nothing happend to Anonymous users, no role added and no component or scheduals are created.
it seems also that "Subscription started (insert)" rule not define right.
did someone Success?
Thanks.

ntigh52’s picture

I found the solution here
need to change the weight on the "Apply bought subscription time" rule like applying weight=3 to the "Apply bought subscription time" rule
Thanks HenrikBak,

marcoka’s picture