Author Topic: invoice layouting  (Read 313 times)

BenRoe

  • Beginner
  • *
  • Posts: 20
  • A beginner
  • Skype Name: benjamin_roehling
invoice layouting
« on: November 02, 2020, 12:39:17 pm »
Why does virtuemart offer an invoice header/footer Editor if it doesnt take any formatting/layouting from it?
is there a plugin that actually works?
Joomla 3.9.21 - VirtueMart 3.8.4 10335 - PHP 7.3.2

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27950
  • Always on vacation
    • Jenkin Hill Internet
Re: invoice layouting
« Reply #1 on: November 02, 2020, 13:14:57 pm »
The invoice editor works OK for me. What are you trying to do?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.7 10374 on Joomla 3.9.23 PHP 7.4.12

BenRoe

  • Beginner
  • *
  • Posts: 20
  • A beginner
  • Skype Name: benjamin_roehling
Re: invoice layouting
« Reply #2 on: November 02, 2020, 13:28:53 pm »
Im trying to align the company logo to the right side (text-align right/float:right) but in the preview it shows on the left
Joomla 3.9.21 - VirtueMart 3.8.4 10335 - PHP 7.3.2

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 812
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: invoice layouting
« Reply #3 on: November 02, 2020, 14:01:44 pm »
table?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

BenRoe

  • Beginner
  • *
  • Posts: 20
  • A beginner
  • Skype Name: benjamin_roehling
Re: invoice layouting
« Reply #4 on: November 02, 2020, 14:09:06 pm »
...yeah, a table works for the new layout

a table is also good for eating food and drinking water  :P I hope you dont misunderstand me, I just discovered that a table is good for eating AND for layouting stuff  :)
Joomla 3.9.21 - VirtueMart 3.8.4 10335 - PHP 7.3.2

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 812
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: invoice layouting
« Reply #5 on: November 02, 2020, 14:10:41 pm »
Basic installation VM 3.8.4
My invoice has the logo on the right side - I don't use float or another css style.

Where is problem?.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 812
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: invoice layouting
« Reply #6 on: November 02, 2020, 14:21:16 pm »
sorry, you need logo on right side.

Ok, then go in invoice header layout and change it - it used table for food :D

components/com_virtuemart/views/invoice/tmpl/mail_html_header.php

Table is used and you can create custom override without table.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

BenRoe

  • Beginner
  • *
  • Posts: 20
  • A beginner
  • Skype Name: benjamin_roehling
Re: invoice layouting
« Reply #7 on: November 02, 2020, 14:38:32 pm »
can you layout the invoice without touching PHP Code? That stuff that is in between the header and the footer? practically
Joomla 3.9.21 - VirtueMart 3.8.4 10335 - PHP 7.3.2

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 812
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: invoice layouting
« Reply #8 on: November 02, 2020, 14:50:45 pm »
I think no, but I don't use invoice from VM.
There are many online invoice services, which create better invoice
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9901
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: invoice layouting
« Reply #9 on: November 02, 2020, 15:24:46 pm »
as with most html to pdf libraries TCPDF only understands very basic html/css so as you found it is all a bit primitive.
The invoice is laid out in tables as are most pdf creators.
the templates are very basic so to adjust them is usually the easiest way

invoice.php
invoice_history.php
invoice_items.php
invoice_order.php

templates\your_template\html\com_virtuemart\invoice\invoice_items.php  etc  and get the invoice as you want it
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