Add like button on products, to logged users

Posted by Community Admin on 05-Aug-2018 15:23

Add like button on products, to logged users

All Replies

Posted by Community Admin on 23-May-2012 00:00

Hi,

How can i add a like button on products for logged users, and show a list of sitefinity users who likes this product on product details?

Regards.

Posted by Community Admin on 24-May-2012 00:00

Hey Desiderio,

You could create a custom module to manage this in the back end.
The fields for this could be just a guid for the product and a guid for the user.
Now you can create/delete on the backend, but you'll also have a db table in place.

Then you could alter the product list template to show a like button.
On click, grab product id and user id and store it.

Then you could alter the product detail template and pull a radrotator in to display the users who liked that product in a fancy way.

---

Alternatively you could look into creating a form which contains a like button.
This would take care of most of the coding (storing 'likes', limitations as 1x vote or ip restrictions etc)
And you'd just need to display the form responses filtered by the product on a product detail template.

Jochem

Posted by Community Admin on 29-May-2012 00:00

Hi Jochem,

Is there a way to use the CatalogManager or some linq for handle that backend fields?

Regards.

This thread is closed