- This topic has 3 replies, 3 voices, and was last updated 14 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Shopping Cart in Sidebar Only on One Page
Hi,
I had a quick question. I have a blog and I am setting it up so that one page has items that I want to sell and I want to have the shopping cart widget in the sidebar. Now when I add the widget on the side it seems to show “your shopping cart” on every single page including the homepage but I only want the widget on one page. Is there a way of doing that?
Thanks.
It’s completely upto your theme. Does your theme have different sidebar widget options based on the page you are viewing? (e.g. home page, post page etc).
The shopping cart just adds the widget to the sidebar but if you theme is designed to display the same sidebar content throughout the then the eStore plugin can’t really do anything about it.
Let me know if this makes sense.
Hi,
I use a free plugin called “Widget Logic” that lets you indicate which widgets should show up on which pages. I have some of my widgets configured to show up only on the home page, another widget that shows up only on the contact page, etc. I’m not sure if it would work for the shopping cart widget but it might be worth looking into.
~ Kristen
If you can specify a function in that plugin then use the following function which displays the shopping cart:
<?php echo print_wp_digi_cart(); ?>
This way you don’t have to add the shopping cart widget from the widgets menu… just use that function where you want to display it.