Developer forum

Forum » Development » How to update fees

How to update fees

Magni J. Hansen
Reply
I want to update fees (pay and ship) prices depending on area id or page id. I need to add +5% to my fees.

I would like to use FeeProvider.

Any solutions available ?

Replies

 
Lars Hejgaard Sørensen
Reply

The FindFee method of the FeeProvider accepts the current order as argument. The Order class has PaymentFee and ShippingFee attributes, however, I think these are read-only. The FeeProvider only affects shipping fee, so for payment fee you could add an additional order line with the amount of Order.PaymentFee*0,05*-1.

The pageid or areaid you'll find in Dynamicweb.Frontend.PageView.Current().ID or Dynamicweb.Frontend.PageView.Current().AreaID depending on whici you want to use.


BR.
Lars
 
Magni J. Hansen
Reply

The customer was not happy for this solution. Adding a new orderline is very confusing for the customer.
Is there other ways of handling this problem ?

The solutions includes two shops. One shop does not have any VAT at all and the second one needs these calculations:
Payment Fee (PF) and Shipping Fee (SF). VAT fees are 5% for danish customers and 0% for all others.
PF without VAT = 10
PF with VAT = 10,50
SF without VAT = 15
SF With VAT = 15,75

Additional should orders below 80 kr. for danish customers should have 0% VAT on products and 5% VAT on products for orders above 80 kr. 

 
Nicolai Høeg Pedersen
Reply
Hi Magni

with the internationalization module, you can create countries and languages. If you create a country and a corresponding language (just for admin purposes), you can specify fees for each country. Then based on the customers country selection in the checkout, the corresponding fee is calculated.

 
Magni J. Hansen
Reply

I can set a fee value with int. module, not vat for the fees as far as i know. 
Can i set VAT on fees only in the second shop ? If not, i would like this as an feature request. Just

 
Nicolai Høeg Pedersen
Reply
With countries you can set a VAT for each country. So if DK one VAT %, and SE another VAT %.

 

You must be logged in to post in the forum