commit
40d481e64d
|
|
@ -73,7 +73,7 @@ abstract class AbstractShipping
|
|||
$channelId = core()->getCurrentChannel()->id;
|
||||
}
|
||||
|
||||
$shippingConfig = Config::get('carriers' . $this->getCode());
|
||||
$shippingConfig = Config::get('carriers.' . $this->getCode());
|
||||
|
||||
return $shippingConfig[$field];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ class Shipping
|
|||
foreach(Config::get('carriers') as $shippingMethod) {
|
||||
$object = new $shippingMethod['class'];
|
||||
|
||||
// if($object->isAvailable()) {
|
||||
if($object->isAvailable()) {
|
||||
$rates[] = $object->calculate();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
return $rates;
|
||||
|
|
|
|||
Loading…
Reference in New Issue