- Issue created by @drupalferret
- 🇹🇭Thailand AlfTheCat
Same issue here, using latest dev and latest version of Drupal.
In the log, I get:
Warning: Trying to access array offset on value of type null in Drupal\commerce_shipping_weight_tariff\Plugin\Commerce\ShippingMethod\ShippingByWeight->calculateRates() (line 134 of /var/www/***/modules/contrib/commerce_shipping_weight_tariff/src/Plugin/Commerce/ShippingMethod/ShippingByWeight.php)
Hi,@Yaroslav Samoilenko and all other mantainers
here is the patch to resolve this issue.This patch contains updated code for the ShippingByWeight class, addressing null value warnings and improving error handling.The updated ShippingByWeight class now includes robust error handling to prevent null value warnings during shipping rate calculation.These configuration updates enhance the flexibility and accuracy of weight-based tariffs in the commerce_shipping_weight_tariff module.
Hope you appreciate my time and efforts.
Thank you.