Developer forum

Forum » Development » Differentiate prices based on login

Differentiate prices based on login


Reply



Hi,


 


Does anybody know how to setup the eCom solution to show different prices based on which Extranet account the user is logged in with?


 


We have the "Prices, Extended"-module installed.


 


Regards,


 


Peter


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Peter


 


The only option as it is right now is to make your own price provider which takes the user into consideration.


 


Take a look at the extensibility API chapter 2:


http://documentation.dynamicweb.dk/Development-23323.aspx


 


One of the parameteres passed to the findPrice method is the current extranet user. Based on that information you can do your own little plugin which will make it possible.


 


But you are not the first asking for this, so i know its gonna be a part of a sprint in the near future - no date available yet, though.

 
Reply

Hi Peter


We've created a solution with different prices based on extranet users. Well, not prices directly, but currency.




The users log in and will see the prices in the currency selected in the extranet profile.




Perhaps this could be a solution for you?




Basically we use the extranet user redirect function to redirect the user to a page, which redirects the user to a new page (ex shop frontpage) with a parameter.




e: &CurrencyCode=EUR




Then you can create differents sets of "prices" based on currency.




Hope this helps you.




/Theis

 
Nicolai Høeg Pedersen
Reply

Or on the information tab on an extranet user simply select the currency you want to be default for that user...

 
Reply

If it works.


 


It didn't when we created the solution :o(

 
Nicolai Høeg Pedersen
Reply

I personally implemented the feature in August - there is now 2 different currency selectors - one for the old shop, and one for eCommerce. And they should both work. Otherwise tell me, and it will be fixed!

 
Reply

Excellent. I'll try it immediately. :-)


 


Our solution was back in april/may.

 

You must be logged in to post in the forum