$query_per_page = 15; }else{ $query_per_page = clean_number($_REQUEST['shop_view']); } if($_REQUEST['shop_sort'] == 'price' || $_REQUEST['shop_sort'] == 'pricedown'){ $active_price = 'active'; $active_atoz = ''; $active_new = ''; }else if($_REQUEST['shop_sort'] == 'atoz' || $_REQUEST['shop_sort'] == 'ztoa'){ $active_price = ''; $active_atoz = 'active'; $active_new = ''; }else if($_REQUEST['shop_sort'] == 'new' || $_REQUEST['shop_sort'] == 'oldest'){ $active_price = ''; $active_atoz = ''; $active_new = 'active'; } /* # ---------------------------------------------------------------------- # CALL FUNCTION # ---------------------------------------------------------------------- */ $record = $_get->count_new($search_category, $cat_ops, $search_category_value, $search_filter, $fil_ops, $search_filter_value, $order_by); //$record = count_products($search_category, $cat_ops, $search_category_value, $search_filter, $fil_ops, $search_filter_value, $order_by); $products = $_get->get_product($search_category, $cat_ops, $search_category_value, $search_filter, $fil_ops, $search_filter_value, $order_by, $start, $query_per_page); ?>
$_REQUEST['src'] = $_REQUEST['src']; } else { $_REQUEST['src'] = ''; } /* --- CATEGORY --- */ if (isset($_REQUEST['cat'])) { if ($_REQUEST["cat"] == "" || $_REQUEST["cat"] == "top") { $cat = 'top'; } else { $cat = $_REQUEST["cat"]; //$cat_name = ($_REQUEST["cat"]); } } else { $cat = 'top'; } $full_product = $_get->get_product($search_query, $cat, $sort_by, $first_record, $query_per_page); $total_query = $full_product['total_query']; $total_page = $full_product['total_page']; $all_product = $_get->all_product($search_query, $cat, $sort_by, $first_record, $query_per_page); $count_new_arrival = $_get->count_new_arrival(); /* --- HANDLING ARROW SORTING --- */ $arr_product_name = ''; $arr_type_name = ''; $arr_type_price = ''; $arr_promo_value = ''; if (isset($_REQUEST['srt'])) { if ($_REQUEST['srt'] == "product_name") { $arr_product_name = "<span class=\"sort-arrow-up\"></span>"; } else { if ($_REQUEST['srt'] == "product_name DESC") { $arr_product_name = "<span class=\"sort-arrow-down\"></span>";