Title: Wp E-commerce Conditional sidebar
Last modified: August 20, 2016

---

# Wp E-commerce Conditional sidebar

 *  [surfsup74](https://wordpress.org/support/users/surfsup74/)
 * (@surfsup74)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-e-commerce-conditional-sidebar/)
 * I’m setting up wp e-commerce for the first time so need a little help. I would
   like to only display wp ecommerce content in the sidebar when i am within the
   shop area of the site (ie not when I’m on a blog post or other page).
 * what i need is something like:
 * if (is in the shop area() { get_sidebar(‘special-wp-specific’) {else { get_sidebar();}
 * seems simple enough – however I can’t find any docs on how this is achieved.
 * Thanks
 * Dan

Viewing 1 replies (of 1 total)

 *  [jodamo5](https://wordpress.org/support/users/jodamo5/)
 * (@jodamo5)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/wp-e-commerce-conditional-sidebar/#post-2253395)
 * Hi Dan. I’m just in the process of setting it up too, but I’ve found a really
   easy way to do it. Install a plugin called “Widget Logic”. Then you get a logic
   field added to each widget. It uses the wordpress [conditional tags](http://codex.wordpress.org/Conditional_Tags)
   to easily allow you to choose when the shopping cart shows up.
 * There’s helpful explanations on the Widget Logic information pages too:
    [http://wordpress.org/extend/plugins/widget-logic/other_notes/](http://wordpress.org/extend/plugins/widget-logic/other_notes/)
 * I wanted to hide the shopping cart on the checkout page. (Seemed silly having
   it appear on that page). My checkout page is page 5, so I just used this one 
   line and it worked:
    !is_page(‘5’) (which means, “display when the page does 
   not equal page 5”)

Viewing 1 replies (of 1 total)

The topic ‘Wp E-commerce Conditional sidebar’ is closed to new replies.

## Tags

 * [getshopped](https://wordpress.org/support/topic-tag/getshopped/)

 * 1 reply
 * 2 participants
 * Last reply from: [jodamo5](https://wordpress.org/support/users/jodamo5/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/wp-e-commerce-conditional-sidebar/#post-2253395)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
