how to add number of items in basket to menu item
-
I am using the plugin : ultra simple paypal shopping cart which provides the code:
<?php echo wpusc_cart_item_qty(); ?>
For adding the number of items in the shopping cart. I am trying to use this so that the number of items is displayed AFTER the word ‘cart’ in my navigation bar in () brackets.
‘Cart’ has a menu_item_id of 104 but I cannot seem to write a php if statement to achieve what I want… or maybe I’m putting it in the wrong place? I’ve been working with the header.php file.
If anyone can help I’d really appreciate it. I am not really familiar with PHP coding. I have a maintenance mode on at the moment but can drop it if anyone needs to see the site.
WordPress 3.5.1
Template: Twenty Ten child theme
Plug-in: Ultra simple paypal shopping cart
- The topic ‘how to add number of items in basket to menu item’ is closed to new replies.