Developer forum

Forum » Development » Custom FeeProvider Issue

Custom FeeProvider Issue

Jose Caudevilla
Reply

 

Hi:
I ́m implementing a custom FeeProvider. This custom provider adds a free-shipping to an order, this cost is calculated when the user put his zip code in the purchase process. The cost is taking from a custom item. 
When I implemented the custom  FeeProvider and it doesn't execute, so I wrote to the forum asking for that, here is the link: 
Nicolai says that it won't work because there's not default country and shipping method. I created that and it works.
But now I have a problem because the custom shipping method is set off when someone empty the cart.
Here is a video demonstration about what happen.
It works well but we have a problem when someone empty the cart:
 
 
I don't know what happened.
 
Thanks!
Regards.

Replies

 
Nicolai Pedersen
Reply

Hi Jose

I do not understand what you mean - not even when watching the video... What does it mean " custom shipping method is set off "?

If I empty the cart, it gets deleted - including the zip code you added. So it will have to be applied if I create a new cart. Is that what you mean? If so, you need to not use empty cart, but remove all products from the cart and allow carts with 0 orderlines - a setting in advanced, carts.

 

You must be logged in to post in the forum