API Changes from Ubercart 1.3 to 1.4

Index of changes:

  1. hook_calculate_tax() was added

hook_calculate_tax() was added

This hook allows Ubercart to use multiple tax calculation schemes on its orders. The only argument is the entire order object for which the taxes will be calculated. The hook implementations should return an array of tax line items, which are arrays with the following keys:
  • id
  • name
  • amount
  • weight (optional)
Make sure that your module's tax ids are properly namespaced to prevent collisions with other taxes.