Ultimately, you'd setup a shipping method, but probably set it's value to 0, then using a custom shipping rate calculator, when the order total is calculated, check to see if they are using your shipping method and if they are, request an actual value from your API and return that from the CalculatePrice method.
Calculate custom shipping rate from an shipping API
How can we assign Shipping rate from an external shipping API to tea commerce shipping method? With or without using customShippingCalculator?
Hi Vineeth,
You'd want to use a custom
ShippingRateCalculator
for this. You can find some info on the docs site here https://docs.teacommerce.net/3.3.0/api/extending-tea-commerce/#shipping-calculatorUltimately, you'd setup a shipping method, but probably set it's value to 0, then using a custom shipping rate calculator, when the order total is calculated, check to see if they are using your shipping method and if they are, request an actual value from your API and return that from the
CalculatePrice
method.Hope this helps
Matt
is working on a reply...