General / All Themes RSS feed for this section

Changing the product order from ascending to descending

WP-e-Commerce has a filter that you can  in your themes functions.php file to change the product order from ascending to descending. To change the order simply copy the function below.

[php]

add_filter( ‘wpsc_product_order’ , ‘change_product_order’ );

function change_product_order(){

return ‘desc’;

}

[/php]

Read Documentation ·

Get All Product Posts – using get_posts()

You can use the WordPress function get_posts() to get out all product posts you will need to adjust the $args to do a check for the post_type of  ‘wpsc-product’ for more information on get_posts see the WordPress Codex on get_posts

(more…)

Read Documentation ·

Checking if you’re on a product page

There are a few ways to check if your on a product page, you would most likely want to do this within your theme. for example on your page.php file when you call your side bars you might want to call a different side bar for product related pages.

(more…)

Read Documentation ·

Excluding a category from the Products Page

Excluding a category from the Products Page

To exclude products that belong to a particular category from the products page (Default,list or Grid). One solution is to put this code in your selected products page template just after the loop begins. eg. If you are using Grid View, place it here.

(more…)

Read Documentation ·