The current way resources can be sold requires on creating separate user groups for each, requiring quite some insight into the MODX ACLs to use.
A better solution would be for DigitalProduct to manage what resources a user has access to, and allow access based on the presence of the secret code or a user relation. To enforce it users should then place a simple snippet on the resource that needs protecting which can either redirect away if not allowed, and/or have different chunks to either render the content or an add to cart form of sorts.
The current way resources can be sold requires on creating separate user groups for each, requiring quite some insight into the MODX ACLs to use.
A better solution would be for DigitalProduct to manage what resources a user has access to, and allow access based on the presence of the secret code or a user relation. To enforce it users should then place a simple snippet on the resource that needs protecting which can either redirect away if not allowed, and/or have different chunks to either render the content or an add to cart form of sorts.