Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Tweaks

Display text link to shopping cart only when items are in cart

(3 posts) (2 voices)
  • Started 3 months ago by Brian
  • Latest reply from Brian
  • Possible Solutions (Related Topics):
    1. Adjust text formatting for "Shopping Cart is Empty" / "Items in Your Cart"
    2. Is it possible to use a text link instead of a button for 'add to cart'?
    3. Displaying Shopping Cart
    4. wp-eStore-auto-addtocart links to wordpress-simple-paypal-shopping-cart
    5. Add to cart as text link adds product but nothing in url

Tags:

  • cart
  • shopping
  • shortcode
  1. Brian
    Member

    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?

    Posted 3 months ago #
  2. admin
    Key Master

    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.

    Posted 3 months ago #
  3. Brian
    Member

    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!

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin