• Resolved pwidner

    (@pwidner)


    It appears that the update may have disabled custom templates. Custom templates are not an option anymore.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @pwidner,

    I’m sorry to hear that you have lost your custom template. However, this is not related to the plugin update, but to your WordPress theme updates. To avoid losing your custom template, you should add it to a child theme.

    See: Creating a custom PDF template

    Thread Starter pwidner

    (@pwidner)

    Thanks for such a quick reply but I failed to mention it is in child theme and has been for many years. It is simply not a choice in the settings any more. It appears that after the update 11 hours ago it defaulted back to original simple template with no other choice available.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    That is weird indeed. We haven’t changed anything related with the custom templates handling, so I wonder if maybe some files were deleted or got corrupted. Could you please check if you have these files in your custom PDF template folder:

    html-document-wrapper.php
    invoice.php
    packing-slip.php
    style.css
    template-functions.php

    Also make sure that the name of the directories are in lower case:
    wp-content/themes/your-child-theme/woocommerce/pdf/your-custom-pdf-template

    Plugin Contributor Ewout

    (@pomegranate)

    @pwidner is it possible that the default location for the WooCommerce template paths has been filtered using woocommerce_template_path (source)? Are there other files in the wp-content/themes/your-child-theme/woocommerce/ folder?
    Which version did you use before the update?

    Greetings,

    I have the same issue on two different websites.
    My custom templates don’t appear in the dropdown list anymore and the “Simple” template is used instead.

    Both websites make use of woocommerce_template_path. The path to the folder containing my custom templates is displayed correctly in the admin (…mytheme/views/templates/woocommerce/pdf/yourtemplate).

    Reverting back to the previous version of the plugin (2.14.5) solves the issue.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom template no longer available’ is closed to new replies.