Developer forum

Forum » Ecommerce - Standard features » Add to favorites NOT logged in

Add to favorites NOT logged in

Nuno Aguiar
Reply

Hi,

 

Is it possible to add a product to the favorites not being logged in, but knowing the userID (of course)?

 

Best Regards,

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

No, you cannot.

But you can add the data in EcomCustomerFavoriteLists and EcomCustomerFavoriteProducts with a Razor template.

BR Nicolai

Votes for this answer: 1
 
Nuno Aguiar
Reply

Hi Nicolai,

 

Ok, that would work. I would assume I only need to insert records into EcomCustomerFavoriteProducts, but how do I create a default list? I see that there's a PublishedId value that seems to be autogenerated. Any thoughts?

 

Best Regards,

Nuno Aguiar

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

Just give it a unique value. Guid or whatever.

BR  Nicolai

 
Nuno Aguiar
Reply

Great thanks

 

You must be logged in to post in the forum