How can I sell edit permissions for a specific node?
Hello, thanks for reading this, any help would be appreciated.
So, long story short, I have a business directory website and each individual listing should have a 'Claim this listing' button. The 'Claim this listing' button should then redirect the user to a product display page that allows for the user to choose a duration (e.g. 1 month, 6 months, etc) that they wish to claim the listing for (each duration has a different price). Once a user has claimed a listing, they should be granted permission to edit the listing that they just claimed.
I've made some progress using the Commerce Licence module (specifically commerce_license_role submodule) to sell a 'Business Owner' role, but I'm not sure how to reference the listing that is to be claimed in my products - I don't want to have to make a product for each possible node (unless there is an automatic way of doing so) and I don't know how to make a 'generic' product that can do this.
Any advice would be great. Thanks!
tl;dr I need to be able to sell a registered user 'edit node access' to a specific node for a specific duration of time.
I'm actually working on
I'm actually working on something a little similar, but it is only in the concept stage. I was considering Organic Groups.
From what you have said, I don't see how having a product for each possible node would help. The product node is only for buying the product, not the end product itself (so in other words, I don't think it would make a difference to the issue anyway).
I would be surprised if this was possible without a custom module. I assumed this is what I would need to create for such a process given that it is somewhat outside normal Drupal / Commerce use.
Thanks for the reply. What I
Thanks for the reply. What I was thinking when I said a product for each possible node was that I could add a Node Reference field to my product and have each product reference one specific node that is for sale. When the product is purchased, I could likely then use rules to set the content access permissions for that node. Not sure that this would work though, and it would require creating a rule that fires on node creation to automagically create the associated product(s).
Any thoughts on this approach, or am I way off base in my thinking here? As far as your suggestion that I might need a custom module to accomplish this, what exactly were you picturing workflow wise?
Thanks again for the input!