From 272365cbe01af9db810a772ad3a8c1609cec957e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 18 Jul 2013 16:34:35 +0200 Subject: [PATCH] // small fix --- classes/Carrier.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes/Carrier.php b/classes/Carrier.php index 1d0c7c092..9bb6e7326 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -937,9 +937,11 @@ class CarrierCore extends ObjectModel return false; } - public function getRangeObject() + public function getRangeObject($shipping_method = false) { - $shipping_method = $this->getShippingMethod(); + if (!$shipping_method) + $shipping_method = $this->getShippingMethod(); + if ($shipping_method == Carrier::SHIPPING_METHOD_WEIGHT) return new RangeWeight(); elseif ($shipping_method == Carrier::SHIPPING_METHOD_PRICE)