File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/OfflineShipping/Model/Carrier Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,7 @@ public function collectRates(RateRequest $request)
133
133
$ freeQty += $ item ->getQty () * ($ child ->getQty () - $ freeShipping );
134
134
}
135
135
}
136
- } elseif (
137
- ($ item ->getFreeShipping () || $ item ->getAddress ()->getFreeShipping ()) &&
136
+ } elseif (($ item ->getFreeShipping () || $ item ->getAddress ()->getFreeShipping ()) &&
138
137
($ item ->getFreeShippingMethod () == null || $ item ->getFreeShippingMethod () &&
139
138
$ item ->getFreeShippingMethod () == 'tablerate_bestway ' )
140
139
) {
@@ -194,7 +193,7 @@ public function collectRates(RateRequest $request)
194
193
* Free package weight has been already taken into account.
195
194
*/
196
195
$ request ->setPackageValue ($ freePackageValue );
197
- $ request ->setPackageValueWithDiscount ($ freePackageValue - $ request -> getPackageValueWithDiscount () );
196
+ $ request ->setPackageValueWithDiscount ($ freePackageValue );
198
197
$ request ->setPackageQty ($ freeQty );
199
198
$ rate = $ this ->getRate ($ request );
200
199
if (!empty ($ rate ) && $ rate ['price ' ] >= 0 ) {
You can’t perform that action at this time.
0 commit comments