close
The Wayback Machine - https://web.archive.org/web/20161224104518/https://wordpress.org/plugins/woo-cart-count-shortcode/

WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

WooCommerce Cart Count Shortcode

Display a link to your shopping cart with the item count anywhere on your site with a customizable shortcode.

Looking for a flexible way to display items in your site’s WooCommerce cart? Look no further! This plugin allows you to insert a shortcode anywhere on your site that generates an a href link.

Parameters:

  • icon - Any Font Awesome icon. Most of the time you’ll want to use shopping-cart or shopping-basket.
  • empty_cart_text - The text to display when there are zero items in the cart. You may want this to default to “Shop”.
  • items_in_cart_text - The text to display when there are one or more items in the cart. You may want this to default to “Cart”.
  • show_items - Enter “true/false” to show/hide items in the cart in parentheses. The item count will only show when there are one or more items in the cart.
  • custom_css - Any custom CSS you’d like to add to the link.
  • show_total - Enter “true/false” to show/hide total price in the cart

Examples:

  • [cart_button]
  • [cart_button icon="basket"]
  • [cart_button show_items="true"]
  • [cart_button show_items="true" show_total="true"]
  • [cart_button show_items="false" items_in_cart_text="Cart"]
  • [cart_button show_items="true" empty_cart_text="Store"]
  • [cart_button items_in_cart_text="Cart" custom_css="custom"]

Requires: 4.0 or higher
Compatible up to: 4.4.5
Last Updated: 3 months ago
Active Installs: 600+

Ratings

5 out of 5 stars

Support

0 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.