While WP e-Commerce lets you choose how to order your products (E.g. Price, Name, Date Uploaded) through the admin area, it doesn’t let you control whether you’re sorting ascending or descending – e.g. cheapest first, or most expensive first.
Here’s a a quick tip to show how to control the sort order, just add the following snippet to your WordPress theme’s functions.php file:
<?php if (!isset($_SESSION['wpsc_product_order'])) { $_SESSION['wpsc_product_order'] = "DESC"; } ?>
Just swap DESC for ASC to swap the default order. Happy sorting …
42 Comments
Leave a reply →