WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP-E-commerce] Displaying Parent Categories only

[Plugin: WP-E-commerce] Displaying Parent Categories only

  • theplastickid
    Participant

    @theplastickid

    Hello,

    I am trying to make my wp-ecommerce product page display the category thumbnails of my parent categories only. Once the parent categories are clicked I then want to display the sub categories of that parent and finally the products within that sub category.

    Here is a nice simple example: Mad Beauty Site

    This is proving to be almost impossible with wp-ecommerce.

    My method around its lack of controls in the presentation settings was to create two custom template files for the parent category and sub category pages. And use wp-ecommerce template tags to display only the information I want eg category thumbnails and titles.

    I am not great with PHP and for example on my parent category template page I have inserted the following:

    <?php wpsc_start_category_query(array('category_group'=> 1, 'show_thumbnails'=> 1)); ?>
    
    <a href="<?php wpsc_print_category_url();?>" class="wpsc_category_grid_item  <?php wpsc_print_category_classes_section(); ?>" title="<?php wpsc_print_category_name();?>">
    <?php wpsc_print_category_image(45, 45); ?>
                        </a>

    Now I am assuming that category_group is calling the category I want to display or the group of categories? I can not find anything in the wp settings to create groups.

    If there is anyone who could assist me with this I would much appreciate it.

    Many Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-E-commerce] Displaying Parent Categories only’ is closed to new replies.