Help
Customer Support | Forums
LiveCart > User Manual > Developers Manual > Plugins > Real-time Shipping Rates

Real-time Shipping Rates

There are many postal companies that provide real time rate lookups. LiveCart makes it easy to add support for additional shipping companies.

NOTE: It is also possible to define shipping rates manually.

Creating a new plugin

Each shipping rate calculator plugin must extend the ShippingRateCalculator class and implement the following methods:

  • getRates() - return shipping rates for the particular service (for example, parcel post only)
  • getAllRates() - return shipping rates for all available services (for example, parcel post, EMS, etc.)
  • getProviderName() - return shipping company name (for example: "USPS")

Installation

To install the plugin, simply copy it's file to the /library/shipping/methods directory. The file name must be identical to the class name. For example, if your class is named FedexCalculator, the file name must be FedexCalculator.php.

Advanced Configurability

User Contributed Notes

1 comment received. Add your comment.