will the plugin be updated?
$cart_url = WC()->cart->get_cart_url();
is deprecated
Hello,
I am using WooCommerce Cart Count Shortcode plugin for one of mine website and i have using the plugin cart count shortcodes, it’s working fine before but right now if I am checking it on a private browser or another computer then by default cart showing cart item 2 whether we have an empty cart.
As we have checked woo-commerce status then here this message is showing for the plugin – https://prnt.sc/priijg
Kindly check the URL: https://professionalpm.com/propm/scheduled-events/
Why did this happen? Is there any plugin version issue?
Please see my issue and provide any solution for this.
Kindly reply on this id – [email protected]
]]>Hi there – I have this plugin installed and the shortcode working in my header, but I’ve noticed there’s no AJAX happening when items are added or removed from the cart.
For example if I have 10 items in my cart and remove them all, my cart page says “Your cart is currently empty” but the indicator stills says “10” unless I refresh the page.
Is there a way to attach a AJAX cart call to this so it updates in real time?
Thanks!
]]>Is there any way you can change the link when the cart is empty so that it still takes you to your cart rather than the shop page?
]]>Great plugin does the job perfectly, saves a lot of time and hassle!
Just one thing though, is there anyway to change the size?
Want to make the icon and text just a tad bigger?
]]>I using Avada theme and added the shortcode [cart_button show_items="true" show_total="true" total_text=" " custom_css="topCart"]
to the Tagline zone for header version 4, when I add item the cart is updating but when I remove item on the cart page, the cart not updating
Hello!
Is there a way to display price with tax?
In Woo I have prices without tax and it’s calculated depending on the basket. But your plugin will only show the total price without the tax. Can I change this?
I have also WP Menu Cart and it shows the price with the tax.
Thanks!
]]>Any ideas why I am getting the following error please?
Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /homepages/36/d696176350/htdocs/app696176515/wp-content/plugins/woo-cart-count-shortcode/woocommerce-cart-count-shortcode.php:40 Stack trace: #0 /homepages/36/d696176350/htdocs/app696176515/wp-includes/shortcodes.php(319): woocommerce_cart_count_shortcode(Array, ”, ‘cart_button’) #1 [internal function]: do_shortcode_tag(Array) #2 /homepages/36/d696176350/htdocs/app696176515/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(do_wid…’, ‘do_shortcode_ta…’, ‘[cart_button ic…’) #3 /homepages/36/d696176350/htdocs/app696176515/wp-includes/class-wp-hook.php(286): do_shortcode(‘[cart_button ic…’) #4 /homepages/36/d696176350/htdocs/app696176515/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘[cart_button ic…’, Array) #5 /homepages/36/d696176350/htdocs/app696176515/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(116): apply_filters(‘the_content’, ‘[cart_button ic…’) #6 /homepages/36/d69617 in /homepages/36/d696176350/htdocs/app696176515/wp-content/plugins/woo-cart-count-shortcode/woocommerce-cart-count-shortcode.php on line 40
]]>How the color of the cart icon to change using custom_css=”custom”
]]>Hi,
How can I hide completely when there are no items in the cart?
]]>When using with Elementor page builder plugin, it’s fine to add your shortcode in Elementor editor. But saving and then refreshing the editor page results in error 500), displaying only the following text:
]]>Edit Widget
Duplicate Widget
Remove Widget
When you have nothing in the basket the link takes you to the shop, which is OK, however if you add something to the basket from a catalog page and then click the basket, it still takes you to the shop page instead of the basket.
Works correctly if you add from a single product page.
]]>Hi, this plugin is so useful!
In my design I’d like to have the text before the icon eg.
Basket <basket-icon> (2)
Is this possible?
Thanks!
]]>Hello!
Thank you for this nice plugin!
Is there any way to change the empty cart link? Currently it sends the visitor to the store page but I want that to be a different url.
Thank you in advance for looking into this!
With regards,
Levente
WordPress logs are showing the following error:
[15-Nov-2017 14:06:31 UTC] PHP Notice: WC_Cart::get_cart_url is <strong>deprecated</strong> since version 2.5! Use wc_get_cart_url instead. in .../wp-includes/functions.php on line 3831
Please update line 42 of the file woocommerce-cart-count-shortcode.php from:
$cart_url = WC()->cart->get_cart_url();
to
cart_url = wc_get_cart_url();
hey are you able to add an auto update feature when clicking an add to cart button on
a woocommerce item ??
because at the moment if you click add to cart button from a product, it will not update the cart…
you need to refresh the page before it updates…
]]>The plugin works perfect when navigate the site, but when I try to edit any page that contains the shortcode getting this error:
Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-content/plugins/woo-cart-count-shortcode/woocommerce-cart-count-shortcode.php:35 Stack trace: #0 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-includes/shortcodes.php(345): woocommerce_cart_count_shortcode(Array, ”, ‘cart_button’) #1 [internal function]: do_shortcode_tag(Array) #2 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-includes/shortcodes.php(223): preg_replace_callback(‘/\\[(\\[?)(cart_b…’, ‘do_shortcode_ta…’, ‘<p><span>[cart_…’) #3 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(720): do_shortcode(‘<p><span>[cart_…’) #4 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-includes/shortcodes.php(345): ET_Builder_Element->_shortcode_callback(Array, ‘<p><span>[cart_…’, ‘et_pb_text’) #5 [internal function]: do_shortcode_tag(Array) #6 /homepages/31/d221571097/h in /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-content/plugins/woo-cart-count-shortcode/woocommerce-cart-count-shortcode.php on line 35
Wordpress Ver.: 4.8.2
WooCommerce Cart Count Shortcode: 1.0.4
WooCommerce Ver.:3.1.2
I’m getting this error:
PHP Fatal error: Call to a member function get_cart_contents_count() on null in /home/public/sites/www.benlinders.com/wp-content/plugins/woo-cart-count-shortcode/woocommerce-cart-count-shortcode.php on line 42
]]>I am trying to use the [cart_button show_items=”true”] and the cart is turning the color of the background instead of the the same as the other text. I tried using custom_css=”custom” and color white but it failed. Any ideas on what im doing wrong here? is it a compatibility issue with ubermenu possibly? An help is appreciated.
]]><rant>
6 months ago I left a review moaning about there being no classes around the total which meant that everytime the plugin was updated my theme needed repairing.
I received a reply stating that classes were in the works and would be added at a later date.
Do you have an ETA for the addition of classes? Cos I updated the plugin yesterday and they still hav’nt been added!
If you’re not going to add classes then at least add hooks so I can insert my own through a function. Am getting tired of updating your plugin and then adding my own classes.
A well developed plugin offers it’s users the flexibility to do what they want with it’s output and this plugin singularly fails to do this by the omission of a few simple classes.
</rant>
]]>Hi,
I have added the shortcode to my navigation menu, but the shortcode is adding two links and breaking the layout of the menu. One link is for the shop, and is supposed to show when there is nothing in the cart. The other link points to the cart, and should show when there is something in the cart. Both links are showing at all times right now:
You can see in the code that there are two anchor tags in the li for the menu item, with no selector for “active” or logic to only show the relevant link:
How can I only show the relevant one?
Thanks!
]]>Helo, I have installes your plugin and I placed it in one page but now I can’t edit this particular page with Elementor. It shows the following message:
Fatal error: Uncaught Error: Call to a member function get_cart_contents_count()
I would like to use your plugin but also be able to edit my pages with elementor.
What cause this error, it can be solved?
]]>Hi Guys,
I had to remove the cart plugin, but when i removed it i’m stuck with [cart_button icon=”basket” show_items=”true”] where the icon was. How do I remove this please?
Thank you
]]>Is there a way to get it ajaxed? Tks!
]]>Can I hide the cart if it’s empty?
]]>*Sorry for my english
I use :
<?php echo do_shortcode(“[cart_button icon= ?shopping-cart ? empty_cart_text= ?Shop ? items_in_cart_text= ?Cart ? custom_css= ?custom ?]”); ?>
In my header.php but the only thing it show is the text ”>>Cart”.
There is no icon and no count.
Could you help me? Thank you.
]]>Hi,
I’m sorry if my question has been asked, but I have searched the internet (as well as this forum) for two days for an answer, to no avail. I’m new to shortcodes.
I am using the Storefront theme by WooThemes and the WooCommerce plugin for my shop.
I have installed the WooCommerce Cart Count Shortcode plugin because I wish to insert a cart icon with cart count and total amount into my topbar (for which I have installed a plugin called Storefront top bar by WooAssist). Please enlighten me on where I could get the shortcode from? Do I have to write this (or hire a developer)?
Thank you.
]]>Like the title says the plugin is great, does exactly what it says, my only issue is that the author has chosen not to add a class or any tags around around the item and price text which makes it very hard to style them up if you want something different from what the author intended.
Had amended the plugin to make up for this ‘deficiency’ in my wordpress installation but it broke yesterday when I updated.
Author, any chance of adding classes around the unstyled text for item numbers in brackets and the total text? At least if you do it the plugin won’t break my theme if you release an update.
Cheers.
]]>WooCommerce Cart Count Shortcode gets confused by a currency switcher.
ex. Currency Switcher for WooCommerce.
All latest versions are used.
Any idea? TxRgrds
]]>Hi guys
Loving the plugin, but just wondering if there was a way to remove the word “total” when displaying the price for the cart. For example:
(4) Total: $124.70
I’d prefer to say (4): $124.70
Thanks
Matt
]]>