E-commerce Cart Function Implementation

Job ID: 39381167

Budget: €30 – €250 EUR

Project Description: PHP/MySQL Online Shop – Shopping Cart Implementation

Hello,
I'm developing an online shop using PHP and MySQL for the back end. The project already includes:
-A working login and user profile system
-An admin profile that can view/edit all user accounts
-A complete front-end interface
-A MySQL database with the following tables: logins, products, and orders

What’s Already Working:
-Each product has a unique ID, name, price, and stock.
-"Add to Cart" buttons are working using POST, but currently, each click creates a new entry in the orders table.

The Problem:
I need to implement a proper shopping cart so that users can:
1- Select multiple products and see them in a cart (intermediate page)
2- Confirm the order, which will then:
-Create a single entry in the orders table
-Include the selected items, quantities, and total price

What I Need Help With:
Back-end PHP logic to:
-Store selected items in a shopping cart (via session or temporary table)
-Display them in a table (on add_to_cart.php) with item details (from products)
-Allow the user to confirm the order, which creates one order_id in the orders table
-Display a second table below showing all confirmed orders per user

Final Goal:
On add_to_cart.php, I need:
-A table showing selected items (cart) + confirm button
-A table showing past confirmed orders for the logged-in user

Would it be possible to schedule a short call so I can show you the code and discuss the scope and budget?
Related categories: PHP Website Design eCommerce MySQL HTML