{"id":48899,"date":"2016-06-11T01:35:32","date_gmt":"2016-06-11T01:35:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/woo-cart-count-shortcode\/"},"modified":"2024-12-18T05:12:08","modified_gmt":"2024-12-18T05:12:08","slug":"woo-cart-count-shortcode","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/woo-cart-count-shortcode\/","author":14838236,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"6.7.5","requires":"4.0","requires_php":"","requires_plugins":null,"header_name":"WooCommerce Cart Count Shortcode","header_author":"Pronto Marketing","header_description":"","assets_banners_color":"5c6fa5","last_updated":"2024-12-18 05:12:08","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/prontotools\/woocommerce-cart-count-shortcode","header_author_uri":"http:\/\/www.prontomarketing.com","rating":4.1,"author_block_rating":0,"active_installs":800,"downloads":20785,"num_ratings":12,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"prontotools","date":"2016-06-18 04:28:07"},"1.0.1":{"tag":"1.0.1","author":"prontotools","date":"2016-09-22 06:58:17"},"1.0.2":{"tag":"1.0.2","author":"prontotools","date":"2017-04-24 04:46:20"},"1.0.3":{"tag":"1.0.3","author":"prontotools","date":"2017-08-25 07:36:47"},"1.0.4":{"tag":"1.0.4","author":"prontotools","date":"2017-09-29 10:51:23"},"1.1.0":{"tag":"1.1.0","author":"prontotools","date":"2024-12-17 12:34:06"},"1.1.1":{"tag":"1.1.1","author":"prontotools","date":"2024-12-18 05:12:08"}},"upgrade_notice":[],"ratings":{"1":"2","2":0,"3":"1","4":"1","5":"8"},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":1434752,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1434752,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1434758,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Example of the plugin in action. Ain't she purdy!?"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3047,442,3045,80,286],"plugin_category":[43,45],"plugin_contributors":[87201,87202,89449],"plugin_business_model":[],"class_list":["post-48899","plugin","type-plugin","status-closed","hentry","plugin_tags-cart","plugin_tags-count","plugin_tags-shopping-cart","plugin_tags-shortcode","plugin_tags-woocommerce","plugin_category-customization","plugin_category-ecommerce","plugin_contributors-prontotools","plugin_contributors-sandsine","plugin_contributors-zkancs","plugin_committers-prontotools"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/woo-cart-count-shortcode_5c6fa5.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/woo-cart-count-shortcode\/assets\/screenshot-1.png?rev=1434758","caption":"Example of the plugin in action. Ain't she purdy!?"}],"raw_content":"<!--section=description-->\n<p>Looking for a flexible way to display items in your site\u2019s WooCommerce cart? Look no further! This plugin allows you to insert a shortcode anywhere on your site that generates an a href link.<\/p>\n\n<p><strong>Parameters:<\/strong><\/p>\n\n<ul>\n<li><strong>icon<\/strong> - Any <a href=\"https:\/\/fortawesome.github.io\/Font-Awesome\/\">Font Awesome<\/a> icon. Most of the time you\u2019ll want to use <code>shopping-cart<\/code> or <code>shopping-basket<\/code>. <\/li>\n<li><strong>empty_cart_text<\/strong> - The text to display when there are zero items in the cart. You may want this to default to \u201cShop\u201d.<\/li>\n<li><strong>items_in_cart_text<\/strong> - The text to display when there are one or more items in the cart. You may want this to default to \u201cCart\u201d.<\/li>\n<li><strong>total_text<\/strong> - The text to display when there are one or more items in the cart. You may want this to default to \u201cTotal:\u201d.<\/li>\n<li><strong>show_items<\/strong> - Enter \u201ctrue\/false\u201d 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.<\/li>\n<li><strong>custom_css<\/strong> - Any custom CSS you\u2019d like to add to the link.<\/li>\n<li><strong>show_total<\/strong> - Enter \u201ctrue\/false\u201d to show\/hide total price in the cart<\/li>\n<\/ul>\n\n<p><strong>Examples:<\/strong><\/p>\n\n<ul>\n<li><code>[cart_button]<\/code><\/li>\n<li><code>[cart_button icon=\"basket\"]<\/code><\/li>\n<li><code>[cart_button show_items=\"true\"]<\/code><\/li>\n<li><code>[cart_button show_items=\"true\" show_total=\"true\"]<\/code><\/li>\n<li><code>[cart_button show_items=\"true\" show_total=\"true\" total_text=\"Total Price:\"]<\/code><\/li>\n<li><code>[cart_button show_items=\"false\" items_in_cart_text=\"Cart\"]<\/code><\/li>\n<li><code>[cart_button show_items=\"true\" empty_cart_text=\"Store\"]<\/code><\/li>\n<li><code>[cart_button items_in_cart_text=\"Cart\" custom_css=\"custom\"]<\/code><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/plugin-name<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Include the shortcode anywhere on your website: <code>[cart_button icon=\"shopping-cart\" empty_cart_text=\"Shop\" items_in_cart_text=\"Cart\" custom_css=\"custom\"]<\/code><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release!<\/li>\n<li>Tested with WordPress 4.4.2 and WooCommerce 2.5.5.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Add parameter <code>show_total<\/code> to make this shortcode can show total price in cart<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Add parameter <code>total_text<\/code> to custom text for total price in cart<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Prevent fatal error when WooCommerce does not get initialized properly.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Use <code>WC()<\/code> instead of the global variable <code>$woocommerce<\/code>.<\/li>\n<li>Add 3 filters below to allow users to modify the generated markup.\n\n<ol>\n<li><code>wccs_cart_icon_html<\/code><\/li>\n<li><code>wccs_cart_count_html<\/code><\/li>\n<li><code>wccs_cart_total_html<\/code><\/li>\n<\/ol><\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Prevent cross-site scripting (XSS) vulunerability in a shortcode<\/li>\n<\/ul>","raw_excerpt":"Display a link to your shopping cart with the item count anywhere on your site with a customizable shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/48899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=48899"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/prontotools"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=48899"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=48899"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=48899"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=48899"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=48899"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=48899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}