Skip to content

Releases: verbb/postie

2.4.6

27 Jan 23:39
Compare
Choose a tag to compare

Changed

  • All providers now round box dimensions and weights to 2 decimal places.
  • Improve project config storage for settings. Postie will now no longer save (some) settings for disabled providers.

Fixed

  • Fix DHL Express throwing errors due to invalid weight/dimensions.
  • Fix in-memory caching not working correctly for providers. This meant potentially multiple requests for a single page request were being performed.

2.4.5

16 Jan 00:20
Compare
Choose a tag to compare

Added

  • Add support for FedEx Freight.
  • Allow providers connection check to be run from cron, or similar means.

Fixed

  • Fix potential error with AusPost International.
  • Fix USPS not logging error messages correctly for domestic shipments.
  • Fix USPS rates not reporting back correctly when using potentially invalid postcodes.
  • Fix testing connection only using saved values, not values as you change them.
  • Fix UPS connection testing for some non-US based accounts.
  • Ensure Postie isn’t shown in the CP sidebar menu when allowAdminChanges = false.

2.4.4

05 Jan 02:03
Compare
Choose a tag to compare

Fixed

  • Fix error when calculating rates for Australia Post, New Zealand Post and Sendle.

2.4.3

21 Dec 23:53
Compare
Choose a tag to compare

Added

  • Add weight and dimension unit settings for each provider. Some providers (UPS) rely on units being set for the appropriate account's region.

Fixed

  • Fix potential error with Australia Post.
  • Fix an error with UPS when using negotiated rates.
  • Ensure FedEx formats dimension and weight units correctly.

2.4.2

04 Dec 05:26
Compare
Choose a tag to compare

Fixed

  • Fix error introduced in 2.4.1 when saving settings form the control panel.

2.4.1

03 Dec 23:31
Compare
Choose a tag to compare

Fixed

  • Fix potential migration issue if no providers were configured.

2.4.0

03 Dec 12:31
Compare
Choose a tag to compare

Added

  • Add Sendle shipping provider.
  • Add Interparcel shipping provider.
  • Add New Zealand Post shipping provider.
  • Add Bring shipping provider.
  • Add Royal Mail shipping provider.
  • Add PostNL shipping provider.
  • Add Colissimo shipping provider.
  • Add new 4D bin-packing algorithm to more accurately pack your boxes.
  • Add ability to define box dimensions and weights for each provider, so you can better split order items into boxes.
  • Add "Packing Method" setting for all providers.
  • Add "Pack items individually" packing method, allowing all line items and quantities to be boxes individually.
  • Add "Pack items into boxes" packing method, allowing provider-supplied boxes, or user-created ones.
  • Add "Pack items into a single box" packing method - a slightly improved version of the box-packing algorithm in pre 2.4.0. This ensures a non-breaking change to box-packing behaviour to date.
  • Add EVENT_BEFORE_PACK_ORDER and EVENT_AFTER_PACK_ORDER events to all providers, allowing modification of the box-packing logic.
  • Add "Restrict Shipping Methods" setting for all providers. This allows opt-out of restricting to certain shipping services, and always use whatever is returned by the provider. This is particularly beneficial for some providers where services can't always be determined.
  • Add weightUnit and dimensionUnit to each provider for consistent use with boxes. These should always be provided in grams.
  • Add supportsDynamicServices() to providers whose list of services isn’t statically defined.
  • Add getMaxPackageWeight() to providers, to define what their maximum package weight is.
  • Add getIsInternational() to providers, to return whether an order is considered domestic or international.
  • Add provider setup instructions on connecting to the respective APIs.
  • Add ability for providers to define their own default boxes of dimensions and types that cannot be deleted, but still toggled enabled/disabled.
  • Add letter rates to Australia Post (domestic and international). Now fetches rates for letters, for applicable products, and as defined in the new box definitions.
  • Add some additional missing satchel rates for Australia Post.
  • Add “Residential Address” setting for UPS.
  • Add “Include Insurance” setting for UPS.
  • Add “Residential Address” setting for Fedex.
  • Add “Include Insurance” setting for Fedex.
  • Add “Fedex One Rate” setting for Fedex.
  • Add “Additional Options” to Canada Post.
  • Add SinglePackageProvider class for providers to extend from, if the API doesn't support sending multiple packages in one request. This class will fetch the first box, and add each subsequent (cached) response for all other boxes that are identical.
  • Add support for all providers to use env variables in their settings.
  • Add API connection testing for all providers, allowing you to troubleshoot API credentials before getting to shipping.
  • Add supportsConnection(), checkConnection() and getIsConnected() methods to providers.
  • Add testing classes for addresses and packages. Can be freely used to fetch a range of different values for testing responses.

Changed

  • Postie now requires PHP 7.1+.
  • Multiple packages are now possible for Australia Post, DHL Express and TNT Australia. This not only improves a "too large to ship" response, but should provide more accurate pricing overall. Previously, Postie bundled all items in a single package, which would often go over maximum dimensions/weights.
  • Existing providers now use the "Pack items into a single box" box packing algorithm. This is essentially the same as previous versions to prevent a breaking change.
  • Tidied up the shipping methods table for providers.
  • Some internal cleanup with providers (may affect custom providers). Refer to the updated docs.
  • Provide field instructions for a number of provider settings.
  • Visually highlight provider API instructions.

Fixed

  • Fix settings sidebar overflow in some cases.

Removed

  • Removed Provider::getPackageDimensions().
  • Removed Provider::getDimensions().
  • Removed Provider::getSplitBoxWeights().

2.3.6

01 Dec 23:41
Compare
Choose a tag to compare

Added

  • Add some additional Fedex rates for international distribution.

Changed

  • Update jeremy-dunn/php-fedex-api-wrapper to 4.0.

Fixed

  • Fix UPS using Canadian origin address not working correctly.
  • Fix package dimensions not calculating correctly in some instances.

2.3.5

30 Oct 02:14
Compare
Choose a tag to compare

Added

  • Add shipDate and shipTime for DHL Express.
  • Add modifyPayload event to allow modifying the payload before it’s sent to providers to fetch rates.

2.3.4

24 Oct 02:00
Compare
Choose a tag to compare

Added

  • Add missing Fedex UK Domestic services.
  • Add Pickup Type option for UPS. You may want to change this to “Customer Counter” for more accurate UPS results, but do test this for your own needs. The default is left as-is (“Daily Pickup”) so as not to be a breaking change.