How to get current customer id in view component

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 năm cách đây
I created a new view component from my plugin. When I try to use workcontext in my service to get current customer Id i noticed that _workcontext is null.

is there any other way to get customer id before admin area renders? I am trying to add some more items on my admin dashboard.
5 năm cách đây
just passed it from view component. if i use service in view component it returns null. if you use directly in viewcomponent.cs then it works fine.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.