Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

how can i get CustomerName from Icart?

Vote:
 

Hi Team,

How to get the customer name from Icart?

Current code is using carthelper => Cart.Cart.CustomerName

Advance Thanks,

#195255
Jul 18, 2018 17:33
Vote:
 

https://world.episerver.com/documentation/developer-guides/commerce/orders/order-system-overview/

Check the order objects diagram for the Commerce version you're at, there you can see the models and what they have!

IOrderGroup has CustomerId for example :)

#195257
Jul 18, 2018 17:58
Vote:
 

As Joel said, you can get the customerid which is a guid, and then use CustomerContext to load the CustomerContact for the name.

#195258
Jul 18, 2018 18:25
Vote:
 

Thanks Joel and quan.

#195261
Jul 18, 2018 19:32
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.