I need to take data from order of customer
Need to take item ID and quantity.
Tried with but not working
$item_data = $item_values->get_data();
foreach ($item_data as $item) {
$product_id = $item['product_id'];
$quantity = $item['quantity'];
}