• Hello,

    we’ve created a custom template.php. Inside, they are some pictures.

    When we try to export, pictures doesn’t displayed. “Image not found or type unknown”. How can we displayed images on the export file?

    Exemple integration: <img style="display: block; margin-left: auto; margin-right: auto;" src="logo.png" alt="" width="293" height="88" />

    When we use your doc with this snippet:

    <img src="<?php echo $this->get_template_path(); ?>/logo.png" alt="" width="293" height="88" />

    But critical error.

    Thank’s for your help

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @blackheart666

    Are you including the images inside your custom template folder? Use the browser developer tools to see the currently path.

    Thread Starter blackheart666

    (@blackheart666)

    Hello,

    tahnk’s for your quick answer.

    Yes, images is on “woocommerce-pdf-invoice/templates” folder

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @blackheart666

    I think you didn’t follow the instructions correctly for creating the custom template. You need to put the custom template under your current child theme.

    The images should be placed here: wp-content/themes/yourtheme/woocommerce/pdf/yourtemplate

    To create a customized version of the Simple template, Copy all the files from the plugin folder:

    • wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple
    • to your (child) theme (replace ‘yourtheme’ by your theme folder):

    • wp-content/themes/yourtheme/woocommerce/pdf/yourtemplate
    • This reply was modified 4 years, 7 months ago by alexmigf.
    • This reply was modified 4 years, 7 months ago by alexmigf.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FULL Custom Image Error’ is closed to new replies.