VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: sanderversteegh on July 27, 2018, 14:56:43 PM

Title: change layout delivery note
Post by: sanderversteegh on July 27, 2018, 14:56:43 PM
Good day.
I'm working on a little web shop on Joomla (3.8.10) and Virtualmart (3.2.14).
Now I'm trying to change the delivery note layout, I already found a way to make the invoice different from the delivery note. I also succeeded to change the location of the address to my liking by changing a few files in componets/com_virtualmart/views/invoice/tmpl.
Now I have 2 problems I can't solve.

If you look at my delivery note there is a big empty space between the logo and the Address, I want to make this smaller or remove it entirely so when I fold it I have the entire address on the front.

I also want to remove the text like Title:, Voornaam, Achternaam, ETC so you only get the
customer information.
Thank you for your help,
Greetings Sander
Title: Re: change layout delivery note
Post by: GJC Web Design on July 28, 2018, 16:11:44 PM
the logo gap is this margin setting

labels remove in

components\com_virtuemart\views\invoice\tmpl\invoice_order.php

    foreach ($this->userfields['fields'] as $field) {
if (!empty($field['value'])) {
    echo '<tr><td class="key">' . $field['title'] . '</td>'
    . '<td>' . $field['value'] . '</td></tr>';
}
    }


to

    foreach ($this->userfields['fields'] as $field) {
if (!empty($field['value'])) {
    echo '<tr><td>' . $field['value'] . '</td></tr>';
}
    }
Title: Re: change layout delivery note
Post by: sanderversteegh on July 29, 2018, 15:46:05 PM
Thank you! You're my hero!
I managed to make so when someone choses an alternative package address It replaces the biling address. I have it now like i want it.