Posted on 10/05/2021 15:29:00
Hi Adrian,
We have looked a bit deeper into this, and unfortunately, there are some issues that need to be taken care of, because live pricing will work out of the box with PIM feeds and WebApi, because the LiveIntegration need some context information, which it can't get without using the Common.Context and GetExtranetUser, which is not available from neither Feeds or WebApi. We will try to look into solving these issues, but it's not a small task, and they come with a risk of breaking some functionality, so we don't want to rush into it.
BUT... Since we understand that your customer expects this functionality to work, and we want to help you, we have found a way, where it can actually be done by making some minor changes in the LiveIntegration dll. We idea behind this workaround is simply to read the context information from the URL parameters inside the LiveIntegration, which should only be available when you are in a PIM feed. That way you can use the URL parameters as a fallback in the LiveIntegration, and use that to get the User, Shop, Language or Currency.
Since LiveIntegration dlls are often customized, I can't give you a full working example, but if the description above is not clear, I can provide you with the source code for a LiveIntegration that has the changes I needed to make it work. So just let me know.
I hope it makes sense, and sorry for the inconvenience.
Best regards,
Steffen