Guest Posted December 23, 2005 Share Posted December 23, 2005 Hi m8s, :thumbsup: I'm editing my product list page and I'd like a visual reference of the number of products in the shopping cart. e.g Quantity in Basket: 5 items <-- is the code I'd like to spit out. I've looked in all the shopping cart php files I'm probably over looking it. :blink: Any help would Rock.. Azati B) Link to comment Share on other sites More sharing options...
Nacer Posted December 23, 2005 Share Posted December 23, 2005 <?php echo 'Quantity in Basket: ' . $cart->count_contents() . 'items'; ?> the above will do. Regards, Nacer. Link to comment Share on other sites More sharing options...
Guest Posted December 24, 2005 Share Posted December 24, 2005 <?php echo ENTRY_NOW_INCART; ?> <b><FONT color=#999943><?php echo $cart->count_contents(); ?>?<?php echo ENTRY_HCART_ITEMS; ?> adding your entry languages for good translates... Link to comment Share on other sites More sharing options...
Guest Posted December 24, 2005 Share Posted December 24, 2005 Cool, Thank you both for your time and knowledge! :thumbsup: :thumbsup: :thumbsup: Hope this helps someone else in the future.. Peace, Azati B) Link to comment Share on other sites More sharing options...
timmaggs Posted December 24, 2005 Share Posted December 24, 2005 Hey brilliant! This was just what I was looking for. Although... is it possible to create this "0 Items" into a hyperlink to the shopping cart page? Is it as simple as putting a <a href="#"></a> around the code or will this muck up the whole PHP? Tim (Newbie) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.