Developer forum

Forum » Integration » DW10 Live integration by Area

DW10 Live integration by Area

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
I have a project where I need to separate Live Integration connections by Area instead of Shop.
Is this something that can be handled with standard functionality? Or it should be handled with custom code?

Thank you,

Adrian


Replies

 
Anders Ebdrup
Reply

Hi Adrian,

 

That should already be possible, if I understand your question right. Please see below:

Best regards, Anders

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Anders,
Thank you very much for the fast reply.
It looks like it should be possible out of the box indeed.

Thank you very much,
Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Anders,
I got to this topic again and I tried setting up the Live integration per area.
The issue, though, is that DW only accepts a Live integration per Webshop.
If I try to define multiple integrations using separate Area but the same shop, it fails:

Can not activate add-in. There is already an active instance with Any shop selected. Unique shop is required per Dynamicweb Live Integration instance

 

@DynamicWeb team any suggestion here? Any setting I can use or do I need to customize the LiveIntegration code?

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
I did some further investigation, and it seems that there is some logic in the admin UI preventing the saving of multiple LiveIntegrations using the same shop.
At the first glance, it seems that it cannot be overridden from a custom Live Integration app.
Any idea?

My scope is to be able to have different Live integrations for each Area but using the same Webshop.
I am running on DW10.28
Thank you,

Adrian

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Adrian,

You're right. The admin UI blocks a second Live Integration instance on the same shop, or any instance next to one set to "Any shop". Getting around that check wouldn't help, because the add-in itself only supports one instance per shop:

  • One instance per shop. Active instances are stored with the shop ID as the key. If two had the same shop, only the first would ever be used.
  • The Website setting only narrows one instance. If an instance has a website selected, it is switched off on other websites. Other websites don't fall back to a second instance for the same shop.
  • Many processes only know the shop. Orders and carts store a shop ID but no area. That applies to cart calculation, order sync, the scheduled tasks (Capture orders, Queued orders sync, Update orders) and "Transfer to ERP" in the backend. They have no area to choose an instance by, so they couldn't tell which ERP connection to use.

So in DW 10.28 this can't be done with configuration or a custom Live Integration app built on the standard one.

You can share the product catalogue between the shops using the same groups and products.

If you need that, what is the scenario (why the areas must share a shop)?

Best regards, Dmitriy

 

You must be logged in to post in the forum