- This topic has 3 replies, 2 voices, and was last updated 12 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › How to show total items in cart in the menu bar?
I’m wondering if anyone knows how, or has ever done something like this, but if not then I’m glad for any help to figure it out.
I’ve made a ‘View Cart’ link in the menu for my site that has a small shopping cart icon as the background image behind the wording ‘view cart’. It has a nice rollover effect just for kicks and I like that it’s in a permanent place, visible but out of the way. But it would be very sweet to have the total items in the cart show right there in the link, like it does on Amazon.com.
I’m not a php expert, though I’m not clueless or afraid to dig into it and try things. But I cannot find a way to run the php snippet up there in the menu. I have looked at the possibility of doing something with wordpress functions (maybe wp_menu_nav_xx..whatever).. but I can’t help but think someone has already done this and I don’t need to reinvent the wheel here.
Anyone have suggestions on this, or perhaps can point me to an easy solution?
Thanks,
Chris
The following function will give you the number of items in the shopping cart
eStore_get_total_cart_item_qty()
You can show that number however you like it.
Thanks, I already know that and am using it in one place on my site. It doesn’t answer the question though.
You are asking for a customization that involves customizing your theme’s navigation menu. We don’t offer that kind of customization service here unfortunately. If there was a quick and easy answer for your question I would have answered but not all customizations are simple.