echo $order->id; ?> </td> <td class="ref"><?php echo $order->ref; ?> </td> <?php $this->load->view('admin/_utilities/table-cell-datetime', array('datetime' => $order->created)); $this->load->view('admin/_utilities/table-cell-user', $order->user); ?> <td class="value"> <?php echo shop_format_price($order->totals->grand, TRUE, TRUE, $order->currency->base->id); if ($order->currency->order->id !== $order->currency->base->id) { echo '<small>' . shop_format_price($order->totals->grand_render, TRUE, TRUE, $order->currency->order->id) . '</small>'; } ?> </td> <td class="status <?php echo $order->status; ?> "><?php echo $order->status; ?> </td> <?php if ($order->fulfilment_status == 'FULFILLED') { echo '<td class="fulfilment yes">' . lang('yes') . '</td>'; } else { echo '<td class="fulfilment no">' . lang('no') . '</td>';
echo 'SUB TOTAL' . "\n"; echo 'Items: ' . shop_format_price($order->totals->sub_render, TRUE, TRUE, $_ocurrency) . "\n"; echo "\n"; echo 'TAX' . "\n"; echo 'Items: ' . shop_format_price($order->totals->tax_items_render, TRUE, TRUE, $_ocurrency) . "\n"; if ($order->discount->items) { echo "\n"; echo 'DISCOUNTS' . "\n"; if ($order->discount->items) { echo 'Items: ' . shop_format_price($order->discount->items_render, TRUE, TRUE, $_ocurrency) . "\n"; } } } echo "\n"; echo 'GRAND TOTAL' . "\n"; echo shop_format_price($order->totals->grand_render, TRUE, TRUE, $_ocurrency) . "\n\n\n\n"; if ($order->voucher) { echo 'The following voucher was used with this order:' . "\n"; echo $order->voucher->code . ' - ' . $order->voucher->label . "\n"; } if ($order->requires_shipping) { if ($type == 'receipt') { echo 'The items in your order which require shipping will be shipped to the following address:' . "\n\n"; } elseif ($type == 'notification') { echo 'The items in the order which require shipping must be shipped to the following address:' . "\n\n"; } echo strtoupper($order->shipping_details->addressee) . "\n"; echo $order->shipping_details->line_1 ? $order->shipping_details->line_1 . "\n" : ''; echo $order->shipping_details->line_2 ? $order->shipping_details->line_2 . "\n" : ''; echo $order->shipping_details->town ? $order->shipping_details->town . "\n" : ''; echo $order->shipping_details->postcode ? $order->shipping_details->postcode . "\n" : '';
public function get_basket_total($include_symbol = FALSE, $include_thousands = FALSE) { // Fetch & Format return shop_format_price($this->get_basket()->totals->grand_render, $include_symbol, $include_thousands); }
echo '<td class="price">'; if ($item->was_on_sale) { echo shop_format_price($item->sale_price, TRUE, TRUE, $_bcurrency, TRUE); if ($order->currency->order->id !== $order->currency->base->id) { echo ' (' . shop_format_price($item->sale_price_render, TRUE, TRUE, $_ocurrency, TRUE) . ')'; } echo '<small>'; echo 'was ' . shop_format_price($item->price, TRUE, TRUE, $_bcurrency, TRUE); if ($order->currency->order->id !== $order->currency->base->id) { echo ' (' . shop_format_price($item->price_render, TRUE, TRUE, $_ocurrency, TRUE) . ')'; } echo '</small>'; } else { echo shop_format_price($item->price, TRUE, TRUE, $_bcurrency, TRUE); if ($order->currency->order->id !== $order->currency->base->id) { echo ' (' . shop_format_price($item->price_render, TRUE, TRUE, $_ocurrency, TRUE) . ')'; } } echo '</td>'; if ($order->status == 'PAID') { $_is_fancybox = $this->input->get('is_fancybox') ? '?is_fancybox=true' : ''; if ($item->processed) { echo '<td class="processed yes">' . lang('yes') . '</td>'; // -------------------------------------------------------------------------- echo '<td class="actions">'; if (user_has_permission('admin.shop.process')) { echo anchor('admin/shop/orders/process/' . $order->id . '/' . $item->id . '/unprocessed' . $_is_fancybox, 'Mark as Unprocessed', 'class="awesome small red"'); } else { echo '<span class="blank">—</span>'; } echo '</td>';