Title: Custom template doesn&#8217;t work
Last modified: January 23, 2024

---

# Custom template doesn’t work

 *  Resolved [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/)
 * Hello,
 * I’m using the custom template but I have a some problem.
 * I modified the ‘invoice.php’ file in the child directory of my theme in this 
   way:
 * line 32:
 *     ```wp-block-code
       <?php _e( 'Invoice/Receipt', 'woocommerce-pdf-invoices-packing-slips' ); ?>
       ```
   
 * line 102:
 *     ```wp-block-code
       <th class="product"><?php _e( 'Ordered Item', 'woocommerce-pdf-invoices-packing-slips' ); ?></th>
       ```
   
 * Also I set Number format in WooCommerce > PDF Invoices > Documents.
 * ![](https://i0.wp.com/i.postimg.cc/gJGPx7Ng/Number-format-setting.png?ssl=1)
 * The preview is correct
 * ![](https://i0.wp.com/i.postimg.cc/SRj38b8f/Preview-PDF-invoice.png?ssl=1)
 * but if I create the PDF from order page it is incorrect.
 * ![](https://i0.wp.com/i.postimg.cc/tTnmCNHB/PDF-from-order.png?ssl=1)
 * Can you help me?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/custom-template-doesnt-work/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/custom-template-doesnt-work/page/2/?output_format=md)

 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17367374)
 * Hi [@magick207](https://wordpress.org/support/users/magick207/),
 * Your first screenshot is the PDF invoice, but the second is the Packing Slip:
   Try again, opening the PDF invoice instead 😉
 *  Thread Starter [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17369420)
 * Hi [@yordansoares](https://wordpress.org/support/users/yordansoares/),
 * thank you for your reply. In the page of order I have just the button “PDF Packing
   Slip” and the “PDF document data” section is empty. How can I to create and to
   open the PDF invoice?
 * ![](https://i0.wp.com/i.postimg.cc/8cWJ3Tzw/Order-page.png?ssl=1)
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17369464)
 * The PDF invoice could be disabled for that particular order because of its order
   status… or maybe you have disabled the document altogether!
 * Please check this in **WooCommerce > PDF Invoices > Documents > Invoice**: Here
   can see if the document is activated and in which order statuses is the document
   deactivated, under the **Disable for** setting:
 * ![](https://i0.wp.com/i.ibb.co/qMRCsrP/PDF-Invoices-Disable-for-setting.png?ssl
   =1)
 *  Thread Starter [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17369913)
 * I did not disabled for any order status…
 * ![](https://i0.wp.com/i.postimg.cc/m2Gfkr2b/Pdf-document-setting.png?ssl=1)
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17370190)
 * Could you please try temporarily enabling the **Test mode** under **WooCommerce
   > PDF Invoices > General**, and try again?
 *  Thread Starter [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17370413)
 * Hi,
 * I enabled the Test mode but I still the “PDF Packing Slip” button in the order
   page. Also I tried to create a new order.
 * ![](https://i0.wp.com/i.postimg.cc/K4SCn3wy/new-Order-page.png?ssl=1)
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17370569)
 * Could you please try switching to our default **Simple** template, under **WooCommerce
   > PDF Invoices > General**, and try again?
 *  Thread Starter [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17372359)
 * I tried, but I have same button. However, I see that in the bulk action drop-
   down menu in order list there is availabe PDF invoice option. If I create the
   PDF from this voice, it generate me the correct file and I see the number in “
   Invoice number” column.
 * Can I to display the PDF invoice button in the order detail page as well?
 * ![](https://i0.wp.com/i.postimg.cc/2jhhpNwS/Bulk-action-Drop-down-menu.png?ssl
   =1)
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17373170)
 * Thanks for sharing that screenshot, [@magick207](https://wordpress.org/support/users/magick207/):
 * Please go to **WooCommerce > Status > System Status**, click on **Get system 
   report**, then click on **Download for support**, attach the file on [https://www.file.io/](https://www.file.io/),
   and finally paste the download link in a reply here.
 * Please note that the file will be deleted after the first download, so please
   do not try to test the download link yourself!
 *  Thread Starter [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17373240)
 * This is the file request: [https://file.io/x9U80h93rIDG](https://file.io/x9U80h93rIDG)
    -  This reply was modified 2 years, 4 months ago by [magick207](https://wordpress.org/support/users/magick207/).
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17373375)
 * Thanks for sharing your system report!
 * Could you please temporarily disable the “WooCommerce PDF Invoices Italian Add-
   on” plugin and try again?
 *  Thread Starter [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17373526)
 * Thank you to you for your support. Disabling “WooCommerce PDF Invoices Italian
   Add-on” plugin now I have the PDF invoice button in the order detail. But in 
   the past I have used both the plugin…
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17373543)
 * This confirm that they are disabling our PDF invoice button, maybe to replace
   it with the receipt document they provide? I would check their settings to see
   if there is an option to disable this behavior.
 * If you cannot find an option for that, please contact them directly, here: [https://wordpress.org/support/plugin/woocommerce-pdf-invoices-italian-add-on/#new-topic-0](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-italian-add-on/#new-topic-0)
 * I would share this topic link as well, so they understand faster what you want
   to achieve, after reading our conversation.
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17373692)
 * Hi again, [@magick207](https://wordpress.org/support/users/magick207/):
 * Driven by curiosity, I went ahead and installed the “WooCommerce PDF Invoices
   Italian Add-on” plugin to check the settings myself.
 * I realized that there is a setting which control the PDF invoices availability,
   based on whether the customer select the invoice or not:
 * ![](https://i0.wp.com/i.ibb.co/1nCXks9/PDF-Invoices-Italian-Add-on-Behavior-if-
   customer-does-not-select-invoice-or-receipt.png?ssl=1)
 * If you have the “Don’t issue any invoice or receipt” option selected, the invoice
   will be available when the customer selects the invoice in the document selector
   field and fills the VAT number field with a valid one:
 * ![](https://i0.wp.com/i.ibb.co/NNwckbP/PDF-Invoices-Italian-Add-on-Invoice-selector-
   and-VAT-Number-validator.png?ssl=1)
 * Otherwise, it will be disabled. Therefore, if you want to have the invoice always
   available for old or manually created orders, you have to select the “Issue an
   invoice” option instead to enable the invoice by default.
 *  Thread Starter [magick207](https://wordpress.org/support/users/magick207/)
 * (@magick207)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/#post-17376036)
 * Hi [@yordansoares](https://wordpress.org/support/users/yordansoares/),
 * thank you for your help and availability!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/custom-template-doesnt-work/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/custom-template-doesnt-work/page/2/?output_format=md)

The topic ‘Custom template doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/custom-template-doesnt-work/page/2/#post-17376206)
 * Status: resolved