- This topic has 2 replies, 2 voices, and was last updated 12 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › Display text link to shopping cart only when items are in cart
Hi all,
I’m using a stand-alone page for my shopping cart. I’d like to display a simple text link (“Checkout”) to the checkout page ONLY when the cart has items.
I’ve looked through the docs and didn’t see any shortcodes that can do this. This seems like a simple function…but maybe not?
Does anyone have a suggestion as to how I can get this done?
There are a couple of things that you can do:
1. Enable the “Automatic redirection to checkout page” option from the settings menu of the eStore plugin. This will automatically redirect the user to the checkout page when they add an item
2. Add the eStore widget to the sidebar then check the “Show Compact Cart in Widget” option which will place a compact cart with “View cart” link in there when you have items in the shopping cart.
Admin,
Option #2 worked the best.
I am using a stand-alone checkout page (no sidebars). Customers are taken to the checkout page once they click “Buy Now”.
In case this might help someone else looking for a similar fix:
I widgetized a section of my header (where I want the cart link, since I’m not using sidebars on my separate checkout page) and used a WP 3.3 custom menu. I then inserted the compact cart on the “Header” custom menu and applied custom styles to achieve the “effect” I was looking for. This enables customers who leave the checkout page to click a link in the header that returns them to the checkout page.
It isn’t perfect since I had to modify some core files from the shortcode extender plugin (which I assume will need re-modified upon plugin updates), but I got it just the way I wanted nonetheless. Thanks!