2 replies [Last post]
aparker's picture
Offline
Joined: 10/31/2008
Juice: 30
Was this information Helpful?

We are considering porting our web site to Drupal. We are an on-line documentation company that provides documents by U.S. state for a fixed monthly fee. So a person subscribes to say, Illinois and we allow them to download documents related to illinois. Each state has several different types of documents and they are organized in a several databases. The documents in a file directory are useless without the database lookup, so HTACCESS won't work for us. The pages that delivery Illinois documents are also used to deliver all the other states.

The way we have done this in the past is to display the states that the user has active licenses in and let them select which state they want to view. So if a user has a valid license we let them access the document lookup pages but only for the states they have active licenses for.

Is there an easy way to "sell" a subscrition for a state and then be able to cleanly check (database lookup) to see what active licenses they have?

I can see setting a role for any user with an "active license" and giving them access to the pages - but is there an easy way to find out what licenes are active?

In addition, say they have three licenses, would I have to set up user roles for each license?

Thanks,
Andy

cha0s's picture
Offline
Getting busy with the Ubercode.
Joined: 08/22/2008
Juice: 416
Re: Question about services

Yes, using rhe roles modules you can sell a role to a user. You can easily see what roles are assigned to a user on their user account page, and can individually modify the expiration for each role.

Using this module http://www.ubercart.org/contrib/6994 which should be available by the time 2.x is stable, you can integrate role renewals with recurring payments, so if you were selling a one month subscription, every time the user paid their role expiration would be extended by one month.

HTH

Try FreeBASIC!
My game Lynn's Legacy

aparker's picture
Offline
Joined: 10/31/2008
Juice: 30
Re: Re: Question about services

Thanks for getting back to me so quickly. I'll load everything up this week and check it out.