Developer forum

Forum » Development » Implement feed with live prices without PIM

Implement feed with live prices without PIM

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a solution running on DW 9.9.x and I need to create a feed with some product information, including the Live Price.

I have noticed the PIM is using the new API for getting this info but I am not sure what would be the best approach for implementing something similar without the PIM module.

Thank you for any suggestions.

Adrian


Replies

 
Nicolai Pedersen
Reply

Just use the product catalog for viewmodels. You have the viewmodel that you can change to whatever format you need - either using a template or serialize the viewmodel to json and parse that in something to your required format.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you for the suggestion. That would be my first attempt as well. What I want to be sure of, is if this approach would work with LivePrices in my version (9.9.x).

Thank you,

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

One more thing.

In the PIM logic, you authenticate the user based on an encoding of the UserID. Can I use this approach with the product catalog for viewmodels?

Adrian

 
Nicolai Pedersen
Reply

Nope, but you can use login tokens.

It is 2 different contexts and user is context, so they have slightly different ways of working.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

I was afraid of this answer :)

The problem with the tokens is the expiration. These customers using the feeds would configure them in their systems for an automatic processing. If they do that and the main user would reset their password (which is very likely) the setup would not work anymore and they will have to go back to the admin panel and copy the token or link again.

I would be very disappointed about a feature like this and I expect they would be as well. That's why I am trying to figure out a better/stable way of authenticating them.

If we don;t have anything built-in that I can use, I would probably have to create some custom approach.

Thank you,

Adrian

 

You must be logged in to post in the forum