Support » Plugin: WP eCommerce » Excluding a category from the products page

  • LSB Web Design


    Hi I am trying to exclude a number of categories from the products page but I cant seem to get it to work correctly following the instructions on this page:

    I have added the following code to the wpsc-products_page.php file after line 65:

    <div class="product_grid_display group">
    <?php while (wpsc_have_products()) : wpsc_the_product(); ?>
    $prod_id = wpsc_the_product_id();
    $category = get_the_product_category( $prod_id );
    if($category[0]->term_id == 143){
    	} else {?>
    	<div class="product_grid_item product_view_<?php echo wpsc_the_product_id(); ?>">
    	<?php if(wpsc_the_product_thumbnail()) :?>
    	<div class="item_image">

    Im then not sure on the next part.
    What exactly do I need to add to the wpsc-grid_view.php file and on what line?

    Guidance on this would be appreciated.

  • The topic ‘Excluding a category from the products page’ is closed to new replies.