• Resolved salusitgroup

    (@salusitgroup)


    I re-read the documentation, and yes, it seems that the gift notes only show up on emails to the client.

    We need this to be attached to the Packing Slips. Is there a field name I can already include in our Woocommerce packing slip configuration to display?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author powerfulwp

    (@powerfulwp)

    Hello,
    Thank you for contacting us,
    You can get the gift message from the order meta fields as following:

    $order->get_meta( ‘gmfw_gift_message’ )

    All the best

    Hi,
    Thanks for the information above (be sure to fix the single quotes if copying and pasting that command ?? )

    For anyone that is interested, I added this to both my invoices and packing slips (I’m using the WooCommerce PDF Invoices plugin).

    I created a custom template per WooCommerce documentation and added this to the template-functions.php file. Works like a charm.

    add_action( 'wpo_wcpdf_after_order_details', 'wpo_gift_message', 10, 2 );
    function wpo_gift_message ($template_type, $order) {
        ?>
        <div class="gift-message">
        <em><strong>Gift Message:</strong></em>  <?php echo $order->get_meta( 'gmfw_gift_message' ); ?>
        </div>
        <?php
    }
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gift notes not included on generated packing slips’ is closed to new replies.