File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
app/code/Magento/Quote/Model/Quote Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ public function collect(\Magento\Quote\Model\Quote $quote)
144
144
145
145
$ total ->setSubtotal (0 );
146
146
$ total ->setBaseSubtotal (0 );
147
- $ total ->setBaseSubtotalTotalInclTax (0 );
148
147
149
148
$ total ->setSubtotalWithDiscount (0 );
150
149
$ total ->setBaseSubtotalWithDiscount (0 );
@@ -270,7 +269,7 @@ public function collectAddressTotals(
270
269
'total ' => $ total
271
270
]
272
271
);
273
- $ total ->setBaseSubtotalTotalInclTax ($ total ->getBaseSubtotalInclTax ());
272
+ ( $ total -> getBaseSubtotal () > 0 )?? $ total ->setBaseSubtotalTotalInclTax ($ total ->getBaseSubtotalInclTax ());
274
273
$ address ->addData ($ total ->getData ());
275
274
$ address ->setAppliedTaxes ($ total ->getAppliedTaxes ());
276
275
return $ total ;
You can’t perform that action at this time.
0 commit comments