Merhabalar,
'details_attributes' => array (
array (
'product_id' => '5542004', // the products
'quantity' => '3',
'unit_price' => '15.24',
'vat_rate' => '18',
'discount_type' => 'amount',
'discount_value' => '0',
),
array (
'product_id' => '5542003', // the products
'quantity' => '1',
'unit_price' => '22.99',
'vat_rate' => '18',
'discount_type' => 'amount',
'discount_value' => '0',
),Benim yukarıdakine uygun olarak sıralı ürünleri çekmem ve buraya yerleştirmem lazım.
Verileri sıralı olarak;
$sku[] = $product->get_sku();
$qty[] = $item->get_quantity();
$total[] = $order->get_item_meta($item_key, '_line_total', true);
burdan çekiyorum. Ama bir türlü yazdıramadım

PHP bilgim fazla yok, for, foreach ile vs denedim beceremedim. Yardımcı olabilir misiniz?
Şimdiden teşekkürler.