• Resolved fuffstudio

    (@fuffstudio)


    Hello

    Does anyone know how to add the woocommerce order number and purchase date to the Gift Card Email, I have duplicated the template and have managed to make some other changes to the email, but everything I try regarding the woo order number and date results in an error. I am sure I am missing something obvious.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author pimwick

    (@pimwick)

    You can add order data using something like this as an example:

    <?php
        if ( !empty( $item_data->order ) ) {
            ?>
            <div class="pwgc-section">
                <div class="pwgc-label"><?php _e( 'Order Number', 'pw-woocommerce-gift-cards' ); ?></div>
                <div class="pwgc-expiration-date"><?php echo $item_data->order->get_order_number(); ?></div>
            </div>
            <?php
        }
    ?>
    Thread Starter fuffstudio

    (@fuffstudio)

    Thank you so much! It works, much appreciated and thanks for the fast reply.

    Simon

    Plugin Author pimwick

    (@pimwick)

    Great, glad to hear it. I’m marking the thread as resolved, best of luck with your store!

    I want to show the variable product name in the email

    Plugin Author pimwick

    (@pimwick)

    Can you start a separate thread? This one is regarding putting the Order Number into the email, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add order Number to Gift Card Email’ is closed to new replies.