Support

Account

Home Forums General Issues Need help to display customer order details in WooCommerce

Solving

Need help to display customer order details in WooCommerce

  • 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.
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Need help to display customer order details in WooCommerce’ is closed to new replies.