Retrieve custom field value
-
Hi
I’m evaluating your Product Addons for Woocommerce.
I’ve created a custom Text Field and it shows up as expected on my order page.
I need to retrieve the value that the customer enter from my php code.
I found an article in the forum that says to use the code below:$skus = $item_quantities = $line_item_totals = $items_meta_data = array();
// Loop though order items
foreach( $order->get_items() as $item_id => $item){
$items_meta_data[] = $item->get_meta_data();
}What I need is a way to retrieve the value the user entered in a Text Field. Can you please help with that?
Thanks
Ralph
The topic ‘Retrieve custom field value’ is closed to new replies.