Add Name and Company to Account Invitation Template

Hi, I am trying to add customer first name and company to my account invitation template, but I’m obviously missing something in my code as {{shipping_address.first_name}} and {{shipping_address.company}} are appearing as blanks. Please see below (bold is my additions to template). Any help is gratefully accepted. Thanks in advance.

{% capture email_title %}Activate your account{% endcapture %}
{% capture email_body %}Hi {{shipping_address.first_name}}, a customer account has been created for {{shipping_address.company}} at {{shop.name}}. All you have to do is activate it.{% endcapture %}

Hey @pflemo ,

You may want to try using {{customer.default_address.first_name}} and {{customer.default_address.company}}. Or you can also just use {{customer.first_name}} for the name.

As long as the customer has these fields filled out, this should work.

Thanks Brett.

I’ll give that a try.