Hi guys,
Really specific question here, why would NopCommerce add the shipping address in the SaveOrderDetails method?
For version 4.3, this would be line 825:
if (details.ShippingAddress != null)
{
_addressService.InsertAddress(details.ShippingAddress);
order.ShippingAddressId = details.ShippingAddress.Id;
}
Wouldn't this just keep reduplicating the same address in the database over and over?
Wouldn't it be better to just use the existing address?
Just a bit confused here because this feature is causing a referential issue with our API which is based on NopCommerce. Our API consumers are sending in the address they want for the order and by the time the order is created a new address is associated to the order.
Obviously the new address will have a different Id and therefore, our API consumers are just left confused why this is the case.