Hello,
when printing invoice from admin side, the invoice shows the header of the admin
,
is there any way to remove it from the invoice?
Br
Omar
invoice header
-
Omar_one
- Senior Contributor
- Posts: 679
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Has thanked: 100 times
- Been thanked: 56 times
-
Omar_one
- Senior Contributor
- Posts: 679
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Has thanked: 100 times
- Been thanked: 56 times
Re: invoice header
I was override the hMenu file by adding
in function listen_injectBodyStart ..
but its not working 1.0.8.16!
any idea why ?
Code: Select all
$exclude_pages = array(
'invoice.php', 'packingslip.php');but its not working 1.0.8.16!
any idea why ?
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: invoice header
That seems like half the change. I would expect something likeOmar_one wrote: ↑Sat Aug 13, 2022 7:22 pm I was override the hMenu file by addingin function listen_injectBodyStart ..Code: Select all
$exclude_pages = array( 'invoice.php', 'packingslip.php');
but its not working 1.0.8.16!
any idea why ?
Code: Select all
if (in_array(basename(Request::get_page()), $exclude_pages)) {
return;
}Code: Select all
if (in_array(basename(Request::get_page()), ['invoice.php', 'packingslip.php'])) {
return;
}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