4

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?

  • This email template is magento 1 to magento 2 in migrate. Please check all email template also. – Vijay Khirade Jun 27 '19 at 11:00
  • @Vijay-CyberLocker how can I back default email templates? – Ashen One Jun 27 '19 at 11:02
  • You can select default email template or create new email template. – Vijay Khirade Jun 27 '19 at 11:12
3

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()}}
| improve this answer | |
1

To get the customer name in Email template, Please Use

{{trans "%name," name=$billing.getName()}}

For billing and shipping address, Please use below code respectively.

{{trans "Billing Info"}}

{{var formattedBillingAddress|raw}}

{{trans "Shipping Info"}}

{{var formattedShippingAddress|raw}}

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.