Page 1 of 1
invoice header
Posted: Sat Aug 13, 2022 7:04 pm
by Omar_one
Hello,
when printing invoice from admin side, the invoice shows the header of the admin
Capture1111.JPG
,
is there any way to remove it from the invoice?
Br
Omar
Re: invoice header
Posted: Sat Aug 13, 2022 7:22 pm
by Omar_one
I was override the hMenu file by adding
Code: Select all
$exclude_pages = array(
'invoice.php', 'packingslip.php');
in function listen_injectBodyStart ..
but its not working 1.0.8.16!
any idea why ?
Re: invoice header
Posted: Sat Aug 13, 2022 9:14 pm
by ecartz
Omar_one wrote: ↑Sat Aug 13, 2022 7:22 pm
I was override the hMenu file by adding
Code: Select all
$exclude_pages = array(
'invoice.php', 'packingslip.php');
in function listen_injectBodyStart ..
but its not working 1.0.8.16!
any idea why ?
That seems like half the change. I would expect something like
Code: Select all
if (in_array(basename(Request::get_page()), $exclude_pages)) {
return;
}
as well. Note that
Code: Select all
if (in_array(basename(Request::get_page()), ['invoice.php', 'packingslip.php'])) {
return;
}
may be simpler, as it combines both.
Also,
https://github.com/CE-PhoenixCart/Phoen ... nu.php#L81 is supposed to prevent the header from printing (on any page). I.e. if you print the invoice, it should not have the header. Nor the footer:
https://github.com/CE-PhoenixCart/Phoen ... er.php#L15
Re: invoice header
Posted: Sun Aug 14, 2022 10:39 am
by Omar_one
thank you @ecartz