Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Anders Brohus 189 posts 460 karma points
    28 days ago
    Anders Brohus

    Same product - Difference prices

    Hi guys :)

    We are in the process where we are looking after a shop system which supports changing prices after which user is logged in :)

    So if we have Customer A, B, C they are showed three different prices

    Customer A sees a price of 10€ because he is a standard user Customer B sees a price of 5€ because he is in a "Big customer" group Customer C sees a price of 7,5 because he is in a "No tax" group :)

  • Matt Brailsford 2814 posts 14379 karma points MVP 7x c-trib
    28 days ago
    Matt Brailsford

    Hey Anders,

    I think this might be achievable by overriding the default IProductAdapter This is what is used to extract product information from Umbraco and convert it into a format Vendr can handle.

    I think you could override this, and more specifically the Price property on the ProductSnapshot such that it returns the price relative to the current member. For this to work you'd probably store multiple prices on the product node and then in your overridden product adapter return the price relevant to the current logged in member.

    I think the only potential downfall here would be this wouldn't affect prices of items already in their basket so say Anonymous person A goes to the site and adds an item to the cart at Price A, but then proceeds to log in and now is able to have that product at Price B, the price of the item in the cart wouldn't update. I think you could get around this though by "Thawing" the frozen prices for an active order when this happens

    Hope this helps


Please Sign in or register to post replies

Write your reply to: