$filters_query = vamDBquery($filters_query_raw); $count_filters = vam_db_num_rows($filters_query, true); $filters_select_array = array(); if ($count_filters >= SPECIFICATIONS_FILTER_MINIMUM) { $filters_array = array(); if ($first == false) { $box_text .= "<br>\n"; } $first = false; $box_text .= '<b>' . $specs_array['specification_name'] . '</b><br>'; $filter_index = 0; if ($specs_array['filter_show_all'] == 'True') { $count = 1; if (SPECIFICATION_FILTER_NO_RESULT != 'normal' || SPECIFICATIONS_FILTER_SHOW_COUNT == 'True') { // Filter ID is set to 0 so no filter will be applied $count = $spec_object->getFilterCount('0', $specs_array['specifications_id'], $specs_array['filter_class'], $specs_array['products_column_name']); } // The ID value must be set as a string, not an integer $filters_select_array[$filter_index] = array('id' => '0', 'text' => TEXT_SHOW_ALL, 'count' => $count); $filter_index++; } $previous_filter = 0; $previous_filter_id = 0; while ($filters_array = vam_db_fetch_array($filters_query, true)) { $filter_id = $filters_array['filter']; if ($specs_array['products_column_name'] == 'products_price' || $specs_array['products_column_name'] == 'final_price') { //$previous_filter = $currencies->format ($previous_filter); //$filter_text = $currencies->format ($filters_array['filter']); $previous_filter = $previous_filter; $filter_text = $filters_array['filter']; } else {