Plugin Directory

Changeset 355095

Timestamp:
03/04/2011 02:35:29 AM (13 years ago)
Author:
jghazally
Message:

Fix the sorting by price bug in category

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-core/wpsc-functions.php

    r355080 r355095  
    527527        }
    528528    }
    529 
    530529    if ( isset( $wp_query->post->ID ) )
    531530        $post_id = $wp_query->post->ID;
     
    846845            }
    847846            $whichcat .= " AND $wpdb->posts.post_status IN ('publish', 'locked', 'private') ";
     847
    848848            $groupby = "{$wpdb->posts}.ID";
    849849
    850850            $this->sql_components['join']     = $join;
    851             $this->sql_components['where']    = $whichcat;
    852851            $this->sql_components['fields']   = "{$wpdb->posts}.*, {$wpdb->term_taxonomy}.term_id";
    853             $this->sql_components['order_by'] = "{$wpdb->term_taxonomy}.term_id";
    854852            $this->sql_components['group_by'] = $groupby;
     853
     854
     855
     856
     857
     858
     859
     860
     861
    855862            add_filter( 'posts_join', array( &$this, 'join_sql' ) );
    856863            add_filter( 'posts_where', array( &$this, 'where_sql' ) );
Note: See TracChangeset for help on using the changeset viewer.