Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Miguel Lopez 15 posts 117 karma points
    Mar 13, 2017 @ 16:06
    Miguel Lopez
    0

    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.

    // 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?

Please Sign in or register to post replies

Write your reply to:

Draft