WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-E-commerce] Displaying Parent Categories only (4 posts)

  1. theplastickid
    Member
    Posted 2 years ago #

    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.

  2. theplastickid
    Member
    Posted 2 years ago #

    bump ^^^

  3. johnarch
    Member
    Posted 2 years ago #

    I would kill for the answer to this one.

  4. iahne
    Member
    Posted 2 years ago #

    No one did answer for this one? I need this too. johnarch, if I were to stumble to any answer for this you have to prepare some cows to kill. lol.

    I will post for any possible answer for this.

Topic Closed

This topic has been closed to new replies.

About this Topic