VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gcarne on May 26, 2014, 10:58:32 AM

Title: Email Address in Bill To
Post by: gcarne on May 26, 2014, 10:58:32 AM
In FE as well as in invoices the first line of the Bill To address is the email address. How/where can this line be removed?
Title: Re: Email Address in Bill To
Post by: gcarne on May 28, 2014, 15:40:58 PM
Many reads, no reply. Moderator?
Title: Re: Email Address in Bill To
Post by: GJC Web Design on May 28, 2014, 19:20:53 PM
in e.g components/com_virtuemart/views/invoice/tmpl/invoice_order.php

it loops thru the fields  so you will have to know a bit of php to skip it

foreach ($this->userfields['fields'] as $field) {
if (!empty($field['value'])) {
    echo '<tr><td class="key">' . $field['title'] . '</td>'
    . '<td>' . $field['value'] . '</td></tr>';
}
    }
Title: Re: Email Address in Bill To
Post by: gcarne on May 29, 2014, 02:27:11 AM
This is something that appears in several different places, but the coding is pretty much the same. My main issue was actually with the email order confirmation where it did not look good. I found the file and with the help of my best friend Mr. Google even a novice like me could do some php. Being stubborn helps  8)

Thanks for showing me in the right direction.