Adding Item count from a cart to html page dynamically

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vvbuen
Forum Newbie
Posts: 2
Joined: Tue Jan 27, 2009 3:44 pm

Adding Item count from a cart to html page dynamically

Post by vvbuen »

Hello to all,

I have this site http://rodnikpublishing.com and on each page I have Cart banner at the to of the page with "0 items" at bottom. I just need help how to make a dynamic page that the item will count my customer's have on their cart.

Let say right now if you try to surf my site if you click "Add to Cart", it will redirect you to the osCommerce "What's on my cart" page to view added to cart item(s). So once I go back to any of my page outside osCommerce the "0 items" should say "1 items" or "2 items" if I have added items to my account.

How can I do this? I need the php code right? Is this code already in my osCommerce? How will I get it and how will I encapsulate to my html pages.

Any advise will appreciate very much. Thanks in advance.

Regards,

Vick
jothirajan
Forum Commoner
Posts: 69
Joined: Tue Jan 27, 2009 12:06 am

Re: Adding Item count from a cart to html page dynamically

Post by jothirajan »

Easy to make a move...

Just try this...

if i am adding a product in to a cart it will add to the database right?..

then from that table you can select the data's you want , no need to edit this one....

Just select from the database >>> write a select query in the HTML >>> Display what you want to have...

Thanks....get me if you want more...

JOE.....
Post Reply