Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114 Logo not fitting on top-left of invoice | Event Espresso - Staging Server
Whatever size I make the logo for my invoice, it is always stretched to too large a size, when the invoice is generated, so that it overlaps with the address for my organisation. See the attached image for an example of how a small image gets stretched:
in event-espresso/gateways/onvoice/function.pdf.php is a line (should be line 15)
$this->Image($invoice_payment_settings[‘image_url’],10,8,90);//Set the logo if it is available
If you change the 90 to a lower number it will reduce the size. I went with 0.
However the size of the image is still scaled based on the pdf resolution. So it may take a bit of playing around with that number and/or the image to get it to look right.
For that amongst other reasons we are looking to implement an HTML to PDF system in future releases.
Changing this setting to 50 did the job. I agree that an html solution for the invoice would be better, hopefully with fully customisable templates (as with the emails) in the admin section.
By the way, with upgrades of EE, are all files changed, or only ones that have changed since the last installed release?
Yes absolutely agreed. I don’t know the full details of it but I know the system is being looked to be changed.
Re updates: ALL files are changed, with exception of files copied to to uploads/espresso/*
That file can be copied to the uploads folder (uploads/espresso/gateways/invoice/) but copy the template.php file over as well otherwise it wont work.
Viewing 3 reply threads
The support post ‘Logo not fitting on top-left of invoice’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.