Developer forum

Forum » Development » Price providers - where to put them?

Price providers - where to put them?


Reply

I've read the API documentation on how to make my own price providers, and that seems to be easy.


 


But i cannot se any guidelines on where to place them in the DW code ?


And will i have to tell DW that i have this PP or is it a mere overload ?


 


Now this may be due to nme ot being very heavy in .NET programming, but then again in order not to spend tonnes of time figuring it out, then this newbee question ;o)


 


The thing i want to do is a Price provider that can calculate prices based on the extranetuser or the extranetgroup he/she is associated to.


It will also include default & user discounts/markup on ProductGroup level


 


For that to work, i will add two files to the eCom database and a Custom modul to maintain that information.


 


So in the same way as Custom modules is set up, i need to add a Custommodule to eCom - how to do that ?


Or will i just be a Custom module as we do it today ?


 


/Lars


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Lars


 


The price provider you code on top of the API has to be in a seperate assembly that you just put in the /bin directory. Dynamicweb will then load the assembly and find all priceproviders in the /Bin and subscribe to them. Very easy.


 


The custom module you want to make has to be made as a normal custom module as you mention it - for now its not possible to make your own navigation items in the ecom navigation.

 

You must be logged in to post in the forum