@@ -597,17 +597,17 @@ protected function _prepareOrder(\Magento\Quote\Model\Quote\Address $address)
597
597
$ quote ->reserveOrderId ();
598
598
$ quote ->collectTotals ();
599
599
600
- $ order = $ this ->quoteAddressToOrder ->convert ($ address, [] );
600
+ $ order = $ this ->quoteAddressToOrder ->convert ($ address );
601
601
$ order ->setQuote ($ quote );
602
- $ order ->setBillingAddress ($ this ->quoteAddressToOrderAddress ->convert ($ quote ->getBillingAddress (), [] ));
602
+ $ order ->setBillingAddress ($ this ->quoteAddressToOrderAddress ->convert ($ quote ->getBillingAddress ()));
603
603
604
604
if ($ address ->getAddressType () == 'billing ' ) {
605
605
$ order ->setIsVirtual (1 );
606
606
} else {
607
- $ order ->setShippingAddress ($ this ->quoteAddressToOrderAddress ->convert ($ address, [] ));
607
+ $ order ->setShippingAddress ($ this ->quoteAddressToOrderAddress ->convert ($ address ));
608
608
}
609
609
610
- $ order ->setPayment ($ this ->quotePaymentToOrderPayment ->convert ($ quote ->getPayment (), [] ));
610
+ $ order ->setPayment ($ this ->quotePaymentToOrderPayment ->convert ($ quote ->getPayment ()));
611
611
if ($ this ->priceCurrency ->round ($ address ->getGrandTotal ()) == 0 ) {
612
612
$ order ->getPayment ()->setMethod ('free ' );
613
613
}
@@ -622,7 +622,7 @@ protected function _prepareOrder(\Magento\Quote\Model\Quote\Address $address)
622
622
)->setProductOptions (
623
623
$ _quoteItem ->getProduct ()->getTypeInstance ()->getOrderOptions ($ _quoteItem ->getProduct ())
624
624
);
625
- $ orderItem = $ this ->quoteItemToOrderItem ->convert ($ _quoteItem, [] );
625
+ $ orderItem = $ this ->quoteItemToOrderItem ->convert ($ _quoteItem );
626
626
if ($ item ->getParentItem ()) {
627
627
$ orderItem ->setParentItem ($ order ->getItemByQuoteItemId ($ item ->getParentItem ()->getId ()));
628
628
}
0 commit comments