I am having an issue where the address saved to the customer is deleted during the checkout.
During the checkout the customer will enter either billing or shipping address. This address needs to be saved both in the customer addresses and as the bill to / ship to address. The problem is that when the SaveShipToAddress or SaveBillToAddress methods are called, the addresses that have been saved are deleted.
// this line saves the address to the customer
var customerAddress = customer.CreateCustomerAddress(address, label, AddressType.Shipping);
// then save the ship to address for checkout
_checkoutManagerBase.Customer.SaveShipToAddress(address);
Does anyone know why this is happening and how to solve it?
Customer address deleted by checkout customer manager
I am having an issue where the address saved to the customer is deleted during the checkout.
During the checkout the customer will enter either billing or shipping address. This address needs to be saved both in the customer addresses and as the bill to / ship to address. The problem is that when the SaveShipToAddress or SaveBillToAddress methods are called, the addresses that have been saved are deleted.
Does anyone know why this is happening and how to solve it?
is working on a reply...