Skip to content

Commit

Permalink
#2467 Selected checkout attributes were lost after login. Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMaz committed Aug 1, 2017
1 parent 78b975f commit ed9f00f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Libraries/Nop.Services/Orders/ShoppingCartService.cs
Expand Up @@ -1302,6 +1302,10 @@ public virtual void MigrateShoppingCart(Customer fromCustomer, Customer toCustom
_customerService.UpdateCustomer(toCustomer);

}

//move selected checkout attributes
var checkoutAttributesXml = fromCustomer.GetAttribute<string>(SystemCustomerAttributeNames.CheckoutAttributes, _genericAttributeService, _storeContext.CurrentStore.Id);
_genericAttributeService.SaveAttribute(toCustomer, SystemCustomerAttributeNames.CheckoutAttributes, checkoutAttributesXml, _storeContext.CurrentStore.Id);
}

#endregion
Expand Down

0 comments on commit ed9f00f

Please sign in to comment.