SilverShop\Shipping\ShippingEstimator
Helper class for calculating rates for available shipping options.
Provides a little caching, so estimates aren't calculated more than once.
Synopsis
class ShippingEstimator
{
- // members
- protected $order;
- protected $address;
- protected $estimates = NULL;
- protected boolean $calculated = false;
- // methods
- public void __construct()
- public void getEstimates()
- public void getShippingMethods()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $address
- $calculated
- $estimates
- $order
Methods
public
- __construct()
- getEstimates()
- getShippingMethods() — Get options that apply to package and location,