I have a requirement that I have two attributes in each product i.e. 1. is_product_old 2. if_old_comment
At the end of invoice email and invoice pdf, I need to show if_old_comment in case is_product_old is yes for each product ordered.
My problem is I don't know which files I should Edit to customize invoice Email and Invoice pdf.
then at the end of both, I'll get the product list of that order in that invoice
And for each product, I'll show the if_old_comment in case is_product_old is yes for that product.
So I would like to know what files I need to edit for this and function that can help me to get product list for this->invoiceId and how to get the attribute of the productID.
I am in Magento 2.2.2
Here I answer my own question others may get help from it.
to get the comment in the bottom of email template:
I created two product attributes is_product_old and if_old_comment
and extended email template for sales like this :
app/design/frontend/Codazon/fastest/ellyana/Magento_Sales/templates/email
after adding my cutsom code I got the comment If any added to each product at the bottom of the email template.