Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We've tried to add an automatic discount when a logged in member is in a specific group.
Unfortunately when we get to the payment form we are getting a YSOD informing us that the IMembershipRoleService can not be resolved.
I don't think we are doing anything unique with DI that would impact resolution for this interface and the error is coming from code within Vendr.Core so I've no real way of diagnosing the issue.
Do you have a stack trace that points to where in Vendr the error originates?
Actually, looking at the MemberGroupDiscountRuleProvider it's pretty obvious and it actually turns out we don't need to resolve that interface at all anyway as we can do everything we need to via the IMemberService which we already have resolved.
I've committed a fix to our 1.2.8 branch, if you want to test it we have an unstable feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json There should be a 1.2.8-beta0002 on there shortly.
Thanks for the speedy update!
I'll get it tested and let you know all is well.
Just to let you know, 1.2.8 is out now that contains this fix.
Thanks again for reporting 👍
Thanks Matt. Much appreciated.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted