PDF Invoice Footer

MultivendorX Pro

Resolved
Viewing 15 reply threads
  • Author
    Posts
    • #191426
      Chris
      Participant

      Hi,

      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.

    • #191429
      Chris
      Participant

      Also, the invoice number is missing. I’ll attach a photo below

    • #191430
      Chris
      Participant
      This reply has been marked as private.
    • #191432
      Chris
      Participant

      Additionally, 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?

    • #191474

      Hi @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?

    • #191528
      Chris
      Participant
      This reply has been marked as private.
    • #191549

      @Chris, our team will check and assit you with this.

    • #191572
      Chris
      Participant

      Okay thanks

    • #191617

      Hi,
      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;
      }
      Copy

      regards,

    • #191658
      Chris
      Participant

      Hi,

      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_content

      How do I resolve this? Thanks

    • #191688
      Chris
      Participant
      This reply has been marked as private.
    • #191698

      Hi,
      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.

    • #191734
      Chris
      Participant
      This reply has been marked as private.
    • #191785

      Hi,
      We Fixed this issue in your site, Kindly check this image – https://prnt.sc/8t6JEOksb8N0
      And also add below code to your live site

      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_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;
      }
      Copy

      also check the vendor dashboard for default template.
      Regards,

    • #191816
      Chris
      Participant

      Hi, noted. Thank you!

    • #191846

      Hope the query is solved . We are closing this thread . If you need help or face issues in future please create a new thread.

Viewing 15 reply threads

The topic ‘PDF Invoice Footer’ is closed to new replies.