Developer forum

Forum » Templates » TemplateTag Ecom:Order.Customer.Name

TemplateTag Ecom:Order.Customer.Name

Siv-Renate Hansen
Siv-Renate Hansen
Reply

According to doc-site I can retrieve Customer name from the template tag Ecom:Order.Customer.Name, and in the same way retrieve Ecom:Order.Customer.Email to get the email address from the order. Email is fine, but I cannot make Name work (ref https://doc.dynamicweb.com/template-tags/ecommerce/shopping-cart/email/ecomorder-customer-name)

For example, in my order information screen, the name is retrieved from UserManagement:User.Name (in my case DXC Testkunde) and the user may change this. In the receipt, I use  Ecom:Order.Customer.Name to retrieve the name from the order, but this retrieves the Description from an address registered on the user, which is the only reference I have to the word "hjem" in my contact.

What am I doing wrong here?

I'll be happy to provide you with examples.


Replies

 
Nicolai Pedersen
Reply

Hi Siv

In your receipt template, try to add

<div>
@TemplateTags()
</div>

That will give you all tags in that template and their values. That will help you to find the right one.

Also feel free to post a screen dump of your order step and receipt step with the data you enter so we can see how it looks.

BR Nicolai

 

You must be logged in to post in the forum