WooCommerce Cart Count Shortcode
Display a link to your shopping cart with the item count anywhere on your site with a customizable shortcode.
Maintenance 24/1003015d since update
Active installs
1,000
Downloads
20,552
Reviews
12
Age
9.6y
Tagswoocommerceshortcodecartshopping cartcount
Plugin info
Total downloads: 20,552
Active installs: 1,000
Total reviews: 12
Average rating: 4.1
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 3
Last updated: 9/29/2017 (3015 days ago)
Added to WordPress: 6/11/2016 (9 years old)
Minimum WordPress version: 4.0
Tested up to WordPress version: 4.8.25
Minimum PHP version: f
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 3015 days ago • 12 reviews
24/100
Is WooCommerce Cart Count Shortcode abandoned?
Possibly abandoned (last update 3015 days ago).
Compatibility
Requires WordPress: 4.0
Tested up to: 4.8.25
Requires PHP: f
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Simple Download Monitor
Rating 4.6/5 (146 reviews) • Active installs 20,000
Post Views Count (Support caching plugins!)
Rating 3.9/5 (35 reviews) • Active installs 7,000
Waiting: One-click countdowns
Rating 4.6/5 (37 reviews) • Active installs 5,000
Post View Count
Rating 4.6/5 (18 reviews) • Active installs 5,000
GravityWP – Count
Rating 5.0/5 (13 reviews) • Active installs 2,000
Easy Post Views Count
Rating 4.0/5 (6 reviews) • Active installs 2,000
Description
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-cartorshopping-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”.
- total_text – The text to display when there are one or more items in the cart. You may want this to default to “Total:”.
- 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="true" show_total="true" total_text="Total Price:"][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"]
Installation
- Upload the plugin files to the
/wp-content/plugins/plugin-namedirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Include the shortcode anywhere on your website:
[cart_button icon="shopping-cart" empty_cart_text="Shop" items_in_cart_text="Cart" custom_css="custom"]
Frequently Asked Questions
Installation Instructions
- Upload the plugin files to the
/wp-content/plugins/plugin-namedirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Include the shortcode anywhere on your website:
[cart_button icon="shopping-cart" empty_cart_text="Shop" items_in_cart_text="Cart" custom_css="custom"]
Review feed
nattyait
Good support!
You guys always update this plugin. Thank you!
Changelog
1.0.0
- First release!
- Tested with WordPress 4.4.2 and WooCommerce 2.5.5.
1.0.1
- Add parameter
show_totalto make this shortcode can show total price in cart
1.0.2
- Add parameter
total_textto custom text for total price in cart
1.0.3
- Prevent fatal error when WooCommerce does not get initialized properly.
1.0.4
- Use
WC()instead of the global variable$woocommerce. - Add 3 filters below to allow users to modify the generated markup.
wccs_cart_icon_htmlwccs_cart_count_htmlwccs_cart_total_html
