Consider I don't want to show the shopping cart on every page and I have it appear only when someone adds to it, but if they for example leave the page and continue browsing or shopping I'd like them to be able to click "View Cart" and go directly back to it without trying to remember what page it was on, now I simply have a view cart link in the sidebar that always shows even if the cart is invisible/empty:
<div style="text-align:right">
<a href="http://www.website.com/main/gallery/#cart">VIEW CART</a>
</div>
Is there a way to show it only when something is in the cart and hide it otherwise?