Developer forum

Forum » Ecommerce - Standard features » Order with Impersonation

Order with Impersonation

Aye Nyein Myat Dynamicweb Employee
Aye Nyein Myat
Reply

Dear All, 

Could you please advise if there is any setting or ways to configure that not to allow the impersonator to place an order without impersonating as one of the users from impersonation list?

Best Regards, 
Nyein

 


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Nyein,

 

There is not a standard way, but it can be done with some code. We've been doing this for years but required us to create a dll to handle a lot of things, because not all users would need to be like that.

 

The simplest way I can recommed you start with is templates only (eventually build a dll to help with this) by on the master template, check if the user is logged in but NOT impersonating.

if that happens, redirect him to the impersonation list. Make sure you capture all master templates and/or layout pages that may not be using the master

 

This then becomes more complex if you have a mix of users that need this and/or if you want to optimize performance, but you may not need all of that.

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Aye Nyein Myat Dynamicweb Employee
Aye Nyein Myat
Reply

Hi Nuno Aguiar, 

Thank you for your advice.

Best Regards, 
Nyein

 

You must be logged in to post in the forum