Support » Plugins » WP e-Commerce

  • Hi there.

    I’m using latest version of WP e-Commerce on WP 3.3.1

    What im trying to do is show some stuff on my sidebar only for shop pages.

    Therefor I’m looking for conditional statement similar to the following one but that will work 🙂

    if (shop) {“do it”} else {dont}

    Any help much appreciated.

    Thank you in advance.

    Dom

Viewing 1 replies (of 1 total)
  • Got the ansewer myself:

    If not product page:

    <?php if ('wpsc-product' != get_post_type())  { ?>
             do stuff
    <?php }?>
    If product page:
    <?php if ('wpsc-product' == get_post_type())  { ?>
             do stuff
    <?php }?>

Viewing 1 replies (of 1 total)
  • The topic ‘WP e-Commerce’ is closed to new replies.