Developer forum

Forum » Integration » Live Integration - Different Anonymous users

Live Integration - Different Anonymous users

Chris Søgaard
Chris Søgaard
Reply

Hi

We have a client running live integration towards a DW code unit.

We want to control the key for anonymous user sent when calculating prices and orders based on the context language. So there's 1 shop with 3 languages, and each language should use its own anonymous user for calculating prices and orders. Could this be done using notification subscribers (preferred), or would that require to include the LiveIntegration source code project to achieve this?

BR Chris


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
This post has been marked as an answer

It can be done with subscribers. Attached an example that does it based on the user's country. It then looks up the associated ID in the area settings (we have a list of countries mapped to an ERP ID). In your case, you could simply use a single field directly on the area settings. All you need to do is to reimplement DetermineCustomerId method. 

Hope this helps,

Imar

 

Votes for this answer: 1
 
Chris Søgaard
Chris Søgaard
Reply

Hi Imar

Thank you for this, fits perfectly with my use case.

BR Chris

 

You must be logged in to post in the forum