54 \
Magento\Framework\
App\Config\ScopeConfigInterface $scopeConfig,
55 \
Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory,
56 \Psr\Log\LoggerInterface
$logger,
57 \
Magento\Shipping\Model\Rate\ResultFactory $rateResultFactory,
58 \
Magento\Quote\Model\Quote\Address\RateResult\MethodFactory $rateMethodFactory,
61 $this->_rateResultFactory = $rateResultFactory;
62 $this->_rateMethodFactory = $rateMethodFactory;
63 parent::__construct($scopeConfig, $rateErrorFactory,
$logger,
$data);
79 $result = $this->_rateResultFactory->create();
84 'free_shipping_subtotal' 88 $method = $this->_rateMethodFactory->create();
90 $method->setCarrier(
'freeshipping');
93 $method->setMethod(
'freeshipping');
113 $freeShipping =
false;
116 for (
$i = 0;
$i < $c;
$i++) {
117 if (
$items[
$i]->getProduct() instanceof \
Magento\Catalog\Model\Product) {
118 if (
$items[
$i]->getFreeShipping()) {
119 $freeShipping =
true;
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory, \Psr\Log\LoggerInterface $logger, \Magento\Shipping\Model\Rate\ResultFactory $rateResultFactory, \Magento\Quote\Model\Quote\Address\RateResult\MethodFactory $rateMethodFactory, array $data=[])
_updateFreeMethodQuote($request)
collectRates(RateRequest $request)