I am trying to display customer order details as i have implemented all the steps mention in the tutorial https://www.wpblog.com/display-woocommerce-customer-order-details/ but still i am not having the actual output.
I have taken order id as same implemented there but not having a exact output that shown. The alternate method i want to know is that right way to do this ?
$order_id
$order_meta = get_post_meta($order_id);
I successfully displayed checkbox field value to it, try to modify it with your own field name. I hope it helps
<?php
$current_user_id = get_current_user_id();
$acf_filed_array = get_field( ‘customer_remark’,’user_’.$current_user_id);
if ( $acf_filed_array ):
foreach ( $acf_filed_array as $acf_filed_item ):
echo $acf_filed_item.'<br> ‘;
endforeach;
endif; ?>
This reply has been marked as private.