Any update to this topic?
Or does anybody have an idea on how to implement this?A user should be able to buy access to a node.
I've read through the issue queue and seen a similar feature that i've seen in another issue that I'd like to implement (comment #8 https://www.drupal.org/project/commerce_license/issues/2934928 🐛 Fatal error when attempting to add a license Fixed ) . I'm fairly new to Drupal 8 development so please bare with me.
What I'm looking to do is create a new plugin for a new Licence Type that will grant node access on a per user per node basis. My approach would be the following:
Would this be the best approach to do this? I may be going down the wrong path but it seems like it should work.
When trying to implement this, I'm unable to get the new content type entity reference from the License entity reference to the product using rules. I'm thinking i should be able to use this chain to get to the node to set permissions ( license > product_variation > node ). Should I be able to access the Product fields from the product_variation entity referenced by the license?
Any guidance is really appreciated.
Active
Documentation
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Any update to this topic?
Or does anybody have an idea on how to implement this?
A user should be able to buy access to a node.