The default email rules to notify site users of a role expiration (or renewal, etc.) have tokens that do not work. Specifically, anything which begins with [uc_role:...]. I assume this is because the order and its attached data is not available in the set data selectors, which are account and expiration. No other data selectors are available to the rule.
Happy to test!
Maria
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1331324.patch | 507 bytes | tr |
Comments
Comment #1
liliplanet commentedLooking forward to any solution and thank you :)
Comment #2
jonathan_hunt commentedI've run into this also. It makes uc_roles quite unusable for production sites, so I've increased the Priority of this issue.
Comment #3
tr commentedPlease post a patch if you know what the problem is ...
Comment #4
jonathan_hunt commentedI know the symptom, as described by @mariagwyn but it's not clear to me what the solution is. It looks like uc_role tokens are not part of the expiration data made available to the rule "Notify customer when a role is about to expire" but I don't know enough about rules or the way it interacts with uc_roles to have a patch at this time. How does a uc_role get "in scope" for the rule?
Comment #5
jonathan_hunt commentedI may have found the issue, more testing required:
Comment #6
jonathan_hunt commentedThe above alteration fixes the issue for me.
Comment #7
tr commented@jonathan_hunt: Thank you for finding that. OK, so the problem seems to be a typo. But I believe the proper key is 'uc_role' so I think this should be fixed in the calling function, not in uc_roles.tokens.inc, otherwise it will cause other problems elsewhere.
Please undo your changes and try this patch to see if it also fixes the problem:
Comment #8
jonathan_hunt commentedThat's working for me, thanks.
Comment #9
longwaveCommitted #7.