Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Show the grey guy shopping cart in widget.
- This topic has 14 replies, 5 voices, and was last updated 13 years, 3 months ago by
Louis.
-
AuthorPosts
-
April 9, 2010 at 1:34 am #1043
Jimmy
MemberHow do I display the Shopping cart guy like you have on you /products page and it’s image:
http://www.mysite.com/wp-content/plugins/wp-cart-for-digital-products/images/cart_empty.jpg
In the sidebar widget, I want it to show the grey guy when the cart is empty-
When an item is added it will switch to the cart with the green check mark.
Just like on your site.
I tried the PHP Widgify plugin and got the small cart to show all the time- But how to make it switch back and forth?
Thanks very much,
Jimmy
April 9, 2010 at 3:41 am #19514Ivy
MemberHi Jimmy, Please try the following PHP code: <?php echo wp_digi_cart_always_show(); ?>
This should show the little grey guy.
Let me know how it goes.
Cheers,
Ivy
April 9, 2010 at 3:46 am #19515Jimmy
MemberThanks Ivy,
But it only shows the “shopping_cart_icon.gif”
Not the little grey guy “http://www.tipsandtricks-hq.com/wp-content/plugins/wp-cart-for-digital-products/images/cart_empty.jpg”
April 9, 2010 at 4:09 am #19516Jimmy
MemberI just did a fresh install and am having the same problem.
In my PHP Widget— Using: <?php echo wp_digi_cart_always_show(); ?> makes the small cart with the green check mark appear when cart is empty.
The same one that appears when you add an item to a cart.
Can’t seem to get the grey guy to show up at all.
Thanks,
Jimmy
April 9, 2010 at 5:33 am #19517amin007
ParticipantIn the “General Settings” menu of the eStore plugin have you specified the URL of the little guy in the “Text/Image to show when cart empty” field? If you haven’t then it won’t show it.
April 9, 2010 at 1:44 pm #19518Jimmy
MemberHey- Thanks for the help everyone! I just bought the plugin yesterday- and really love it!
admin007: I made adjustments in “General Setting” and now they are now BOTH showing when cart is empty.
Grey guy disappears when something is added, but the other cart remains all the time.
You can see it here: http://hedgepigfred.com/monkey-peeler
I am adding <?php echo wp_digi_cart_always_show(); ?> to the PHP Widgify Plugin. Nothing eles is there but that line.
Sorry for my ignorance…
Thanks,
Jimmy
April 9, 2010 at 5:50 pm #19519Jimmy
MemberOk, It’s working now.
In the General Settings I ticked the “Hide Shopping Cart Image” box.
Now only the Grey Guy shows until an item is added.
Thanks very much you guys…
Great plugin!
Jimmy
April 10, 2010 at 12:55 am #19520Ivy
MemberHi Jimmy, I am glad you got this working. Please let us know if you need anything else.
Cheers,
Ivy
November 13, 2011 at 4:26 pm #19521Louis
MemberHi, I posted something here: https://support.tipsandtricks-hq.com/forums/topic/show-grey-shopping-cart-guy-in-the-sidebar#post-24851
I hope I am not confused, but basically, if I hide the shopping cart image, then obviously the “normal” cart picture does not show anymore, wether when the cart is empty or not.
Is it possible to have it behave that when the cart is empty, it shows the empty cart picture only, and when a product is added it shows the normal cart picture? Like a simple image swap on different behaviour. This is the short code I am using: [wp_eStore_cart]
November 13, 2011 at 6:53 pm #19522Louis
MemberActually, how did you get this to work here: http://www.tipsandtricks-hq.com/ecommerce/wordpress-estore-plugin-demo-175 ?
I have visited some of the members’s website and it doesn’t behave like on your website.
November 13, 2011 at 7:19 pm #19523Louis
MemberOk, I know where the issue is, after tweaking for a while… I tried all possible options.
The “empty/non empty cart image” works fine if you use a widget, so I assume that on your website, you’ve inserted the shopping in a side bar, correct? Please let me know.
I am not able to get this to work properly in a page. Any idea?
November 14, 2011 at 12:35 am #19524admin
KeymasterUse an image URL (the image you want to show) in the “Text or Image to Show When the Cart is Empty” field of eStore settings.
Now, use the following shortcode:
[wp_eStore_cart]
November 14, 2011 at 1:27 am #19525Louis
MemberI have setup the url for the image properly, that’s not the issue.
As explained before, this short code [wp_eStore_cart] shows both, the empty and full cart pictures, when the cart is empty, and when the cart has an item in it, it shows the full cart picture.
This short code [wp_eStore_cart_fancy1] shows only the empty cart picture when the cart is empty, as expected.
On the other hand, the full cart picture does not show when there is an item in the cart.
Could you show me an example with this [wp_eStore_cart] or [wp_eStore_cart_fancy1] short code within a page?
November 14, 2011 at 10:01 pm #19526admin
KeymasterThey are two different shortcodes and meant to present the shopping cart slightly differently (that is why the other one is called “fancy1”). The fancy1 does not show the shopping cart icon in the title.
November 15, 2011 at 12:50 am #19527Louis
MemberUnderstood. Is there a way to show the empty cart icon only here: http://louisg.org/cart/
I mean, would it be hard to do it?
An other question:
Setting:
Shopping Cart Header
Leave empty if you do not want the shopping cart header to appear
I left it empty, it’s not behaving as it should? As seen above.
-
AuthorPosts
- You must be logged in to reply to this topic.