views:

54

answers:

0

Becuase nobody could answer my previous question; http://stackoverflow.com/questions/3483171/wp-ecommerce-plugin-show-categories-and-products-in-tree-view

I'm going to do a repost.

I've been working on something like this where I'm displaying the categories but now I need to loop round each category within the loop to display products of each category.;

<?php
     wpsc_start_category_query($category_settings); ?>
                    <li class='wpsc_category_<?php wpsc_print_category_id();?>'>


                        <a href="<?php wpsc_print_category_url();?>" class="wpsc_category_link <?php wpsc_print_category_classes(); ?>">
                    <?php wpsc_print_category_name();?>


                        <?php wpsc_print_subcategory("<ul>", "</ul>"); ?>
                    </li>
            <?php wpsc_end_category_query(); ?>

Any help much appreciated.

Cheers

Shane