We are having the problem that we need a custom shipping carrier.
We have a third party vendor that does all the shipping for us, but also determines the shipping costs.
The shipping costs are based on:
- weight of a single product
- shipping destination
So whenever a customer is trying to checkout I need a custom shipping carrier that either calculates the weight of all products in the quote and also transmitting the desired shipping country to a third party vendor.
This call shall return the final amount for the shipping carrier.
Now the question is:
How can I create a new shipping carrier that checks the weight from the quote and the desired shipping country, sends it on request to another web resource and uses the return value as shipping amount?
The third party vendor does not give us his calculation algorithm, so there is no other way then doing a request each time a customer is trying to checkout.