Title: Document notes on packing slips
Last modified: November 26, 2023

---

# Document notes on packing slips

 *  Resolved [astral4ik](https://wordpress.org/support/users/astral4ik/)
 * (@astral4ik)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/document-notes-on-packing-slips/)
 * Hi.
 * I try to put DOCUMENT NOTES to the packing slips too. Now it shows only on invoices.
 * I put it to the packing-slip.php
 *     ```wp-block-code
       <div class="document-notes">
                       <?php do_action( 'wpo_wcpdf_before_document_notes', $this->get_type(), $this->order ); ?>
                       <?php if ( $this->get_document_notes() ) : ?>
                           <h3><?php _e( 'Notes', 'woocommerce-pdf-invoices-packing-slips' ); ?></h3>
                           <?php $this->document_notes(); ?>
                       <?php endif; ?>
                       <?php do_action( 'wpo_wcpdf_after_document_notes', $this->get_type(), $this->order ); ?>
                   </div>
       ```
   
 * dut it doesnt work for me.
 * Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * (@dpeyou)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/document-notes-on-packing-slips/#post-17231213)
 * Hello [@astral4ik](https://wordpress.org/support/users/astral4ik/),
   Are you [using a custom PDF template](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/creating-a-custom-pdf-template/)(
   created by you)? If that is not your objective, you should use our available 
   [Action](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/pdf-template-action-hooks/)
   and [Filter](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/pdf-template-filter-hooks/)
   Hooks. 🙂If you modify the plugin files directly, your changes will be lost on
   the next plugin update. 🙁For your purpose, we will use an Action Hook.
 *     ```wp-block-code
       add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_order_notes', 10, 2 );
       function wpo_wcpdf_order_notes ( $template_type, $order ) {
           if ( $template_type == 'packing-slip' ) {
               $document = wcpdf_get_document( $template_type, $order );
               $document->order_notes();
           }
       }
       ```
   
 * Documentation: [Displaying Order Notes with a Template Hook](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/displaying-order-notes/#with-a-template-action-hook)
 * If you haven’t worked with code snippets (actions/filters) or functions.php before,
   read this guide: [How to use Hooks](https://docs.wpovernight.com/general/how-to-use-filters/)
    -  This reply was modified 2 years, 6 months ago by [Darren Peyou](https://wordpress.org/support/users/dpeyou/).
      Reason: correction, more permalinks
 *  Thread Starter [astral4ik](https://wordpress.org/support/users/astral4ik/)
 * (@astral4ik)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/document-notes-on-packing-slips/#post-17237272)
 * So it doesnt work for me
 * I need DOCUMENT NOTES to packing slips. Order notes (what customers write onto
   order) works well and shows. Document notes are what the administrator writes
   in the order. I need to packing slips shows it for our paching workers.
 * so i modified your snippet
 * add_action( ‘wpo_wcpdf_after_customer_notes’, ‘wpo_wcpdf_DOCUMENT_notes’, 10,
   2 );
   function wpo_wcpdf_DOCUMENT_notes ( $template_type, $order ) {if ( $template_type
   == ‘packing-slip’ ) {$document = wcpdf_get_document( $template_type, $order );
   $document->DOCUMENT_notes();}}
 * but it doesnt work for me
 * It shows in INVOICE, but i need it ti shows in the PACKING SLIPS too
 *  Plugin Contributor [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * (@dwpriv)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/document-notes-on-packing-slips/#post-17239291)
 * You can try this updated snippet
 *     ```wp-block-code
       add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_order_notes', 10, 2 );
       function wpo_wcpdf_order_notes ( $template_type, $order ) {
           if ( $template_type == 'packing-slip' ) {
               $document = wcpdf_get_document( 'invoice', $order );
               echo $document->document_notes();
           }
       }
       ```
   
 * Let us know how it works for you
 *  Thread Starter [astral4ik](https://wordpress.org/support/users/astral4ik/)
 * (@astral4ik)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/document-notes-on-packing-slips/#post-17240450)
 * YES! Thanks a lot!
 *  Plugin Contributor [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * (@dpeyou)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/document-notes-on-packing-slips/#post-17240845)
 * [@astral4ik](https://wordpress.org/support/users/astral4ik/),
   Could we bother
   you with a review request? 🙂[https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/#new-post](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/#new-post)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Document notes on packing slips’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/document-notes-on-packing-slips/#post-17240845)
 * Status: resolved