- This topic has 4 replies, 2 voices, and was last updated 14 years, 5 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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 › sidebar widget question
Tagged: Compact Cart
I’m using the compact version of the shopping cart widget because my theme’s column is narrow. But I’d like it to be hidden altogether until something is added to the cart.
Please open the “eStore_cart.php” file and find the following function:
$output = eStore_empty_cart_display();
once you find that function just replace it with the following line:
return;
Save and upload the file to the “wp-cart-for-digital-products” directory.
Thank you – that worked.
However, the title is still there when cart is empty… can I display that only when cart has content as well? See site here http://comealongsongs.com/
Use the following PHP function to display the code rather than the widget (the widget version will have a title):
<?php echo eStore_show_compact_cart(); ?>
If you don’t know how to use PHP function calls then this page will come in handy(read the “How to Display Button(s) on the Sidebar” section on that page)
Alternatively, you can read this post:
Fabulous! thanks