verbb / postie

A Craft Commerce shipping calculator plugin.
Other
12 stars 18 forks source link

TypeError Upon Selecting UPS Shipping Method in Checkout #4

Closed bfopma closed 5 years ago

bfopma commented 5 years ago

Description

During checkout, if I select an available UPS shipping method (e.g. Next Day Air Saver) and continue to the next step in the checkout process, the following error occurs:

TypeError Return value of craft\commerce\models\ShippingRule::getDescription() must be of the type string, null returned

This appears to trace back to verbb\postie\models\ShippingMethod, potentially in the getShippingRules() function.

I attempted to do something like $shippingRule->description = 'Test'; but encountered other errors far beyond my level of competence. :)

Steps to reproduce

  1. Enable UPS provider (not sure if this issue is specific to UPS)
  2. Add one or more eligible products to cart
  3. Select an available UPS shipping method
  4. Proceed to next step in checkout

Additional info

engram-design commented 5 years ago

Fixed in 2.0.2