Developer forum

Forum » Ecommerce - Standard features » Different price for logged in users

Different price for logged in users

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there.

I have the following business requirement.

  • Anonymous users can see products but not order them. The price they see is the standard recommended retail price
  • Logged in users can see products and order them. The price they see is a standard price for all logged-in users but differs from the retail price.

So, each product will have two prices and depending on whether you are logged in, one or the other will be shown.

Using Swift, what is the easiest (read fastest/cheapest) way to implement this? I can still change the integration so if needed I can extend the products endpoint to include the second price, or use the ProductPrices endpoint to return two prices for each product.

I can think of a few solutions:

1. Custom price provider that looks at the standard price or a custom field for a product.

2. Using the price matrix, and forcing all users in a specific group to which a separate price applies.

3. Use the "Amount from field" option on a product discount. This is probably the simplest; but it feels wrong as it's not a discount.

Are there others?

Thanks!


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Imar,

 

I am assuming you are not using Live Integration, and just batch integration. In my opinion the best scalable way would be the Price matrix because:

  • You don't need any dll nor custom template changes
  • You have UI access to manipulate the data
  • You can generate Smart Searches to populate user groups (or have them be integrated)
    • This technique is also useful to drive shipping methods, payment methods, permissions and whatnot - we've been using it more and more

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Nuno. That's what we ended up doing. It just meant more work on the integration to get the custom prices in the GetPrices end point which we tried to avoid. But longer term it seemed to be the better option.

Imar

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Imar

A product can have a "Informational" price in the price matrix - and that will show up on the product viewmodel a long with the 'real' price.

The informational price would be the RRP and is informational only - will never be the real price.

BR Nicolai

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

It is the property "ProductViewmodel.PriceInformative"

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Nicolai, I had tried that, but when I do the anonymous user sees the product's price, and not the price from the matrix marked as informative anymore. Not sure if that's Swift or anything else doing that. 

Imar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Oh, I think that's what you meant with "Swift currently do not support price informative " in the other thread. Makes sense, thanks.

 

You must be logged in to post in the forum