+1-888-365-2779
Try Now
More in this section

Forums / Ecommerce / Add like button on products, to logged users

Add like button on products, to logged users

3 posts, 0 answered
  1. Desiderio
    Desiderio avatar
    21 posts
    Registered:
    26 Apr 2012
    23 May 2012
    Link to this post
    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.
  2. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    24 May 2012
    Link to this post
    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
  3. Desiderio
    Desiderio avatar
    21 posts
    Registered:
    26 Apr 2012
    29 May 2012
    Link to this post
    Hi Jochem,

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

    Regards.
3 posts, 0 answered