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>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.