File tree Expand file tree Collapse file tree 4 files changed +6
-189
lines changed Expand file tree Collapse file tree 4 files changed +6
-189
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -696,7 +696,9 @@ protected function _prepareCustomerQuote($quote)
696
696
}
697
697
//save here new customer address
698
698
$ shippingAddress ->setCustomerId ($ quote ->getCustomerId ());
699
- $ this ->addressRepository ->save ($ shippingAddress );
699
+ if (!$ shippingAddress ->getId ()) {
700
+ $ this ->addressRepository ->save ($ shippingAddress );
701
+ }
700
702
$ quote ->addCustomerAddress ($ shippingAddress );
701
703
$ shipping ->setCustomerAddressData ($ shippingAddress );
702
704
$ this ->addressesToSync [] = $ shippingAddress ->getId ();
@@ -728,7 +730,9 @@ protected function _prepareCustomerQuote($quote)
728
730
$ billingAddress ->setIsDefaultBilling (true );
729
731
}
730
732
$ billingAddress ->setCustomerId ($ quote ->getCustomerId ());
731
- $ this ->addressRepository ->save ($ billingAddress );
733
+ if (!$ billingAddress ->getId ()) {
734
+ $ this ->addressRepository ->save ($ billingAddress );
735
+ }
732
736
$ quote ->addCustomerAddress ($ billingAddress );
733
737
$ billing ->setCustomerAddressData ($ billingAddress );
734
738
$ this ->addressesToSync [] = $ billingAddress ->getId ();
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 79
79
<plugin name =" merge_guest_orders_with_customer_after_place"
80
80
type =" Magento\QuoteGraphQl\Plugin\Model\MergeGuestOrder" />
81
81
</type >
82
- <type name =" Magento\Quote\Model\Cart\CustomerCartResolver" >
83
- <plugin name =" create_customer_cart"
84
- type =" Magento\QuoteGraphQl\Plugin\Model\Cart\CustomerEmptyCartResolver" />
85
- </type >
86
82
</config >
You can’t perform that action at this time.
0 commit comments