View Single Post
Old 11-28-2012, 09:12 AM   PM User | #7
tonygot
New Coder

 
Join Date: Nov 2012
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
tonygot is an unknown quantity at this point
Quote:
Originally Posted by mlseim View Post
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.
This idea worked well! I am using it right now and every page works. Well almost every page, my product page still shows the cart is empty when a user views a product, also the Total $ Cart amount does not load.

Could this be because in the product script is has something to do with - only run if the "product" is 0 or greater? I cannot think of any other reason why I cant get the product page to display items in the cart...
tonygot is offline   Reply With Quote