The default email Order Confirmation Template includes the Order Items Grid variable.
I need to add custom information to the first column.
By default, the first column in the grid looks contains just the item name and item SKU.
I need to call my own function for each item and generate a code that needs to be added right after item SKU.
Where do I do it programmatically?
Best Answer
Here is the solution I have customized sales_order_invoice area so you can customized any area which you want only you have to follow the steps only your are will be different.
files are below in which you need to customize:-
sales_order_invoice.xml
di.xml
Items.php :- You block file you will create function here to access in your phtml file.
Items.phtml :- here is the file where you will add your custom information
I hope this will help you.