Introduction

In this project, I will guide you how to build a shopping cart by using PHP and MySQL. The simulation as below:

http://quinguyenprojects.16mb.com/shoppingcart

 Requirements

 – In order to understand this project, it requires you to have a basic knowledge about HTML, CSS, PHP and SQL language.

 – XAMPP: https://www.apachefriends.org/download.html

XAMPP control panel

Overview

– The snapshot lists out  items in the shop:

shop page

 – Order Now: to purchase the product:

cart page

+ Continue Shopping: return the items list

+ Add/Drop-textbox: to add more or drop down the quantity of the item.

+ Save icon: update the # and $ of the selected items.

+ Checkout: to commit purchasing and the bill sent to MySQL server.

– MySQL server after receiving a purchase:

 + Order:

order sql table

  + Orderdetails:

order detail sql table

+ Product: This is a database containing items displayed in the shop.

sql database contains products

Source code: https://github.com/anhqui/SHOPPING_CART

Conclusion

In this project, I helped you how to build a shopping cart using PHP and MySQL. I also included video to simulate how the project works as well as the source code.

GET A QUOTE
close slider

    BusinessE-commerce/ Online storeNon-profitPersonal websiteI'm not sureOther

    Create a new websiteOverhaul of my websiteMinor changes to my websiteOther

    Help customer find my business onlineSell my product or service and take payments onlineSell my product or service, taking payments offlineProvide information to the publicOther

    ASAPIn the next few weeksIn the next monthIn the next 2-3 monthsI'm not sureOther

    I'm not sureLess than 1 monthUp to 3 monthsUp to 6 monthsOther

    Pin It on Pinterest