Search code examples
e-commerce

How Do E-Commerce Websites Calculate Postage/Shipping Costs?


I'm just wondering if anyone can provide me with some information into how e-commerce websites automatically calculate the postage and shipping costs for items ordered on-line?

Do these websites use plug-ins/web services to dynamically request this information from the postage/shipping provider? Or do developers manually retrieve the postage costs from the associated shipping provider and then develop their own approximate postage/shipping cost calculation algorithm (in agreement with the e-commerce business of course)? Or are there any alternative approaches used?

Any help is much appreciated. Thanks.

EDIT: I have done some basic research on the topic. I've seen some plug-ins for WordPress but each plug-in was limited to specific postage/shipping companies only.


Solution

  • Do these websites use plug-ins/web services to dynamically request this information from the postage/shipping provider?

    Yes, this is certainly an option. In my experience, the APIs provided by UPS and FedEx are decent and work for the UK market.

    Or do developers manually retrieve the postage costs from the associated shipping provider and then develop their own approximate postage/shipping cost calculation algorithm?

    I would not recommend this - a maintenance headache for one reason - and have never seen it done.

    Or are there any alternative approaches used?

    Sometimes, fixed shipping-costs can be used - for example, when delivery is to a single country or products weights are relatively static. No API call is needed in these scenarios.