* @package WEP-CMS * @todo this has fallen out of sync with /resources/template/section_order_print.php * particularly I note that this doesn't include discount codes * see if we can just pull in section_order_print */ $data_dir = $_SERVER['DOCUMENT_ROOT'].'/admin/scripts-includes/'; //$template_dir = $_SERVER['DOCUMENT_ROOT'].'/resources/template/'; require_once $data_dir.'universal.php'; //require_once $template_dir.'functions.php'; $connID = connect_to_db(); $order_id = is_numeric_id($_GET['order'],0); $order = new cart(); $order->recreate_from_order($order_id); ob_start(); ?> '; ?> Order <?php echo $order->reference; ?> reference): ?>

Order not found.

customer['name']; ?>

customer['delivery_address']); ?>

customer['phone']; ?>

customer['email']; ?>

[ details pending]

Order reference; echo ($order->paid) ? ' [Paid]' : ''; ?>

Order details

Order placed: reference); ?>

products as $k => $p) { ?> shipping_cost>0 || $order->transaction_fee > 0) { ?> shipping_cost>0): ?> transaction_fee>0): ?>
Product name Options Price Quantity Total
Order total order_total(),2); ?>
name; ?> options as $o=>$opt){ if($opt != ''){ echo ucwords(str_replace('_',' ',$o)).': '.$opt.'
'; } } ?>
price,2); ?> quantity; ?> price*$p->quantity,2); ?>
Subtotal cart_total,2); ?>
Shipping (shipping_location; ?>) shipping_cost,2); ?>
Transaction fee (customer['payment_method']; ?>) transaction_fee,2); ?>

Delivery instructions

customer['delivery_instructions']); ?>