Skip to main content
3 votes
Accepted

How to get email template content using template id in magento 2?

Using the below helper method you can get the template data <?php namespace [Vendor]\[Module]\Helper; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper\Context; use ...
Grazitti Dev's user avatar
1 vote
Accepted

Magento 2 - How to add data from a field in sales-order-item table to the order items in order confirmation email

You need to override the items.phtml code Path:app/design/frontend/Theme/Magento_Sales/templates/email/items.phtml And you can add your custom attribute like below, <td class="item-...
Harish kuril's user avatar
1 vote

How to add billing Country_id from sales_order_adress in Email Template

Please try with the following code. {{var order.getShippingAddress().getCountry()}} //Get the country’s ID {{var order.getShippingAddress().getCountryModel().getName()}} //Get the country’s full name ...
Jitendra Patel's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible