VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: macyhvt on July 15, 2022, 15:57:56 PM

Title: Print invoice from Iframe
Post by: macyhvt on July 15, 2022, 15:57:56 PM
Hi,
I want to change the layout of iframe invoice at virtuemart->orders->print button(screenshot attached).
Can someone please help me find out where to find the files?
Thanks in advance.
Title: Re: Print invoice from Iframe
Post by: Jumbo! on July 15, 2022, 16:44:05 PM
The invoice layout files are -

components/com_virtuemart/views/invoice/tmpl/invoice.php
components/com_virtuemart/views/invoice/tmpl/invoice_history.php
components/com_virtuemart/views/invoice/tmpl/invoice_items.php
components/com_virtuemart/views/invoice/tmpl/invoice_order.php

Copy the above files to -

templates/YOUR-TEMPLATE/html/com_virtuemart/invoice/invoice.php
templates/YOUR-TEMPLATE/html/com_virtuemart/invoice/invoice_history.php
templates/YOUR-TEMPLATE/html/com_virtuemart/invoice/invoice_items.php
templates/YOUR-TEMPLATE/html/com_virtuemart/invoice/invoice_order.php

and make necessary customisations.