53 $this->_scopeConfig = $scopeConfig;
54 $this->_carrierFactory = $carrierFactory;
55 parent::__construct(
$data);
67 $config = $this->_scopeConfig->getValue(
'carriers', \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$store);
68 foreach (array_keys(
$config) as $carrierCode) {
69 if ($this->_scopeConfig->isSetFlag(
70 'carriers/' . $carrierCode .
'/active',
71 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
74 $carrierModel = $this->_carrierFactory->create($carrierCode,
$store);
76 $carriers[$carrierCode] = $carrierModel;
92 $config = $this->_scopeConfig->getValue(
'carriers', \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$store);
93 foreach (array_keys(
$config) as $carrierCode) {
94 $model = $this->_carrierFactory->create($carrierCode,
$store);
96 $carriers[$carrierCode] =
$model;
const XML_PATH_ORIGIN_REGION_ID
getAllCarriers($store=null)
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Shipping\Model\CarrierFactory $carrierFactory, array $data=[])
const XML_PATH_ORIGIN_POSTCODE
getActiveCarriers($store=null)
const XML_PATH_ORIGIN_CITY
const XML_PATH_ORIGIN_COUNTRY_ID