Hi all,
I need some help creating a cart system.

I’m currently using roman cart & MySQL which means I have to maintain two separate databases.

The MySQL database holds the Product information and a Link to RomanCart.

When the user clicks the “Add to Cart” info is added to RomanCart and the page is refreshed displaying the updated cart info.

My PHP Scripts have been generated by Maestro PHP Generator for MySQL:
http://www.soundtools.co.uk/Testing/Products/Acoustics/Index.html

I want to stop using RomanCart and do all the Cart transactions via PHP & MySQL

Here is how I think it should go:

Stage 1: The user clicks the “Add to basket” button.
A Script will add the ProductID & Product Name, Price and Quantity to an array and display the total number of items and total price from the array.

Stage 2:
When the user clicks the “View Cart” Button
Scripts will display the Product Name, Price and Quantity from the array, display the total product.

As a novice, would the above be achievable? Or is there an open source cart system I can use?.

Thanks in advance

I think you can do it. Check this out. Check the working demo at the end of the page.

I have just added the code to my site.

the only problem, when i add to cart the cart page is displayed.

<a href="cart.php?action=add&id='.$row['Key'].'">Add to cart</a>

how can i stop the cart from being displayed after the item has Been added?

thsnks in advance

Member Avatar for chris055

anyone know how to do this?

I have just added the code to my site.

the only problem, when i add to cart the cart page is displayed.

<a href="cart.php?action=add&id='.$row['Key'].'">Add to cart</a>

how can i stop the cart from being displayed after the item has Been added?

thsnks in advance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.