Developer forum

Forum » PIM » User based PIM feed

User based PIM feed

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a solution running 9.7.3 with PIM and Live integration to NAV 2018.

I need to create product feeds that have specific prices for each user.

I have tried it first with the options available in 9.7.3 and I got this error:

Error getting value from 'Price' on 'Dynamicweb.Ecommerce.ProductCatalog.ProductViewModel'

I have tried passing CustomerNUmber and UserID as parameters and I have also tried accessing the feed as an Authenticated user.

It just does not seem to work with LiveIntegration (I have not tried to disable the Live Integration but I have another post where Soren tested it without Live integration and supposedly, it works).

If there is no other solution for the error above, it is clear that I will have to upgrade my solution.

But even after upgrading, I am not sure how I can configure the feeds to be dynamically tied to users.

I see that I can manually set a User on the Feed by providing a UserID parameter but the UserID value seems to be encrypted.
Can I reproduce the encryption in the profile template in "Customer center" where I would publish the link to the personalised feed for each User?

Is there another way of generating these personalised feeds for each User?

Thank you,
Adrian

 


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

I have forgotten one more thing.

Assuming I am passing the UserID as a parameter on the feed, it will also take into account the assortment of that User?

Thank you,
Adrian

 
Tomas Gomez
Reply

Hi Adrian,

I tried an alternative, creating a PIM > Feed and, in the Context options, configuring a user with has special prices for all shops (the special price is a product discount for that user). See the attached image.

Sorry to say but this alternative doesn't work neither.

Regards,
Tomas

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Tomas,

Thank you for trying.

I should probably wait for some official guidance on this request as it seems to require some configuring.

Thank you,


Adrian

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Adrian,

Live Attributes, like Price & Stock, was a part of the Feeds improvement in DW9.9 ..

Please upgrade your solution to current version of DW9.9

BR

Søren

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Soren,

I imagined it would require update.

What about the Assortments? Will they be honored?

Thank you,


Adrian

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Adrian,

But the function "Assortments" are only working in Ecommerce area, so I don't think you can use that ..

 

BR

Søren

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Soren,

I understand that it usually works in Ecommerce. Live pricing is also an Ecommerce related feature. It has nothing to do with PIM.

It just seems natural that a user specific feed should honor live pricing and Assortments. In the end, that's why you would define it "User specific".

And I am not making up issues. This was actually requested by 3 of our B2B customers.

Don't you agree?

Thank you,

Adrian

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Adrian,

Agree ..

That's also why it's implemented in our newest version of PIM Channels/Feeds.

Assortments are not a part of that implementation, but if it is a need from the market, we can look into it ..

BR

Søren

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you Soren.

I'd say it makes sense looking into it.

Thank you,

Adrian

 
Thomas Larsen
Reply

Hi Søren,

Any news regarding assortments in PIM feeds based on the selected user?

BR
Thomas

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Thomas,

We are working on a release-fix to solve it 

/Søren

 
Lasse Larsen
Reply

Hi Søren,

Did this end up getting added? We have a customer requesting the same feature.

 

Thank you for your time

Lasse

 

 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi Lasse,
 

Yes, picking user for a feed has been implemented.

 

BR
Snedker

 
Lasse Larsen
Reply

Hi Morten,

Perfect thank you. What varsion of DW do i need? Right now i am not getting the assortment based on the selected user. Is there a setting i might be missing somewhere?

 
Martin Moen
Reply

Bump!
We also have problems getting live price from the PIM feed.
Please let us know which version of DW is needed.

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

9.15.8

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi,

Just to clearify the comunication in this thread the last month..

Price matrix, related to user account, are supported in our Feeds setup with defining a User

Assortments are not supportin our Feeds, and I'm wondering why you need that ..

Could some of you, describe a "Use case" for this senario, where that are needed

Thanks in advance 

/Søren

 

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Soren,

In my case, I have customers assigned to Assortments, limiting the products they can see.

That's why when a feed is assigned to a user, the logic should also pick up the Assortment(s) of that user and allow me to filter the feed without asking the user to log in.

Does it make sense?

Thank you,
Adrian

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Søren & Adrian,

 

We have the exact same need for the assortment part. So I really hope that it can be supported as I will expect it to take the user into account.

 

Best regards, Anders

 
Anett Nissen
Anett Nissen
Reply

I concur with Anders and Adrian

Common situations where assortments are needed is often:

  •  Private Label products + "Common" products for all
  • Selling both to B2B and B2C
    • B2B Preordering products before release for B2C 
    • Only sharing e.g. B2C ready products with external Shops 
  • Having a mix of Products - some sold everywhere and others only sold in specific Country or Region

:-) Anett

 
Lasse Larsen
Reply

Anett is descriping the case im working on perfectly.

We have a B2B customer that sells a mix of white label and shared products.

They have promised their customers individual, updating product catalogs, where they can see their branded products.

Lasse

 
Thomas Larsen
Reply

Until Assortments in feeds are supported, this is a workaround

Create a custom marcro with the follwing code and use that as a parameter in the feed query


 

else if (action == "Feed_UserAssortmentIDs")
            {
                List<string> _return = new List<string>();

                string EncryptedUserID = HttpUtility.UrlDecode(Dynamicweb.Context.Current.Request.GetString("UserId"));
                if (String.IsNullOrEmpty(EncryptedUserID))
                    return _return;

                int UserID = 0;

                int.TryParse(Crypto.Decrypt(EncryptedUserID), out UserID);

                if (UserID == 0)
                    return _return;

                var User = Dynamicweb.Security.UserManagement.User.GetUserByID(UserID);

                if (User == null)
                    return _return;
                
                _return =  Dynamicweb.Ecommerce.Services.Assortments.GetAssortmentIdsByUser(User, Dynamicweb.Context.Current.Request.GetString("languageId"), true).ToList();

                return _return;
            }

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you very much, Thomas.

It's a very useful workaround.

Adrian

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi All,

Feature request has been created, but not yet prioritized .. (#14439)

/Søren

 

You must be logged in to post in the forum