Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Showing Dynamic "View Cart" Button

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Showing Dynamic "View Cart" Button

Tagged: empty cart, price isn't showing up

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 12 months ago by askjayson.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 27, 2009 at 12:07 am #604
    bhadaway
    Member

    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?

    December 27, 2009 at 2:53 am #16929
    amin007
    Participant

    You will have to use PHP… try something like this

    if (digi_cart_not_empty())

    {

    // code to show the “view cart”

    }

    March 31, 2010 at 7:32 am #16930
    askjayson
    Member

    How about is there a template tag or function I can write a conditional statement that allows me to display the product list or category list on my cart page, when the cart is empty vs. the blank page or default link to visit the shop?

    Thanks so much.

    March 31, 2010 at 8:27 am #16931
    askjayson
    Member

    Thanks Amin, I have this code in place and it works like a charm if anyone is interested in displaying the shortcode on their “empty cart” page.

    Code:
    if (!digi_cart_not_empty()) {
    <?php echo do_shortcode(‘[wp_eStore_list_categories_fancy]’); ?>
    }

    Also I thought it would be a great benefit to have a URI redirect field for when shoppers do empty their cart.

    All the best.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ