Liquid, JavaScript, themes, sales channels
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.
User | RANK |
---|---|
37 | |
28 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023