View Single Post
Old 11-26-2012, 12:14 AM   PM User | #6
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
How about this idea?

Create a single small PHP script that echoes the cart count.
That is all the script does.

Then, when you get that working, include it in the HTML of
anywhere you wish to display it.

Example.

The cart contains <?php include("count.php");?> items.

That way, you only code it one time and use it everywhere.
mlseim is offline   Reply With Quote
Users who have thanked mlseim for this post:
tonygot (11-26-2012)