Author Topic: change layout delivery note  (Read 204 times)

sanderversteegh

  • Beginner
  • *
  • Posts: 2
  • A beginner
change layout delivery note
« 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8221
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: change layout delivery note
« Reply #1 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

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

to

Code: [Select]
    foreach ($this->userfields['fields'] as $field) {
if (!empty($field['value'])) {
    echo '<tr><td>' . $field['value'] . '</td></tr>';
}
    }
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sanderversteegh

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: change layout delivery note
« Reply #2 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.