Magento 2.3 – Fix Email Template Address Variable Not Displaying

email-templatesmagento2.3variables

The email template doesn't get a shipping method variable.

Email template

As you can see $billing.getName not works.
Shipping and Billing information is empty.
Maybe something wrong with forms or submitting process?

Best Answer

For email template changes following section

    For Guest User

    {{trans "%customer_name," customer_name=$order.getBillingAddress().getName()}}

    For Customer

    {{trans "%customer_name," customer_name=$order.getCustomerName()}}

    Billing Information:

    {{var formattedShippingAddress|raw}}

    Payment Method:

    {{var payment_html|raw}}

    Shipping Information:

    {{var formattedShippingAddress|raw}}

    Shipping Method:

    {{var order.getShippingDescription()}}