WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[Plugin: WP e-Commerce] Problem with wpsc_is_in_category conditional tag (3 posts)

  1. Mloda
    Member
    Posted 1 year ago #

    Hi I have a problem with wpsc_is_in_category tag.

    In a sidebar I want to display list of categories depending on the category page the user is on.

    So I have a code like this:

    <?php if (wpsc_is_in_category() ==8) {
    echo 'example 1';
    } elseif (wpsc_is_in_category() == 17)  {
    echo 'example 2';
    } elseif (wpsc_is_in_category() == 17)  {
    echo 'example 3';
    } else {
    }
    ?>

    The tag doesn't work, all I get on each category page is 'example 1' displaying.

    Is there another way to do it?

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. nits_wp
    Member
    Posted 1 year ago #

    i also want this answer..can someone reply please?

  3. ewroman
    Member
    Posted 1 year ago #

    try this.

    if (wpsc_category_id() == 6) {
    
    // do the stuff
    
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic