VirtoCommerce / vc-storefront

Virto Commerce Storefront - ASP.NET Core 8.0
http://virtocommerce.com
Other
211 stars 212 forks source link

Duplication of address #240

Closed adminoren closed 5 years ago

adminoren commented 5 years ago

Version info:

Expected behavior

User has one address stored in the database. Request to URL /storefrontapi/account?t=... should return one address in fields addresses and contact.addresses of response.

Actual behavior

2019-04-16_17-09-06

tatarincev commented 5 years ago

@adminoren This is logic by design to merge Contact and User properties for API methods that return User. This logic is left for backward compatibility with old themes. You might disable this Json converter in your solution if this behavior is not desired. https://github.com/VirtoCommerce/vc-storefront-core/blob/master/VirtoCommerce.Storefront/JsonConverters/BackwardCompatibilityJsonConverter.cs#L83

Please close this issue if it will help you.