Tags/topics: 
4
Answers
Vote up!
0
Vote down!

Commerce License Usage

Hi,

I watched the webinar "Architecting Drupal Commerce Sites" and found a module called "Commerce License".

Questions:
1. How to use the module?

The documentation is available (https://drupal.org/node/2039687) but I can't figure out on how to use it. Any video tutorial or article?

2. On Commerce License page, there is a sentence

This allows selling access to anything from files to node types, or perhaps ZenDesk tickets and accounts on remote sites, all using a common API, while always having a record of the purchased access for the benefit of both the store administrator and the customer.

I'm interested on the part about selling access to node type. How to achieve that?

3. If this module can be used to sell access to a node, can I use this module to sell per-node access with Drupal Commerce? So, it is like another way to achieve "Selling Per-Node Access with Drupal Commerce".

Thanks

Webinar: Architecting Drupal Commerce Sites (http://commerceguys.com/webinars/webinar-architecting-drupal-commerce-sites)
Commerce License (https://drupal.org/project/commerce_license)
Selling Per-Node Access with Drupal Commerce Tutorial (http://www.drupalcommerce.org/videos/tutorials/selling-pernode-access-dr...)

badrun
Asked by: badrun
on December 7, 2013

4 Answers

Vote up!
0
Vote down!

Commerce License is a framework.
Each thing that is licensed (a file, a node type, a role, etc) requires a license type (class that does the work).
Commerce License comes with two submodules:
- commerce_license_example (you can use it as an example for implementing your own)
- commerce_license_role (licensing roles)
There is also commerce_file that provides a license type for licensing files.

So you can either enable commerce_license_role and use that license type to give the user a role, then control access based on that role (role "basic member" can access content type X, etc). I believe this can work on a per-node level as well.

An alternative is to write your own license type (by copying commerce_license_role) that places an entityreference field on the product, accepting a node. Then, when the license has been granted, it grants the user access to the referenced node.

Bojan Zivanovic
Answer by: Bojan Zivanovic
Posted: Dec 9, 2013

Comments

Thank you for your reply. I understand the module better now. Thanks.

- badrun on December 10, 2013

How can I create a new license type? Is this something possible from the UI or I must write a module to do that?

- Lorenzo Giovenali on July 18, 2014
Vote up!
0
Vote down!

I watched the video that shows how drupal commerce can give access to a node once the user completes a purchase, but that looks like each node will have to be manually configured. Is there an automatic way to allow users to buy any content (view node)? The nodes that I want users to be able to buy are community user submitted and I want users to only buy access to a single node, not a section of a site

Let me explain my situation to help you understand what I'm trying to do.

I'm planning on creating a people search website using Drupal 7 and looking to see if Drupal Commerce is the right solution for my use case.

The purpose of the website is to connect people who are looking for services with service providers.

1. Users who are seeking services (for example: lawn care help) will post on my website for free. Their contact information will be hidden from public.
2. Service provider users will be able to search for potential customers who are seeking services that they provide and will be able to purchase the contact information for that user only. (node field access)
3. Service providers will be able to get credits for reviewing/rating service seekers and will be able to use the credits to purchase future service seeker's contact information with those credits.

Can this be done with Drupal commerce without manually configuring node access to an individual node?

So can all the "users seeking services" nodes be automatically be available for sale? (each node sold separately?)

Answer by: v.merkulov
Posted: Aug 5, 2015
Vote up!
0
Vote down!

Hi,
I am using Commerce License and Commerce License billing module for subscription type products. i create a product with License duration 1 hour. when an user by this product new role assign to that user useing License type(Role). but after 1 hour that license should revoked, means user role should revoked. but nothing happens after 1 hours. i also run cron manually.

Please help to resolve that issue.

Answer by: Samit Khulve
Posted: Nov 23, 2015