$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); ?>