commerce file when physical file is on another server

Events happening in the community are now at Drupal community events on www.drupal.org.
dgmills914's picture

Hi,
I am wondering if anyone has a suggestion or can point me in the right direction on the following situation. I'm fairly new to drupal so am researching to determine the best way to proceed. I need to modify my drupal commerce store where I am selling file downloads, PDFs. Commerce file is working fine and the completed order and the user's files tab has the link that points to a .pdf existing in the drupal private files directory.
However, I will now have digital files that will be hosted by a service on another server and I need to basically sell, license, and control access to a "link" to that other server. So under the users files tab the "link" is no longer a link to a digital file on our server, it needs to be the link to the other server. And that link/product would be dynamically generated on order completion because it is actually a product license key. When I create the "digital product" what would be the electronic file to upload in that field? Let me know if this makes sense or if I can clarify further.

Comments

Make a view

MarketStone's picture

The con of this way is i am not sure how many roles can be made.

-) make a role for Your "link" to other server.
-)then make a view w/ "link" to other server and place it in user area w/ tab user/% . Only shown to that role You made.
-) Then make commerce rule when purchase assign this role.

this helped

dgmills914's picture

This helped get me moving in the right direction, thanks. I'm using a view and have the generated link appearing in the user space, and I'm working on the order completed rule to dynamically generate the appropriate links for each purchased document. Then I'll need to implement a rule to control the number of downloads and ip addresses. Haven't made it that far yet though. Thanks again.

Dan Mills

Drupal Commerce

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week