The email template doesn't get a shipping method variable.
As you can see $billing.getName
not works.
Shipping and Billing information is empty.
Maybe something wrong with forms or submitting process?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityThe email template doesn't get a shipping method variable.
As you can see $billing.getName
not works.
Shipping and Billing information is empty.
Maybe something wrong with forms or submitting process?
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()}}
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}}
For guest email
<p class="greeting">{{trans "%customer_name," customer_name=$order_data.customer_name}}</p>