$sql_collection .= ")"; } } }else{ $sql_collection .= '1'; $page = 1; unset($_SESSION['filter']); } //echo $sql_collection; //$record = $_shop_get->count_alternate_product($search_category, $cat_ops, $search_category_value, $search_filter, $fill_ops, $search_filter_value, $order_by); $record = $_shop_get->count_alternate_product($search_category, $cat_ops, $search_category_value, $sql_collection, $order_by, $sql_query); $data_color = $_shop_get->get_color('active', 'yes', '0'); $count_collection = $_shop_get->count_collection(); if($count_collection->rows > 0){ $data_collection = $_shop_get->get_collection(); } /* -- PAGINATION FEEDER -- */ $total_record = $record; $start = 0; if(isset($vpp)){ $query_per_page = $vpp; }else{