Support

Account

Home Forums General Issues Displaying values in woocommerce emails Reply To: Displaying values in woocommerce emails

  • @paul115
    on the email template, you need to get the order ID first, like:

    
    <?php
    $order_id = $order->id; 
    //then
    $section 	= get_field( 'location_section', $order_id );
    $column 	= get_field( 'location_column', $order_id );
    $row 		= get_field( 'location_row', $order_id );
    ?>
    <p>Location of item is: <strong>S<?php echo $section; ?>-C<?php echo $column; ?>-R<?php echo $row; ?></strong></p>