- This topic has 15 replies, 4 voices, and was last updated 3 years ago by
Sangita Support Squad.
-
AuthorPosts
-
-
April 27, 2023 at 1:15 AM #191426
Chris
ParticipantHi,
Is it possible to modify the footer of the PDF invoice sent to both buyer and vendor? For example, I would like to change the default email address to the sales team/support team’s email address.
-
April 27, 2023 at 2:30 AM #191429
Chris
ParticipantAlso, the invoice number is missing. I’ll attach a photo below
-
April 27, 2023 at 2:31 AM #191430
Chris
ParticipantThis reply has been marked as private. -
April 27, 2023 at 2:50 AM #191432
Chris
ParticipantAdditionally, is it possible to let vendor use the default template used by admin for Invoice? I prefer to not let vendor choose the template. If I deleted the div showing the “Choose your preferred template” in the template php file, what will be the template that will be automatically used for the vendor?
-
April 28, 2023 at 2:01 AM #191474
NerdySupportExpert Moumita
KeymasterHi @Chris, our replies are inline :
– Is it possible to modify the footer of the PDF invoice sent to both buyer and vendor?
Yes you can modify the footer of the invoice.Now just let us know exactly what modification you want so that we can help you accordingly.– the invoice number is missing. I’ll attach a photo below
>> This is an issue, we will fix this in our next update.– Is it possible to let vendor use the default template used by admin for Invoice?
>> There are no such settings for this, however, this can be achieved via code. If you can guide you with the coding flow, can you create the function? -
April 29, 2023 at 5:46 AM #191528
Chris
ParticipantThis reply has been marked as private. -
April 29, 2023 at 5:52 PM #191549
NerdySupportExpert Moumita
Keymaster@Chris, our team will check and assit you with this.
-
April 30, 2023 at 1:07 AM #191572
Chris
ParticipantOkay thanks
-
May 2, 2023 at 4:06 PM #191617
MVX Support Ninja
KeymasterHi,
Kindly add below code to your function.php of your current active theme.add_filter('mvx_pdf_invoice_pdf_footer_content', 'mvx_pdf_invoice_pdf_footer_content_callback', 10, 4); function mvx_pdf_invoice_pdf_footer_content_callback( $footer_content, $footer_content, $pdf_type, $args) { $new_footer_content = array(site_url(),'unihome97@gmail.com', '© 2023 by UniHome (003449066-K). All Rights Reserved.'); return implode(' | ', $new_footer_content); } add_filter('mvx_pdf_invoice_preferred_templates', 'mvx_pdf_invoice_preferred_templates_callback', $tamp_array); function mvx_pdf_invoice_preferred_templates_callback( $tamp_array ) { unset($tamp_array['mvx_pdf_invoice_second_template']); unset($tamp_array['mvx_pdf_invoice_third_template']); unset($tamp_array['mvx_pdf_invoice_forth_template']); unset($tamp_array['mvx_pdf_invoice_fifth_template']); return $tamp_array; }regards,
-
May 3, 2023 at 9:31 AM #191658
Chris
ParticipantHi,
Thank you for helping.
The code produced a fatal error due to duplicated parameter on line 2. The error message is:
Redefinition of parameter $footer_contentHow do I resolve this? Thanks
-
May 4, 2023 at 2:43 AM #191688
Chris
ParticipantThis reply has been marked as private. -
May 4, 2023 at 9:06 AM #191698
MVX Support Ninja
KeymasterHi,
Remove the codes from live site.
Share a staging site admin access, vendor access with order and ftp. So, we will fix this issue for you. -
May 4, 2023 at 9:28 PM #191734
Chris
ParticipantThis reply has been marked as private. -
May 5, 2023 at 3:19 PM #191785
MVX Support Ninja
KeymasterHi,
We Fixed this issue in your site, Kindly check this image – https://prnt.sc/8t6JEOksb8N0
And also add below code to your live siteadd_filter('mvx_pdf_invoice_pdf_footer_content', 'mvx_pdf_invoice_pdf_footer_content_callback', 10, 4); function mvx_pdf_invoice_pdf_footer_content_callback( $footer_content_n, $footer_content, $pdf_type, $args) { $new_footer_content = array(site_url(),'unihome97@gmail.com', '© 2023 by UniHome (003449066-K). All Rights Reserved.'); return implode(' | ', $new_footer_content); } add_filter('mvx_pdf_invoice_preferred_templates', 'mvx_pdf_invoice_preferred_templates_callback'); function mvx_pdf_invoice_preferred_templates_callback( $tamp_array ) { unset($tamp_array['mvx_pdf_invoice_second_template']); unset($tamp_array['mvx_pdf_invoice_third_template']); unset($tamp_array['mvx_pdf_invoice_forth_template']); unset($tamp_array['mvx_pdf_invoice_fifth_template']); return $tamp_array; }also check the vendor dashboard for default template.
Regards, -
May 6, 2023 at 5:14 PM #191816
Chris
ParticipantHi, noted. Thank you!
-
May 8, 2023 at 12:21 PM #191846
Sangita Support Squad
KeymasterHope the query is solved . We are closing this thread . If you need help or face issues in future please create a new thread.
-
-
AuthorPosts
- The topic ‘PDF Invoice Footer’ is closed to new replies.






