News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove mail address in confirmation mail

Started by Donamd1, July 29, 2017, 07:57:24 AM

Previous topic - Next topic

Donamd1

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.