I have this lovely script that presents the user with the number of items in their cart but not the number of products...
<?php echo sprintf (_n( '%d item', '%d',count( WC()->cart->get_cart())),count( WC()->cart->get_cart())); ?>
One issue that I am having is that when there is 1 item in cart it says "1 item", when there are more than 1 item it gives me simply a number "2".
How can I remove the word Item when there is only one item in the cart.
All help is appreciated.
Rob