Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 %}
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.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025