London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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.