// small fix
This commit is contained in:
1 parent
d25689d00f
commit
272365cbe0
1 file changed
+4
-2
+4
-2
@@ -937,9 +937,11 @@ class CarrierCore extends ObjectModel
|
|||||||
return false;
|
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)
|
if ($shipping_method == Carrier::SHIPPING_METHOD_WEIGHT)
|
||||||
return new RangeWeight();
|
return new RangeWeight();
|
||||||
elseif ($shipping_method == Carrier::SHIPPING_METHOD_PRICE)
|
elseif ($shipping_method == Carrier::SHIPPING_METHOD_PRICE)
|
||||||
|
|||||||
Reference in new issue
Block a user