File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/Fedex/Model Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1182,13 +1182,13 @@ protected function _formShipmentRequest(\Magento\Framework\DataObject $request)
11821182 /** @var Order $order */
11831183 $ order = $ request ->getOrderShipment ()->getOrder ();
11841184 foreach ($ packageItems as $ orderItemId => $ itemShipment ) {
1185- $ item = $ order ->getItemById ($ orderItemId );
1185+ if ($ item = $ order ->getItemById ($ orderItemId )) {
1186+ $ unitPrice += $ item ->getPrice ();
1187+ $ itemsQty += $ itemShipment ['qty ' ];
11861188
1187- $ unitPrice += $ item ->getPrice ();
1188- $ itemsQty += $ itemShipment ['qty ' ];
1189-
1190- $ itemsDesc [] = $ item ->getName ();
1191- $ productIds [] = $ item ->getProductId ();
1189+ $ itemsDesc [] = $ item ->getName ();
1190+ $ productIds [] = $ item ->getProductId ();
1191+ }
11921192 }
11931193
11941194 // get countries of manufacture
You can’t perform that action at this time.
0 commit comments