We’ll make a simple estore application that will have the basic features of an eCommerce web site: register, login, logout, shopping, shopping cart (basket), checkout, submit order. The pages that will accomplish these tasks will be: register.php, login.php, logout.php, shop.php, basket.php, checkout.php, submit_order.php. For administration we will have 2 simple admin features such as: adding products and view orders having the pages add_products.php, view_orders.php and view_detailed_order.php. We will need though, some additional pages. These are required by most of the above pages; as well some standard pages that will improve the simplicity and understanding of basic functionality. These additional pages are config.inc.php, function_cart.php, manage.php, menu.php, minibasket.php, session.php, as well index.php and thankyou.php.
All the above pages will be presented below. After having them fully understood we can make files accordingly with their suggested names. Their content will be filled with all the scripts selected and copied between php tags: from <?php to ?> inclusively. All the pages have comments. So, that you will know and understand the purpose of scripts. We will present all pages below. Wish you to enjoy your first estore application that is simply and completely enough at the same time.
All next pages must be saved in the same folder "estore", already created in above LESSON 2, among the file estore_db. sql, at the address: C:\apachefriends\xampp\htdocs\estore. After that, you can test it thoroughly, through your browser at the next address http://localhost/estore/.
We will use the database estore_db, already created in Lesson 2. As you will need to test some of your scripts, it may happen that, for a single mistake your script wont work. If you cannot find the bug, don’t forget that you can download at anytime a full version of your estore, at the next address http://www.magazinvirtual.ro/tutorials/estore.zip .