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

Forums / Ecommerce / Conditional price display

Conditional price display

2 posts, 0 answered
  1. Ross Reichardt
    Ross Reichardt avatar
    31 posts
    Registered:
    14 Aug 2009
    23 May 2014
    Link to this post

    Hi.
    Using the ecommerce module, is there a way to only display product prices when the user has logged on? So, when logged off, the user will see product listings along with product details but they need to log on to see the pricing. Is that possible?

    Also, is it possible to show 2 prices for the product. One would be the list price and the second would be the price the logged on user will pay. Depending on the category of the user, the price they pay can be different than what another user pays. Can we do that with the ecommerce module?

    Thanks and regards,
    Ross.

     

  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    31 May 2014
    Link to this post
    Hello Ross,

    You can achieve that by "playing" with widget`s permissions.

    I advise you to place two widgets, one of the widget to be visible only for authenticated users, and the other anonymous users. Create a separate template for anonymous users and delete the price from it.
    Note that the administrators will see both widgets as they cannot be restricted.
    Another option is to somehow perform a check if the user is authenticated or not and then display the price, but requires more coding than the approach with two widgets.

    Here is a video how I managed to do it.

    Hope this helps.

    Regards,
    Vassil Vassilev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered