Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ashiwebi on
Is there any payment option we can use for few content type not for all.Please help me.
Comments
You can allow users who have
You can allow users who have paid for the content type by assining them a special role in which they are allowed to add/edit/view the content type.
But the point is that when a user pays for the content either you have to manually assign a new role or write a script for that.
Am I explaining properly or you mean something else?
:)
Beautifulmind
Know more
Regards.
🪷 Beautifulmind
about payments options for contenttype.
Say for example I have role of Publisher .Now when he creates a content with the content type available to him he put some amount for that content and then to view that content user has to pay the amount for that particular content which is created by publisher.
Rest of the members with his role has to pay the amount.
:)
So that means, you want to
So that means, you want to charge the user for per node view for node type that are chargable, right?
If you are not using CCK to create such content type, it would be help you a lot to put what ever the functionality you want.
My way is:
-> Create a custom content type not using CCK but writing a module by your own.
-> For this content type, create a custom table, listing only user ids who have paid for the particular content, say the table has two fields, for expample, nid and uid.
-> When a user pays for a particular content, add his uid in this table with the content id he is to permitted to view.
-> Check the access when user tries to view the content.
-> You can implement the functionality as you want but the underlying mechanism would be the same as explained here.
-> You should not expect any contributed modules for this, as your requirement is highly customized.
-> I would be glad to know what ever the way you choose to implement this feature.
:)
Beautifulmind
Know more
Regards.
🪷 Beautifulmind
about ecommerce
Yes
Can I use ecommerce for this .Please suggest me.
I would say: Yes. But use it
I would say: Yes. But use it with caution. As it might not be met with your requirement. Any how, first test the module on your local site and then integrate it with your live site. All the best!
:)
Beautifulmind
Know more
Regards.
🪷 Beautifulmind