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
- This topic has 9 replies, 4 voices, and was last updated 13 years, 9 months ago by
Peter.
-
AuthorPosts
-
February 2, 2012 at 6:21 pm #5460
james
MemberWhats 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
February 2, 2012 at 7:33 pm #41532james
Memberfigured it out <?php echo eStore_show_compact_cart(); ?>
February 8, 2012 at 8:45 am #41533Zain
ParticipantHi,
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
February 9, 2012 at 1:53 am #41534admin
KeymasterThe 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.
February 9, 2012 at 7:56 am #41535Zain
ParticipantThanks 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
February 9, 2012 at 11:09 pm #41536admin
KeymasterWhich text string are you referring to? Please post a link to the page where you are using this function.
February 10, 2012 at 6:46 am #41537Zain
ParticipantHi 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(); (); ?>February 10, 2012 at 7:28 am #41538admin
KeymasterThese 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 EmptyFebruary 23, 2012 at 9:14 am #41539james
Memberok where to find ‘class=”eStore_compact_cart”‘ nothing in main css or short codes extra add on css?
February 23, 2012 at 12:11 pm #41540Peter
MemberHi,
The ‘class=”eStore_compact_cart”‘ can be found in the file called:
shortcode_include.php
of the eStore-extra-shortcodes plugin.
-
AuthorPosts
- You must be logged in to reply to this topic.