VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Donamd1 on July 29, 2017, 07:57:24 AM

Title: Remove mail address in confirmation mail
Post by: Donamd1 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.

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


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.