Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 :-)
Comment | File | Size | Author |
---|---|---|---|
#20 | flowOfTimeMembership.txt | 221.5 KB | marcoka |
Comments
Comment #1
ygerasimov CreditAttribution: ygerasimov commentedI 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.
Comment #2
ntigh52 CreditAttribution: ntigh52 commentedygerasimov,
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.
Comment #3
ygerasimov CreditAttribution: ygerasimov commented@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.
Comment #4
ntigh52 CreditAttribution: ntigh52 commentedHi,
a basic HOWTO for this.
this module added new rules that are imported: ( the necessary that we need to change)
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.
Comment #5
ntigh52 CreditAttribution: ntigh52 commentedComment #6
TomNET d.o.o. CreditAttribution: TomNET d.o.o. commentedThanx!
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.....
Comment #7
Dimanic CreditAttribution: Dimanic commentedThere 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
Comment #8
Dimanic CreditAttribution: Dimanic commentedIf 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
Comment #9
mrconnerton CreditAttribution: mrconnerton commentedSo 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?.
Comment #10
ntigh52 CreditAttribution: ntigh52 commentedmrconnerton,
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.
Comment #11
isak_manresa CreditAttribution: isak_manresa commentedHi 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.
Comment #12
pinkonomy CreditAttribution: pinkonomy commentedHow can I change the time period of the subscription?I cannot find this...
Comment #13
batigol CreditAttribution: batigol commented#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 :)
Comment #14
ntigh52 CreditAttribution: ntigh52 commentedI 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
Comment #15
batigol CreditAttribution: batigol commentedYou 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...
Comment #16
pinkonomy CreditAttribution: pinkonomy commentedGuys there is another module that enables "site subscriptions" . http://drupal.org/project/subs
Comment #17
batigol CreditAttribution: batigol commentedIt 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.
Comment #18
haradhansharma CreditAttribution: haradhansharma commentedI tryied to give and remove role to user, an it is done by giving action in the component "Subscription start" and "Subscription end"
Comment #19
ntigh52 CreditAttribution: ntigh52 commentedin 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?
Comment #20
marcoka CreditAttribution: marcoka commentedi 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
Comment #21
batigol CreditAttribution: batigol commentednice. i'm waiting for english version
Comment #22
marcoka CreditAttribution: marcoka commentedit is part english, some notes are german ^^
Comment #23
ntigh52 CreditAttribution: ntigh52 commentedHi all and Dimanic,
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.
Comment #24
ntigh52 CreditAttribution: ntigh52 commentedI 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,
Comment #25
marcoka CreditAttribution: marcoka commentedchart of mine in english
#1801402: Chart of flow (documentation suggestion)