Developer forum

Forum » Integration » How to configure Liveintregration with multiple shops

How to configure Liveintregration with multiple shops

Asim Shahzad
Reply

Hi,

i was trying to find out that how we can configure live integration with multiple shops. but i did not find anything really helpful. 

can anyone point me to the right direction ?

 

Regards

Asim


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Asim,
the live integration by default works with multiple shops until you select the specific shop in the Settings->Integration->Live integration:

Regards, Dmitrij

 
Asim Shahzad
Reply

Hi Dmitriy,

Thanks for your reply. But in our case we do have 2 different shops in DW i.e. shop1 and shop2. But both the shops have different Web service URLs e.g. Web Service URL 1 = Shop1 and Web Service URL = Shop2.

How we can mention 2 seperate webservice URL for Each shop ? Or this is wrong ? 

Regards

Asim Shahzad

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Asim,
it is described here: https://doc.dynamicweb.com/documentation-9/integration/integration-framework-1/integration-framework#sideNavTitle1-2
 

The URL syntax is [URL];[Field];[Value]

The Field property can get data from either of these:

  • User.Company (AccessUserCompany column of table AccessUser)
  • User.Department (AccessUserDepartment column of table AccessUser)
  • User.[Any custom field] (System name(!) of any custom field column of table AccessUser).
  • Order.[Any custom field] (Any custom field column of table EcomOrder)
  • Session.Shop (ShopID of the shop in current http context)

    So for your case you need the urls like:
    http://localhost:8090/DynamicwebService;Session.Shop;SHOP1
    http://localhost:8091/DynamicwebService;Session.Shop;SHOP2

    Regards, Dmitrij

 

Votes for this answer: 1
 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Dmitrij,

 

I think it would be nice to have multiple configurations of the live integration setup instead of setting up like this: [URL];[Field];[Value].

Hopefully this can be added in the future?

 

Best regards, Anders

 
Søren Bremholm Jakobsen
Reply

Hi,

I'm trying to implement multiple endpoints with the URL syntax in version 2 of the live integration framework in a DW version 9.5.5 but it doesn't seem to work and I can't find info on the documentation site. Any ideas how to implement multiple endpoints in version 2?

ex:

http://188.180.99.106:8090/DynamicwebServiceShop1;Session.Shop;SHOP1

http://188.180.99.106:8090/DynamicwebServiceShop2;Session.Shop;SHOP2

Thanks,

Søren

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Søren,
Your urls looks fine, so it should work. But it also requires that your live integration settings are set to "Any" Shop:

and your appropriate web site has correct shop selected in the WebSites->WebSite->Ecommerce->Shop setting:

Also check if you have enabled the

Or

And check you are visiting website with a correct user:

If that does not help you can also check the log file to see what is wrong, just check the following checkboxes in the Live integration settings:


and after that try to visit frontend with products/cart and look into the log file with the information in the Files/System/Log/LiveIntegration folder.
Regards, Dmitrij

Votes for this answer: 1
 
Søren Bremholm Jakobsen
Reply

Thanx, I had all the above setting so I cleared the settings and added them again to the liveintegration and recycled the app pool and everything worked

 

You must be logged in to post in the forum