Replies: 0
Hey guys,
i want to get all product names of the order in one string.
So what i did was:
$items = $order->get_items();
foreach ( $items as $item ) {
$product_name = $item['name'];
$quantity=$item['qty'];
}
but out of the foreach $product_name just has the last product that was added.
I need all product names in this string.
How can I add up all the names?
Thanks in advance.