Author Topic: Remove mail address in confirmation mail  (Read 267 times)


  • Beginner
  • *
  • Posts: 13
  • A beginner
Remove mail address in confirmation mail
« on: July 29, 2017, 07:57:24 am »
I would like to remove the mail address in the confirmation mail for the shopper.
The amil address has no sense because the shopper already recieves the mail, so the mail address is known and hasn't to be verified.

For the file components/com_virtuemart/views/invoice/tmpl/mail_html_shopperaddresses.php I made an override and added code to make a condition if the field has not the name bt_email then it will be printed, else not.

Code: [Select]
<?php if ($field['name'] !='bt_email') { ?>
            <span class="values vm2<?php echo '-' $field['name'?>" ><?php echo $field['value'?></span>

I tested it by changing the condition to phone_1 and then the value from field phone_1 wasn't printed, but by checking to bt_email it doesn't work.