WP eCommerce
Excluding a category from the products page (1 post)

  1. LSB Web Design
    Posted 2 years ago #

    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: http://docs.getshopped.org/documentation/theme-hacks/

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic