<?php /* * ---------------------------------------------------------------------- * ORDER HISTORY: CONTROL * ---------------------------------------------------------------------- */ if (!isset($_SESSION['account']['login_id']) && $_SESSION['account']['login_id'] == '') { safe_redirect('login'); } /* --- CONSTRUCT CLASS --- */ $_account_order_get = new V_HISTORY_GET(); $_account_order_update = new V_HISTORY_UPDATE(); $order = $_account_order_get->get($_global_user->user_id); $count = $_account_order_get->count_get($_global_user->user_id);
<?php /* * ---------------------------------------------------------------------- * ORDER HISTORY: CONTROL * ---------------------------------------------------------------------- */ if (!isset($_SESSION['account']['login_id']) && $_SESSION['account']['login_id'] == '') { safe_redirect('login'); } /* --- CONSTRUCT CLASS --- */ $_account_order_get = new V_HISTORY_GET(); $_account_order_update = new V_HISTORY_UPDATE(); $order = $_account_order_get->get($_global_user->user_id); foreach ($order as $order_) { $order_item[$order_->order_number] = $_account_order_get->get_item($order_->order_number, $_global_user->user_id); if ($order_->fulfillment_status == 'Delivered') { $tmp_cart = $_account_order_get->get_cart($order_->order_number); $track[$order_->order_number] = $_account_order_get->get_courier_track($tmp_cart->services); } } $count = $_account_order_get->count_get($_global_user->user_id);