1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | <table class="management"> <thead> </thead> <tbody> <?php $fields = array( 'order_id' => array( 'label' => 'Order Id' ), 'order_source' => array( 'label' => 'Order Source' ), 'gateway' => array( 'label' => 'Transaction Processing Gateway' ), 'total_revenue' => array( 'label' => 'Total Revenue', 'data_type' => 'currency' ), 'tax_revenue' => array( 'label' => 'Tax Revenue' ), 'shipping_revenue' => array( 'label' => 'Shipping Revenue' ), ); ?> <tr> <th>Order Id</th> <td><?php $this->out( $trans_detail['order_id'] );?></td> </tr> <tr> <th>Order Source</th> <td><?php $this->out( $trans_detail['order_source'] );?></td> </tr> <tr> <th>Processing Gateway</th> <td><?php $this->out( $trans_detail['gateway'] );?></td> </tr> <tr> <th>Total Revenue</th> <td><?php $this->out( $this->formatCurrency( $trans_detail['total_revenue'] ) );?></td> </tr> <tr> <th>Tax Revenue</th> <td><?php $this->out( $this->formatCurrency( $trans_detail['tax_revenue'] ) );?></td> </tr> <tr> <th>Shipping Revenue</th> <td><?php $this->out( $this->formatCurrency( $trans_detail['shipping_revenue'] ) );?></td> </tr> </tbody> </table> <h3>Transaction Line Items</h3> <?php if ( isset( $trans_detail['line_items'] ) ):?> <table class="simpleTable"> <tr> <th>Product Name</th> <th>SKU</th> <th>Unit Price</th> <th>Quantity</th> <th>Item Revenue</th> </tr> <?php foreach ($trans_detail['line_items'] as $li): ?> <tr> <td><?php $this->out( $li['product_name'] ); ?> (<?php $this->out( $li['category'] ); ?>)</td> <td><?php $this->out( $li['sku'] ); ?></td> <td><?php $this->out( $li['quantity'] ); ?></td> <td><?php $this->out( $this->formatCurrency( $li['unit_price'] ) ); ?></td> <td><?php $this->out( $this->formatCurrency( $li['item_revenue'] ) ); ?></td> </tr> <?php endforeach; ?> </table> <?php else: ?> None. <?php endif;?> |