• Resolved Flemming Aunel

    (@webalive)


    I have created a custom template for packing slip with added information and placed it in /woocommerce-pdf-invoices-packing-slips/templates/xxxx

    Every time an update has taken place to the plugin – the dir /xxxx are gone and a new FTP is needed for the custom template to be active again.

    I expect you have your reasons to delete these custom templates – but could you please consider not to have this as a standard procedure and only do this if a major change to the templates hs taken place. And if so only delete the affected template like “invoice.php”, “packing-slip.php” or whatever file that we need to consider inspecting before use with a new version.

    I have now remove “automatic update” for the plugin in order to control this behavior.

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

    (@yordansoares)

    Hi @webalive,

    I’m afraid what you are doing is a bad practice: You NEVER have to edit core plugin files directly, since all your changes will be gone on every update. This is not something we do, but the update process instead, and this happens for every plugin or theme installed in your site.

    However, we indeed provide a method which allows you to create a custom PDF template using your child theme (not the parent theme!) as a container. See: Creating a custom PDF template.

    That said, it is very likely that you do not even need a custom PDF template, but only to use our PDF template action hooks or PDF template filter hooks instead, which are more scalable and do not need to create and maintain custom files separately.

    If you provide me with the details of why you are using a custom PDF template, I can try to provide you with help, including writing code snippets as a courtesy, to help you to achieve what you want ??

    Thread Starter Flemming Aunel

    (@webalive)

    We did follow that instruction firstly, but could not get it to work. We have now changed it and it works fine. Thanks for your help

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that you, finally, managed to make it work! ??

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customer template deleted after update’ is closed to new replies.