News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

invoice layouting

Started by BenRoe, November 02, 2020, 12:39:17 PM

Previous topic - Next topic

BenRoe

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

The invoice editor works OK for me. What are you trying to do?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

BenRoe

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

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

BenRoe

...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

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 for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

pinochico

#6
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 for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

BenRoe

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

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 for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

GJC Web Design

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation