Reputation: 1390
The customer ordered a product and received an email.
http://img197.imageshack.us/i/emptyfieldsemail.png/
But there are optional fields and I want to remove them from email body if they are not filled by the user. If the company name is not filled in then I dont want to show them in the email but i cant find the place to edit.
In the components
/components/com_virtuemart/themes/theme048/templates/order_emails
I found some templates but cant figure out where to edit those empty fields
Upvotes: 3
Views: 4122
Reputation: 36879
You can change the template in the administrator/components/com_virtuemart/html/templates/order_emails/email_english.html
"Remember the language at the end of the file email_your_language.html , the filename with the default language of your Virtuemart Installation is usually the file that needs to be edited."
The email template is populated with content from the administrator/components/com_virtuemart/classes/ps_checkout.php file using the method function email_receipt(). The email_receipt() function defines placeholders in the template and the values of them are being assigned by using the function str_replace.
I hope this information helps
Upvotes: 1