- This topic has 9 replies, 4 voices, and was last updated 12 years, 9 months ago by .
Viewing 10 posts - 1 through 10 (of 10 total)
Viewing 10 posts - 1 through 10 (of 10 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 › Whats the widget php function to display the compact version of the cart
Tagged: function
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
figured it out <?php echo eStore_show_compact_cart(); ?>
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
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.
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
Which text string are you referring to? Please post a link to the page where you are using this function.
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(); (); ?>
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
ok where to find ‘class=”eStore_compact_cart”‘ nothing in main css or short codes extra add on css?
Hi,
The ‘class=”eStore_compact_cart”‘ can be found in the file called:
shortcode_include.php
of the eStore-extra-shortcodes plugin.