I am in the process of customizing a template and want to add something to the global navigation bar. I currently have several links, one of which is "My Basket". the code I am using for this is taken from the original template:
You can view it here:
What I want to do, is to show how many items are in the cart, so for example, if the user is logged in and currently has 8 products in the basket, the navigation link should say "My Basket (8)"
Ive searched the forum but have been unable to find any posts about this. I have toolkit installed but havent used it for anything yet (Im still learning my way around)
Thanks for everyone's help!
Roz
Code:
<!--- BASKET LINK ------->
<mvt:if expr="l.settings:page:code EQ 'BASK'">
<li class="navigation-item-on" id="nav-basket">
<mvt:else>
<li class="navigation-item-off" id="nav-basket">
</mvt:if>
<div class="item-left-side"><div class="item-right-side"><mvt:item name="cssui_links" param="basket">My Basket</mvt:item></div></div>
</li>
What I want to do, is to show how many items are in the cart, so for example, if the user is logged in and currently has 8 products in the basket, the navigation link should say "My Basket (8)"
Ive searched the forum but have been unable to find any posts about this. I have toolkit installed but havent used it for anything yet (Im still learning my way around)
Thanks for everyone's help!
Roz
Comment