Closed (fixed)
Project:
Commerce License Content
Version:
1.0.0-beta2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
18 Sep 2023 at 23:33 UTC
Updated:
28 Sep 2023 at 20:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dangreenman commentedCheers! I'm glad you like this module.
Thank you for testing, and feeding back.
You have discovered a bug!
See attached patch for fix.
I am unable to git commit at the moment due to technical difficulties. Patch will be merged at a later date.
Comment #4
dangreenman commentedBug fix merged with 1.0.x branch.
Comment #5
dangreenman commentedComment #6
drupal.rs commentedThank you very much for your quick reply and for the patch.
A patch has been applied and it removes other user's licenses from the dropdown menu in the node creation form.
There is only a line:
'Choose your license to publish this content.'
And the option to buy a new license is missing.
The scenario for using the module is as follows:
Each user purchases one (his own) license to publish an unlimited number of nodes while the license is active. And there is a possibility to renew the license so that all nodes remain published or if the license is not renewed all nodes are unpublished.
Thank you again.
And another issue:
A content type defined to be used with a license of type 'Publish single page license', I was able to create by selecting the license type 'Publish unlimited pages license' from the dropdown menu in the node creation form as an admin user and as another registered user as well.
Comment #7
dangreenman commentedI have not been able to reproduce the problem as you describe.
The option to buy a license is there in my testing.
Note: As per the documentation. The option to renew is dependent upon the "Allow renewal window" settings, defined on the product variation type.
See: /admin/commerce/config/product-variation-types
The option to renew the license will only appear within the time window set.
Please try again and see if this is your issue.
Comment #8
drupal.rs commentedExcuse me, it was my fault: after reinstalling the module, the purchase option appeared. I probably made a change to the code, trying to fix the problem, that I didn't revert back later.
Thank you very much.