File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function __construct(
6262 $ shippingMethodCode = null ,
6363 $ paymentMethodCode = null
6464 ) {
65-
65+
6666 $ this ->addressRepository = $ addressRepository ;
6767 $ this ->quoteRepository = $ quoteRepository ;
6868 $ this ->quoteManagement = $ quoteManagement ;
@@ -170,7 +170,7 @@ private function saveBilling()
170170 {
171171 $ billingAddress = $ this ->cart ->getQuote ()->getBillingAddress ();
172172 $ billingAddress ->importCustomerAddressData (
173- $ this ->addressRepository ->getById ($ this ->getCustomerShippingAddressId ())
173+ $ this ->addressRepository ->getById ($ this ->getCustomerBillingAddressId ())
174174 );
175175 $ billingAddress ->save ();
176176 }
@@ -179,7 +179,7 @@ private function saveShipping()
179179 {
180180 $ shippingAddress = $ this ->cart ->getQuote ()->getShippingAddress ();
181181 $ shippingAddress ->importCustomerAddressData (
182- $ this ->addressRepository ->getById ($ this ->getCustomerBillingAddressId ())
182+ $ this ->addressRepository ->getById ($ this ->getCustomerShippingAddressId ())
183183 );
184184 $ shippingAddress ->setCollectShippingRates (true );
185185 $ shippingAddress ->collectShippingRates ();
You can’t perform that action at this time.
0 commit comments