Chapter 8. Shipping and Tax

After discussing the checkout and order process in detail in the previous chapter, we now need to start building the functionality for this. In this chapter you will learn:

  • How to calculate shipping costs based on:
    • Product
    • Weight
    • Location
    • "Shipping rules"
  • About third-party shipping APIs
  • How to integrate shipping and tracking notifications on orders
  • How to integrate tax costs into our system


Shipping is a very important aspect of an e-commerce system; without it customers will not accurately know the cost of their order. The only situation where we wouldn't want to include shipping costs is where we always offer free shipping. However, in that situation, we could either add provisions to ignore shipping costs, or we could ...

Get PHP 5 e-commerce Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.