andrea_s (January 24th, 2012), billis (October 4th, 2011), dikiyforester (January 13th, 2012), luckymohawk (April 30th, 2012), mayed (March 1st, 2012), rozatarra (October 19th, 2012)
cp_refine_search_builder($results);
cp_refine_search_builder($results,$catid);
function cp_refine_search_builder($results) {
function cp_refine_search_builder($results,$catid) {
$cp_min_price = str_replace( ',', '', $wpdb->get_var( "SELECT min( CAST( meta_value AS UNSIGNED ) ) FROM $wpdb->postmeta WHERE meta_key = 'cp_price'" ) );
$cp_max_price = str_replace( ',', '', $wpdb->get_var( "SELECT max( CAST( meta_value AS UNSIGNED ) ) FROM $wpdb->postmeta WHERE meta_key = 'cp_price'" ) );
$cp_min_price = str_replace( ',', '', $wpdb->get_var( "SELECT min( CAST( meta_value AS UNSIGNED ) ) FROM $wpdb->term_relationships,$wpdb->postmeta WHERE object_id=post_id AND meta_key = 'cp_price' And term_taxonomy_id = $catid;" ) );
$cp_max_price = str_replace( ',', '', $wpdb->get_var( "SELECT max( CAST( meta_value AS UNSIGNED ) ) FROM $wpdb->term_relationships,$wpdb->postmeta WHERE object_id=post_id AND meta_key = 'cp_price' And term_taxonomy_id = $catid;" ) );
andrea_s (January 24th, 2012), billis (October 4th, 2011), dikiyforester (January 13th, 2012), luckymohawk (April 30th, 2012), mayed (March 1st, 2012), rozatarra (October 19th, 2012)
andrea_s (January 24th, 2012)
andrea_s (January 24th, 2012)
andrea_s (January 24th, 2012)
andrea_s (January 24th, 2012)
andrea_s (January 24th, 2012)
timkoch (November 13th, 2012)
marcellino (October 17th, 2012), mayed (March 1st, 2012), pauro (May 4th, 2012)
There are currently 1 users browsing this thread. (0 members and 1 guests)