title: Loop unable to get all records
body: <p>I've created new record fields in woocommerce order report, everything works fine but report is not displaying all product names which customer has ordered multiple items. Someone asked me to use <code>echo "product &lt;br&gt;",</code> but i'm not sure where to place to start loop or <code>$row</code> </p>
  
  <pre><code> // Output report rows
  
  foreach ($sold_products as $product) {
  
      $row = array();
  
  
       /*usama*/
      $order = wc_get_order($product-&gt;order_id);
      $customerName =  $order-&gt;get_billing_first_name().' '.$order-&gt;get_billing_last_name();
      $billingCity = $order-&gt;get_billing_city();
      $billingAddress1 = $order-&gt;get_billing_address_1();
      $note = $order-&gt;get_customer_note();
  
  
      //echo $product-&gt;order_id;
      //echo $customerName.$city.$billingAddress1;
      //echo '&lt;pre&gt;';print_r($order);exit;
       /*usama*/
      foreach ($_POST['fields'] as $field) {
  
  $terms = get_the_terms($product-&gt;product_id, 'product_cat');
  $categories = array();
  $cats = '';
  if (!empty($terms)) {
      foreach ($terms as $term) $categories[] = $term-&gt;name;
      $cats = implode(', ', $categories);
  }
  
  $values = [
              'order_id' =&gt; $product-&gt;order_id,
              **'product_name' =&gt; html_entity_decode(get_the_title($product-&gt;product_id)),**
              'quantity_sold' =&gt; $product-&gt;quantity,
              'gross_sales' =&gt; $product-&gt;gross,
              'product_categories' =&gt; $cats,
              'customer_name' =&gt; $customerName,
              'city' =&gt; $billingCity,
              'address' =&gt; $billingAddress1,
              'customer_note' =&gt; $note,
              'ceremony_date' =&gt; $order-&gt;get_meta( '_billing_myfield12', true ),
              'ceremony_time' =&gt; $order-&gt;get_meta( '_billing_myfield13', true ), 
  ];
  
  $row[] = $values[$field];
  
      }
  </code></pre>