Title: WP e-Commerce
Last modified: August 20, 2016

---

# WP e-Commerce

 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/wp-e-commerce-23/)
 * Hi there.
 * I’m using latest version of [WP e-Commerce](http://wordpress.org/extend/plugins/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)

 *  Thread Starter [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/wp-e-commerce-23/#post-2580536)
 * 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.

 * 1 reply
 * 1 participant
 * Last reply from: [dompl](https://wordpress.org/support/users/dompl/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/wp-e-commerce-23/#post-2580536)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
