File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
app/code/Magento/Quote/Model/Quote Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ public function collect(
169
169
);
170
170
$ total ->setTotalAmount ($ this ->getCode (), $ amountPrice );
171
171
$ total ->setBaseTotalAmount ($ this ->getCode (), $ rate ->getPrice ());
172
+ $ total ->setShippingAmount ($ address ->getShippingAmount ());
172
173
$ shippingDescription = $ rate ->getCarrierTitle () . ' - ' . $ rate ->getMethodTitle ();
173
174
$ address ->setShippingDescription (trim ($ shippingDescription , ' - ' ));
174
175
break ;
Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ public function collect(\Magento\Quote\Model\Quote $quote)
143
143
foreach ($ quote ->getAllAddresses () as $ address ) {
144
144
$ addressTotal = $ this ->collectAddressTotals ($ quote , $ address );
145
145
146
+ $ total ->setShippingAmount ($ addressTotal ->getShippingAmount ());
147
+ $ total ->setBaseShippingAmount ($ addressTotal ->getBaseShippingAmount ());
148
+
146
149
$ total ->setSubtotal ((float )$ total ->getSubtotal () + $ addressTotal ->getSubtotal ());
147
150
$ total ->setBaseSubtotal ((float )$ total ->getBaseSubtotal () + $ addressTotal ->getBaseSubtotal ());
148
151
You can’t perform that action at this time.
0 commit comments