Using roles, one can restrict access to your site. However, Drupal/Ubercart by itself can't restrict access to certain nodes (content pages) by itself. To restrict access to certain nodes you'd have to use the Drupal core Taxonomy module and a module like TAC lite or Taxonomy Access Control. Once Taxonomy is enabled, you can define a taxonomy on nodes that will be used to restrict access. With one of the contrib modules mentioned above, you can restrict access to this node taxonomy based on a role that you've created. With the role and taxonomy in place, the only thing that remains is to use the Ubercart Roles to start selling the role that you've created.
Category:
User
Topic:
Features |
|||
...i'm looking for a solution to grant access to 1 or several nodes, not taxonomy terms,
so, I got courses and they have lessons, I would like to sell lessons for 1$ and whole course (15 lessons) for 10$,
now i got 10 lessons in my site but in year or so, when i'll have 100+ and then 1000+++ lessons and 10-100 courses - the taxonomy approach will be very uncomfortable 
I think you can do it with cck fields and then grant permission ef each field to different role.
After they buy the role, they see the content of that field.
I think that should work, not sure if ubercart is rigid or not.
I think, I've got a clue - maybe this could be done with Ubercart, Rules and TAC? Something like:
1) all lessons belonging to course have taxonomy, e.g. "Drupal basic course",
2) we have a product like "Access to D.B.C."
3) when user buys product, he triggers an action called "Give user x access to taxonomy y"
Therefore we have no multiple roles problem - we just make product, taxonomy and action for every course we sell, we can also sell access to multiple courses (product - access to D.B.C. and D.Advanced Course, triggers action that gives acces to 2 taxonomy terms),
is that possible?
i've read or heard in some kind of lullabot podcast, that ubercart has its own business rules logic, something better than trigger and rules??
Hi, I have the same issue for a site selling access for courses with lessons too. Maybe we can work together to solve it, I didn´t put much time into it, but I want to do it now, my approach is a course is a taxonomy term that a user buy access to. I was thinking about granting the access through the block visibility with PHP code or if that didn´t work I was thinking about creating a custom module (I don´t know anything about Drupal module development, but I think it would be a very simple module). Please contact me if you´re interested in solving this with me.
Regards,
Eduardo
edumdq@gmail.com
Hey guys, I sell the access to pages with integrated mmedia content and have to resolve the issue common to your. In my case User can buy access to multiple pages, so the solution to sell Role for each videopage does not work for me since as I understand User can't be assigned to several Roles. Am I right?, or User can have multiple Roles? e.g. if User buy access to 20 different pages he will be assigned 20 Roles?
Thanks for providing your suggestions.
Hello,
I am also working on the same kind of feature.
I want to sell access to movie for a certain period of time (say three days) and also to the whole catalog for a longer period of time.
I think that using the role to grant a temporary access to a node which contains the movie might be ok… But user should only be able to access this specific role.
Using http://drupal.org/project/uc_node_access seems to solve part of the problem.
I would really like to hear from you in order to figure out how you did solve this.
I think we can also share the development… If needed.
Thanks.
Hi gregober, for now they´re just selling a premium membership, the idea is to give the feature of selling access to a course in the future. For now I´m using UC roles and Vocabulary Access Control. So they buy the role for a month and that role has permission to acces a certain vocabulary, every paid course is a term of the "paid courses" vocabulary and the courses are made of some video classes, downloadable files and links. The site is www.cienciaydeporte.org it hasn´t been launched yet, we have some users that are trying it. If you want send me an email to edumdq@gmail.com so we can work together on a solution.
Regards,
Eduardo.
