Developer forum

Forum » Ecommerce - Standard features » List of orders for users that I can impersonate

List of orders for users that I can impersonate

Jon Thorne
Jon Thorne
Reply

Hi,

There is a setting in the customer center "My Orders" app that says it can list "Own orders and orders made by users that current user can impersonate".

But this actaully only lists the orders that I have placed while impersonating a user. It does not list "all" orders that have been made by the users that I can impersonate.

Is there any way of making this page list _all_ the orders made by users I can impersonate, not just the ones that I made?

Regards,

Jon.


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I've tested the issue on environment based on last DW9.9.0 admin and uses Rapido template set. I have the expected results. Please, have a look at the attached pictures to get the proof. Note ORDER732/Order734 were created by DemoUser/DemoPIMUser without any impersonation and ORDER733 was sumbitted when DemoUser is impersonating DemoUser.

BR, Oleg QA  

2020-09-11_09-35-00.png 2020-09-11_09-36-48.png 2020-09-11_09-37-46.png 2020-09-11_09-38-48.png 2020-09-11_09-40-43.png
 
Jon Thorne
Jon Thorne
Reply

Hi Oleg,

Thank you, this answer was very helpful to keep me continuing to solve this knowing that it should be possible. The problem is there is still some strange bug causing things to work in a not very consistant way.

The setup I have is to allow a whole group (employees) to impersonate another group (customers, and sub groups). I make sure the the secondary users repository index is rebuilt and I can use impersonation without an issue. But when I look at the list of orders when logged into an employee account, there are no customer orders listed.

I managed to find a strange work-around to this problem. If I edit the employee and look at the list of groups that I can impersonate, it is correct and lists all the groups that it inherits from the employee group. If I delete on of these groups. Then save that user. Now the order list on the front page now works as expected (and as a bonus the group that I just removed iis not deleted). Something most have triggered an update to the right table with editing the individual user and saving it. But it already had the correct info in the record. Perhaps the inheritance is not getting to the correct place until updated individually. A bit anoying, but at least I have what I want now.

Regards,

Jon.

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi Jon,

I've tried to check your conditions and had the same expected results again without an extra deleting. Please, find the attached screenshots. Tested admin version - DW9.9.0

BR, Oleg QA 

2020-09-15_09-37-59.png 2020-09-15_09-39-13.png 2020-09-15_09-40-00.png 2020-09-15_09-40-36.png 2020-09-15_09-41-22.png
Votes for this answer: 1
 
Jon Thorne
Jon Thorne
Reply

Hi Oleg,

Thanks for testing. I guess there must be something strange in my setup that does not work as expected. It seems to work if I edit the users individually, so I will stick to doing that for now.

Regards,

Jon.

 

You must be logged in to post in the forum