Hi,
This question was in my head for a while now.
I have a content-type that cant be viewed unless the user buys acces to view it.
Am looking for a simple solution, without shopping carts or the like.
When you click on the link to the node, it checks if the current user has access to view this node, if they don't, redirect them to paypal (preferably), make them pay and then grant them access.
After spending some couple of hours on google I couldnt find a solution that satisfies that. So i was wondering, why something like drupal doesnt this somewhat basic functionality.
I have a couple ideas of how to solve this problem, but would like to hear your suggestions first (dont want to influence your thinking).
So let'shear it and I will post my ideas in a couple of days. (Maybe by then I found the holy grail ;)
Comments
Well you would just piss off
Well you would just piss off you users if you just sent them to Paypal. You will need an interstitial page that tells them that they need to pay to see the content on the page they are trying to view. Give them a button that says "Pay with PayPal to view the content" or something like that. once they pay you will need to redirect them to a page that changes their roll to a paid member roll type.
The user will probably need to have already signed up at your site before any of this could happen of course.
I'm sure there is a module for this. Try http://drupal.org/project/ecommerce - (off the top of my head)
Latte/
Ok i think i mis-phrased
Ok i think i mis-phrased that- Of course I wouldnt just send them to paypal adhoc. That's just rude ;)
And yes, profile on the website is mandatory anyways (otherwise I cant connect their uid to the nid for granting access).
I was just looking for a solution that doesnt involve shopping carts and full blown ecommerce modules.
But thanks for the reply anyways.
A saw presentation a while
A saw presentation a while back on making a role an ubercart product. User purchases a drupal role, and then they have permissions they did not have before. Can't remember the specifics, but it sounded pretty cool. uc_roles is the modules that goes along with ubercart to make it happen.
http://www.ubercart.org/docs/user/3366/selling_site_access_role_promotions