0

This question already has an answer here:

How to modify invoice email template code?

how to find the invoice email file path.

marked as duplicate by Siarhey Uchukhlebau, Amit Bera, Rakesh Jesadiya, Keyul Shah, Mufaddal May 26 '17 at 12:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    May i know what exact information u want to customize in the invoice email and please specify the details more so that i can help you accordingly – Nagaraju Kasa May 25 '17 at 10:47
  • please check this link might be useful for you magento.stackexchange.com/questions/2722/… – Nagaraju Kasa May 25 '17 at 10:50
  • I want to add one row Advance Deposite ₹1,000.00 ,Price should be dynamic. Below Shipping & Handling . In invoice email template i want to display . – Suma J May 25 '17 at 10:56
  • please follow the below steps and confirm me whether u got the output thanks – Nagaraju Kasa May 25 '17 at 12:22
1

Step 1: Enable invoice email from the backend

System=>Configuration=>Sales=>Sales Emails=>Invoice=>Enabled (yes)

Step 2:

Please find the below function from the path app/code/core/Mage/Sales/Model/Order/Invoice.php

public function sendEmail($notifyCustomer = true, $comment = '')

Screen Shot: enter image description here Step 3: Please specify the {{var advance_deposite}} in your invoice_new.html

from the file path app/locale/en_US/template/email/sales/invoice_new.html as shown in below

<td class="method-info">
 <h6>Advance Deposite</h6>
 {{var advance_deposite}}
</td>

Screen Shot: enter image description here

Please follow the tips:

=>Try in the dev site

=>Use mage::log whether you are able to getting the value or not in the invoice.php

=>invoice send mail enter image description here

  • I am unable to get the value of advance deposite. – Suma J May 25 '17 at 12:43
  • whether the value has been saved in "sales_falt_order" or sales_flat_invoice tables please check the same in database column and mention the 'get' method accordingly. – Nagaraju Kasa May 25 '17 at 12:51
  • please check and mention the column name so that i can mention the the get method here – Nagaraju Kasa May 25 '17 at 12:53
  • Sounds great, please accept or like the answer so that it will be helpful to others. Happy coding and thanks – Nagaraju Kasa May 25 '17 at 13:08
  • 1
    ok that's great news all the best. – Nagaraju Kasa May 26 '17 at 8:06

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