Use get_order_summary() in Contact display.
authorIain Patterson <me@iain.cx>
Mon, 13 May 2013 08:47:06 +0000 (04:47 -0400)
committerIain Patterson <me@iain.cx>
Mon, 13 May 2013 12:48:06 +0000 (08:48 -0400)
Use the new get_order_summary() function when showing a Contact's order
history.

lib/contact.php

index 2dd65ab..874c918 100644 (file)
         echo "</tr>\n";
 
         echo "<tr>\n";
-        echo "  <td colspan=2>\n";
+        echo "  <td colspan=2 class=\"history\">\n";
         foreach ($orders as $order) {
-          echo "    Order " . $order->getStrongLink($order->getId()) . ": " . get_order_displayname($order) . "<br>\n";
+          echo "    " . get_order_summary($order) . "<br>\n";
         }
         echo "  </td>\n";
         echo "</tr>\n";