<?php /* * ---------------------------------------------------------------------- * ORDER DETAIL: CONTROL * ---------------------------------------------------------------------- */ if (!isset($_SESSION['account']['login_id']) && $_SESSION['account']['login_id'] == '') { safe_redirect('login'); } /* --- DEFINED VARIABLE --- */ $order_number = strtoupper(cleanurl($_REQUEST['oid'])); /* --- CONSTRUCT CLASS --- */ $_account_order_get = new V_DETAIL_GET(); $_account_order_update = new V_DETAIL_UPDATE(); $order_info = $_account_order_get->get($order_number, $_global_user->user_id); $order_item = $_account_order_get->get_item($order_number, $_global_user->user_id); /* --- CURRENCY MODULE --- */ //if($general['currency_rate'] != 0){ //$order_info['order_purchase_amount'] = $order_info['order_purchase_amount']/$general['currency_rate']; //$order_info['order_shipping_amount'] = $order_info['order_shipping_amount']/$general['currency_rate']; //} //promo module //$i=0; //foreach($order_item as $item){ //if($order_info['currency'] == 'USD'){ //$order_item[$i]['item_price'] = $item['item_price']/$general['currency_rate']; //$item['item_price'] = $item['item_price']/$general['currency_rate']; //} //promo module BELOW //$i++;
<?php /* * ---------------------------------------------------------------------- * SHOP DETAIL: CONTROL * ---------------------------------------------------------------------- */ $_shop_detail_get = new V_DETAIL_GET(); $_shop_detail_update = new V_DETAIL_UPDATE(); $shop_cat = filter_var($_REQUEST['prod_cat'], FILTER_SANITIZE_STRING); $product_alias = filter_var($_REQUEST['prod_name'], FILTER_SANITIZE_STRING); $type_alias = filter_var($_REQUEST['prod_type'], FILTER_SANITIZE_STRING); /* # ---------------------------------------------------------------------- # CALL FUNCTION # ---------------------------------------------------------------------- */ $product = $_shop_detail_get->get_product($product_alias, $type_alias); $default_image = $_shop_detail_get->get_default_image($product->type_id); //HILLPAK $category_products = $_shop_detail_get->get_category_products($product->category_id); //HILLPAK /* -- PRODUCT THUMBNAILS ON MD LG --- */ $images = $_shop_detail_get->get_product_images($product->type_id); /* --- PRODUCT THUMBNAILS ON XS SM --- */ $images_xs = array(); $types = $_shop_detail_get->get_product_type($product->id); $stock = $_shop_detail_get->get_product_stock($product->type_id); $sold_out = $_shop_detail_get->get_product_sold_out($product->type_id); /* --- DISCOUNT --- */ $price = $_shop->discount_price($product->promo_id, $product->promo_value, $product->type_price, $product->promo_start_datetime, $product->promo_end_datetime, CURRENCY);
<?php /* * ---------------------------------------------------------------------- * SHOP DETAIL: CONTROL * ---------------------------------------------------------------------- */ $_shop_detail_get = new V_DETAIL_GET(); $_shop_detail_update = new V_DETAIL_UPDATE(); $shop_cat = filter_var($_REQUEST['prod_cat'], FILTER_SANITIZE_STRING); $product_alias = filter_var($_REQUEST['prod_name'], FILTER_SANITIZE_STRING); $type_alias = filter_var($_REQUEST['prod_type'], FILTER_SANITIZE_STRING); /* # ---------------------------------------------------------------------- # CALL FUNCTION # ---------------------------------------------------------------------- */ $product = $_shop_detail_get->get_product($product_alias, $type_alias); $default_image = $_shop_detail_get->get_default_image($product->type_id); $ready_stock = $_shop_detail_get->get_data_stock($product->type_id); $_on_hold = $_shop_detail_get->count_item_order_status($product->type_id, 'Unpaid', 'Open'); $_on_hold_class = ''; $_count_on_holds = $_shop_detail_get->count_item_hold($product->type_id, 'Open', 'Unpaid'); if($_count_on_holds->rows > 0){