Developer forum

Forum » Ecommerce - Standard features » Different behavior on UserManagement:User.UserAddresses loop

Different behavior on UserManagement:User.UserAddresses loop

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi,

The loop UserManagement:User.UserAddresses on the Customer Center app, retrieves all user addresses including the default address, even when the user only has that one.
Although on the Shopping Cart app, the same loop only retrieves addresses when the user has addresses excluding the default address. Could we have it retrieving even only with the default address?

DW version: 9.4.18.

Thanks!
BR, Mario


Replies

 
Nicolai Pedersen
Reply

Hi Mario

It is duely noted - currently I cannot promise anything.

Thank you for the feedback.

Nicolai

 
Jesper Holm Damgaard
Reply

Hi there

If you revisit the UserManagement:User.UserAddresses loop, please consider adding UserManagement:User.UserAddress.CountryCode.

All the best, 
Jesper

 
Nicolai Pedersen
Reply

Hi Jesper

According to code, there is a UserManagement:User.UserAddress.CountryCode tag in the UserManagement:User.UserAddresses loop...?

 
Lasse Hove Nielsen
Lasse Hove Nielsen
Reply

Hi Nicolai,

Is there any news regarding the issue Mario found as I'm having the same issue?

 
Nicolai Pedersen
Reply

Hi Lasse

No change as it would break compatibility.

In your code inside the loop, simply do a conditional on the IsDefault and filter out the address.

BR Nicolai

 

You must be logged in to post in the forum