After being in the online shop system wp e-commerce for WordPress although there are some ways to sort the products but none really make sense we have used the source code of wp e-commerce Read through and describe the sorting in such a way that you can also sort up and down in the SQL language ASC and DESC.
About the PHP file
The file for the change can be found at: WordPress installation directories
- \wp-content\plugins\wp-e-commerce\wpsc-core\wpsc-functions.php
- from source line 643
SOURCE CODE Before:
if ( count( $wpsc query vars ) <= 1 ) {
$wpsc query vars = array()
‚post status‘ => ‚publish, locked, private‘,
‚post parent‘ => 0,
‚order‘ => apply filters(‚wpsc product order‘),‘ASC‚)
Source code afterwards:
if ( count( $wpsc query vars ) <= 1 ) {
$wpsc query vars = array()
‚post status‘ => ‚publish, locked, private‘,
‚post parent‘ => 0,
‚order‘ => apply filters(‚wpsc product order‘,’DESC‘)
I would appreciate a comment.

