</thead> <tbody> <?php $product_counter = 0; $items = wcdn_get_order_items(); if (sizeof($items) > 0) { foreach ($items as $item) { $rr = $item['single_price'] * $item['quantity'] + $rr; } } if (sizeof($items) > 0) { foreach ($items as $item) { ?> <tr> <?php $totals = wcdn_get_order_totals(); $sum = $totals['order_total']['value']; $sum = str_replace("руб.", '', $sum); $a = strip_tags($sum); $sum = (int) $a + 1 - 1; // Split the string, using the decimal point as separator ?> <td class = 'number'><?php print ++$product_counter; ?> </td> <td class="description"><?php echo $item['name']; ?> <?php echo $item['meta'];
echo $item['price']; ?> </td> </tr><?php } } ?> </tbody> </table> </div><!-- #order-items --> <div id="order-summary"> <table> <tfoot> <?php foreach (wcdn_get_order_totals() as $total) { ?> <tr> <th class="description"><?php echo $total['label']; ?> </th> <td class="price"><?php echo $total['value']; ?> </td> </tr> <?php } ?> </tfoot>