Developer forum

Forum » Integration » Separate Live Integration settings per Shop

Separate Live Integration settings per Shop

Adrian Ursu
Adrian Ursu
Reply

Hi guys,

I have a situation where I have 2 shops in the same solution. For one of them, I want to use Live integration with all the functionalities. For the other one, I want to use just the Order synchronization. Prices should be handled by the regular PriceField.

I see that the LiveIntegrationSettings allow for Shop selection. But I don't see a way to add 2 separate LiveIntegration settings/configurations.

Is this supposed to be supported? Or planned to be supported in the future?

Thank you,
Adrian


Replies

 
Anders Ebdrup
Anders Ebdrup
Reply

I would very much like Dynamicweb to support this scenario :-)

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

I don't see any reason why they should not. We have seen an increased number of situations where we have to make at least 2 separate integrations in the same solution. And I expect this trend to increase as we target PIM customers.

They should have this challenge on their own projects.

Let's see if we get anybody's attention with this :)

Thank you for your continuous support :)

Stay safe!

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi DW, anybody any answer to this?

Any suggestion?

Thank you,
Adrian

 
Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Adrian,
By default the one standard Live Integration does not support this. But you could make a few changes and compile a new LiveIntegration2.dll with the same code but changed only this:






Then you will have two Live integrations listed:

Then you are able to Enable each integration and set the appropriate Shop in the Shop setting drop-down and configure other options per each integration.
I've attached this code here in the zip archive so you could use the Dynamicweb.Ecommerce.LiveIntegration2.dll from the bin folder.

Kind regards, Dmitrij

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dmitrij,

Thank you very much for the code sample. It is very helpful.

Until Dw decides to integrate it into the LiveIntegration settings, I will have to settle for this option.

Thank you,

Adrian

 
Dan Kristensen Hørlyck Dynamicweb Employee
Dan Kristensen Hørlyck
Reply

Hi Adrian,

Thank you for bringing this scenario forward. It is a cool feature and I can clearly see how it can provide value in other solutions.

Right now, I think the best you can do is to use Dmitrij's workaround. Use it first, then give us your feedback and let us know whether it solves your immediate needs. If there are minor hiccups we will figure something out.

Obviously this is not a long term solution. We need to figure out a standard way to instantiate multiple "live integrations" without resorting to recompilation. 

The great news is that the standard solution would be built by Dmitrij, so whatever you and he learns now, can be built into the standard solution.


Sincerely,
Dan 
Product Manager, Integrations
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dan,

Thank you for your feedback.

What we were trying to avoid is building custom code because, in the long run, it will be harder and harder to maintain.

That's why a built-in way to support multiple integrations would be helpful.

Dmitrij code seems fine and I have no doubt it will work just fine.

I will get back to you if we stumble on anything.

Thank you,

Adrian

 

You must be logged in to post in the forum