Developer forum

Forum » Development » Shipping fee

Reply

I my OrderTemplateExtender - Render state: Before
 
I would like to add a custom calculated shipping fee, but the Shipping Fee properties on the Order object is read only... How do I do that?

I have also tried to use the FeesHarvested notification, but the code never runs?


Replies

 
Reply


Anyone?

 
Reply

During the last pre-tech presentation I made a demo on how to use Dynamicweb.eCommerce.Orders.FeeProvider. The videos and source code from this session are available here: http://developer.dynamicweb.dk/Tech-Review-2008-2-28453.aspx

 

Check out the file pretech.local.dynamicweb.dk\Application\CustomModules\Classes\FeeProvider.cs.

 
Reply

I have alsp tried the FeeProvider. But my extender is newer executed. Can you please tell me when the FeeProvider is called?
 
Reply

It is executed when ecom renders the complete order and it needs to display the delivery price. This is at the Accept Order step.

 

Have you tried with the code from the example?

 

You must be logged in to post in the forum