Developer forum

Forum » Development » Custom shipping provider called too late

Custom shipping provider called too late

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a custom ShippingProvider that overrides CalculateShippngFee. In the backend I have registered the provider four times with different options (using IDropDownOptions). Everything seems to work fine, except that on the initial load of the checkout page (step 2, after the the user has entered his details), the custom provider is not called. I see all four providers listsed in the UI for the end user, but the price is just $0 on all of them. Then when I select one option and move to the next step, my provider is being called and the fee is calculated correctly.

Is this a known issue in 8.6.1.20? This site is an upgrade from an older 8.4 version where this used to work fine. Is there a way I can trouble shoot this?

Thanks,

Imar


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Imar

Is one of the 4 shipping options pre selected the first time you enter the cart in step 2 - are any of them set as default shipping method for the default country?

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Nicolai,

No option is selected on the first load. That's weird, as one of the available shipping options is set as the default for the country that I have selected as a user.

Thanks,

Imar

 

 
Nicolai Høeg Pedersen
Reply

Hi Imar

On your website settings, try setting the default country and see if that has an impact. The option should be loaded, so some configuration is missing in the circle...

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

There's a default country there already. Anything I can test or change? Upgrade to the latest 8.6.1 release maybe? (I am on 8.6.1.20).

Imar

 
Nicolai Høeg Pedersen
Reply

There should be no changes... Can you send me a link?

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I just upgraded to 8.7.0.3 and then it just works. What's interesting is that in 8.6.1.22 I get the default rates from the configured provider, instead of my own on the first load. So, the provider kicks in, but returns backend rates instead of calling into mine.

This issue is very similar to an issue I had (with the same site) earlier this year, going from 8.4 to 8.6. That problem went away by itself, so it almost seems something goes wrong in the upgrade process.

I'll investigate further, or just force an upgrade to 8.7.

Thanks,

Imar

 

You must be logged in to post in the forum