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

Whats the widget php function to display the compact version of the cart

(10 posts) (4 voices)
  • Started 3 months ago by james
  • Latest reply from Peter
  • Possible Solutions (Related Topics):
    1. php function for shopping cart display in child theme template
    2. search function not displaying quantity and add to cart button
    3. How to display buttons or shopping cart in the sidebar widget
    4. Fancy 5 display - add to cart button cut off
    5. WP eMember - Creating or Customizing the Compact Login Widget/Links

Tags:

  • function
  1. james
    Member

    Whats the widget php function to display the compact version of the cart

    i tried
    http://www.tipsandtricks-hq.com/ecommerce/wp-content/uploads/wp-estore-shortcodes.pdf

    but when added to my theme file none show the compact cart version even when checked in the settings page of estore. i also searched the functions phps and cant find it their

    Posted 3 months ago #
  2. james
    Member

    figured it out <?php echo eStore_show_compact_cart(); ?>

    Posted 3 months ago #
  3. Zain
    Member

    Hi,

    I'm also currently using this function to display the Compact Cart. However, is there a way of displaying the Compact Cart when it's not empty? It needs to be visible all the time.

    Cheers,

    Zain

    Posted 3 months ago #
  4. admin
    Key Master

    The following will show how many items there are in the cart when its not empty. It will show an empty cart when its empty:

    <?php echo eStore_show_compact_cart(); ?>

    So, it will show something all the time.

    Posted 3 months ago #
  5. Zain
    Member

    Thanks for the prompt reply... although I've noticed another slight issue.

    Using eStore_show_compact_cart() doesn't seem to use the same text contained in the "language/eng.php" file. I've already changed the wording in this file, and now I've noticed that different text strings are appearing instead.

    Any idea why this may be happening?

    Cheers,

    Zain

    Posted 3 months ago #
  6. admin
    Key Master

    Which text string are you referring to? Please post a link to the page where you are using this function.

    Posted 3 months ago #
  7. Zain
    Member

    Hi Admin,

    The string that appears when using the <?php echo eStore_show_compact_cart(); ?> can be seen here:
    http://www.themaverickshop.com/your-cart/ (top right)

    It's the text "Your cart is empty" as well as "Visit The Shop", which are different to the strings used by the <?php echo eStore_display_compact_cart(); (); ?>

    Posted 3 months ago #
  8. admin
    Key Master

    These two functions are different (they output slightly different stuff).

    There is one "empty cart message" that comes from the following settings option of the eStore plugin:

    Text or Image to Show When the Cart is Empty
    Posted 3 months ago #
  9. james
    Member

    ok where to find 'class="eStore_compact_cart"' nothing in main css or short codes extra add on css?

    Posted 3 months ago #
  10. Peter
    Moderator

    Hi,
    The 'class="eStore_compact_cart"' can be found in the file called:

    shortcode_include.php

    of the eStore-extra-shortcodes plugin.

    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