Add Name and Company to Account Invitation Template

Add Name and Company to Account Invitation Template

pflemo
Tourist
6 0 0

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 <a>{{shipping_address.first_name}}</a>, a customer account has been created for <a>{{shipping_address.company}}</a> at <a href="{{shop.url}}">{{shop.name}}</a>. All you have to do is activate it.{% endcapture %}

Replies 2 (2)

Brett_Helium
Shopify Partner
301 58 134

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.

Brett | Helium
- Customer Fields ✪✪✪✪✪ (360+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (290+ reviews)
- Strike Automatic Discounts NEW!
pflemo
Tourist
6 0 0
Thanks Brett.

I'll give that a try.