Merge pull request #12 from bagisto/jitendra

Check process fixed
This commit is contained in:
JItendra Singh 2018-09-20 15:46:34 +05:30 committed by GitHub
commit 40d481e64d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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];
}

View File

@ -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;