Developer forum

Forum » Ecommerce - Standard features » FindFee compare price with original fee

FindFee compare price with original fee

Martijn Bokhove
Reply

Hi

Our customer has different costs for shipping orders, which we create with overriding the FindFee function.

The shippingcosts are calculated with some parameters and make the shipping costs a percentage of the full order, for example 3.5% of the ordervalue.

The customer also wants to use the default shipping costs from DynamicWeb, to make sure there is a fixed basic amount for countries, for example 12 Euro.

If our code in overriding the FindFee function doesn't find a special deliveryprice for the customer, it returns the default shipping fee with MyBase.FindFee(o). So far, so good. It all works.

Now the customer added a new wish to the calculation: only use the new calculated fee, if the value is higher then the default fee.
That's where we run into a problem, because we cannot view the default fee when overriding the FindFee, MyBase.FindFee(o) doesn't return a value there.

Is there another way to check the default shippingfee in the FindFee?

Gr
Martijn


Replies

 

You must be logged in to post in the forum