File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed
app/code/Magento/OfflineShipping/Model/Carrier Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -63,30 +63,8 @@ public function __construct(
63
63
*/
64
64
public function collectRates (RateRequest $ request )
65
65
{
66
- if (!$ this ->getConfigFlag ('active ' )) {
67
- return false ;
68
- }
69
-
70
- /** @var \Magento\Shipping\Model\Rate\Result $result */
71
- $ result = $ this ->_rateResultFactory ->create ();
72
-
73
- if (!empty ($ rate )) {
74
- /** @var \Magento\Quote\Model\Quote\Address\RateResult\Method $method */
75
- $ method = $ this ->_rateMethodFactory ->create ();
76
-
77
- $ method ->setCarrier ('pickup ' );
78
- $ method ->setCarrierTitle ($ this ->getConfigData ('title ' ));
79
-
80
- $ method ->setMethod ('store ' );
81
- $ method ->setMethodTitle (__ ('Store Pickup ' ));
82
-
83
- $ method ->setPrice (0 );
84
- $ method ->setCost (0 );
85
-
86
- $ result ->append ($ method );
87
- }
88
-
89
- return $ result ;
66
+ // Pickup shipping method is not supported in Magento2 yet.
67
+ return false ;
90
68
}
91
69
92
70
/**
You can’t perform that action at this time.
0 commit comments