November Happy Hour will be moved to Thursday December 5th.

Redemption limit per customer not working

Vote:
 

Hi,

We use episerver site to provide Web API services.

Redemption limit per customer in promotions is working fine for normal site, but not working in service sites.

Is there any workaround to resolve the issue.Kindly help.

Thanks in advance

#204326
May 27, 2019 17:17
Vote:
 

Redemption per user only works for logged in user. Can you check if the user is properly logged in?

#204327
May 27, 2019 17:26
Vote:
 

Thanks Quan. Site is in drupal, we only provide services. Is there any workaround to fix this issue?

       

#204328
Edited, May 27, 2019 17:52
Vote:
 

It's by design, and quite logical if you think about it. How do you verify that you only make 1 purchase per customer if you cannot authenticate the user? :) If the same person goes to another device, you'd be able to make the purchase there.

So it's not really an issue. If you really want this behavior and accept the flaws then I guess you could store it in a cookie somehow, but that solution is not robust enough for a framework, that'll have to be a custom implementation you do! :)

#204329
May 27, 2019 22:45
Vote:
 

Ok, thanks Joel!

#204336
May 28, 2019 10:43
Vote:
 

This is working for us.

HttpContext.Current.User = new System.Security.Principal.GenericPrincipal(new GenericIdentity(UserName), new string[] { UserType });

Is there any other alternate or can we do this to authenticate user in api site? 


Thanks

#204349
Edited, May 28, 2019 16:33
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.