
Learn to build a complete ecommerce store from scratch with a PHP backend, implementing authentication, cart management (add, update, delete), checkout with Stripe, category system, and a functional admin panel.
Install and configure the xampp server on a virtual machine, selecting a modern php version and enabling apache, mysql, and phpmyadmin components.
Install Visual Studio Code to start coding for your PHP ecommerce store, download for Windows, set up the editor, and configure basic extensions.
Design and code a PHP ecommerce project, from a dynamic index showing database products to a cart with quantity controls, checkout, and login/register pages.
Create a config.php with database credentials and a PDO connection, configure MySQL host, database name, user, and password, set the error mode to exception, and test the connection.
Build a PHP register page with a shared header and an includes folder, validate username, email and password, insert a hashed password into users, then link to login.
Build a login page that validates email and password, fetches the user by email, and uses password_verify to compare the input with the stored hash, showing results.
Start PHP sessions at the top of pages to store user id and username across multiple pages, enabling cart access and permissions management.
Display products in a PHP ecommerce store by looping through the database to show image, name, price, and description, with a link to each product’s single page.
Display data for every product using substr to limit the description, fetch details in single.php by id, and render image, name, and description with add-to-cart functionality.
Explore adding products to a cart with ajax on a PHP page, including a cart table with id, name, image, price, amount, file, and user id, and preventing page refresh.
Learn to prevent duplicate cart entries by backend validation using row count on product and user ids, and disable the add button after an item is added.
Load a user’s cart via session, render dynamic items with image, name, price, and quantity, and provide update and delete actions in a Bootstrap PHP ecommerce cart.
Learn how to compute and display the cart total by multiplying quantity by price for each product using jQuery, updating the total live on the cart page.
Update cart quantities using Ajax to recalculate and display the total price, persisting changes with update-item.php using the product ID, so totals stay consistent after refresh.
Delete products from the cart with ajax and php, send the item id, perform a server-side delete by user id, and update the ui with success feedback.
Display the cart item count by querying the cart for the current user id from the session in PHP, using the config include, and refresh the header with Ajax.
Capture the total price in a session and route it to the checkout page, then process the charge with charge.php and the Stripe payment button.
Store every payment as an order in a database table after checkout, capturing email, username, first name, last name, token, and price, then clear the cart and enable product download.
Learn to deliver paid digital products by letting customers download a zip of their purchases after checkout, using a PHP zip archive, streaming download, and optional email delivery.
Demonstrates clearing a user's cart after successful payment by deleting the cart items from the database, ensuring the cart is emptied post-checkout and orders are stored.
Validate cart price and show the checkout button only when the price is greater than zero. Block direct access to checkout pages with request-based redirects.
enforce login-based validation to restrict cart and checkout pages when logged out and redirect to the index page; implement a robust 404 page for invalid ids.
Learn to display product categories dynamically in a PHP ecommerce store, protect folders, and retrieve category data from a database to render images and descriptions.
Learn to display products by category in a PHP ecommerce store, linking categories to products via category_id, configuring queries, and passing ids for dynamic category pages.
Develop a simple admin panel backend for an ecommerce store, including login, an overview showing counts of products, categories, and admins, and forms to manage admins, categories, and products.
Build an admin login feature in a PHP project's admin dash panel, validate email and password, and verify hashed credentials with password_verify against the admins database.
Build an admin login flow by starting a session, displaying user-specific navigation when logged in, and hiding login links when logged out, while wiring logout functionality and header integration.
Explore the admin dashboard to display admin details by querying the admins table with PHP and PDO, showing the admin name and email, and linking to the create admins page.
Create admins page registers new admin users by posting admin name, email, and password to the admins table. Validate inputs and hash passwords.
Create a PHP admin index page that dynamically shows counts of products, categories, and admins by querying the database and using the config setup.
Transform static HTML into a dynamic PHP categories admin page by wiring a database query, iterating categories with for each, and linking update and delete actions.
Create categories in the admin dashboard by adding a name, a description, and an image. Implement PHP logic to validate inputs, upload the image, and insert the category into categories.
Delete a category from the admin panel using its ID, perform the delete query, and return to the show categories page; note that images aren’t deleted in this video.
Update categories in the admin panel by selecting and deleting category images, then implement the update flow to modify name, description, and image paths.
Update the category page in PHP for beginners, duplicating create logic, validating inputs, and updating by id with image handling, while fixing image paths for admin and user display.
Learn how to display products in a PHP ecommerce admin page by selecting all from the products table and echoing id, name, price, category, and status.
Delete products and their images from the admin panel by using the product ID, execute delete queries on the database, and confirm removal in the product list.
Create products in the admin panel by entering name, price, description, category, image, and a downloadable file; validate inputs, handle uploads, and toggle product status to control visibility.
Learn how to control product statuses and dynamically display categories in a PHP ecommerce store, including verification links and admin status updates.
Validate and fix bugs in the php ecommerce app by updating image paths, enabling dynamic image loading, and enforcing session checks for backend protection.
Validate and fix the ecommerce project by correcting image paths and dynamic image URLs, aligning cart and checkout redirects, and ensuring paid orders deliver files via the admin panel paths.
Create a user-specific orders page in PHP, fetch orders by session user id, display in a table with email, name, and status, and enforce login and user-id checks.
Learn to customize the orders page in a PHP ecommerce store by adjusting layout margins and conditionally displaying an orders table or a success alert when no orders exist.
Learn how to send purchased files by email from a PHP ecommerce store using PHPMailer with Gmail SMTP, including configuring authentication and testing the email delivery flow.
Learn how to send purchased products by email, attach files from the cart, and clear the cart after payment in a PHP ecommerce setup.
Create a payment success page in the road folder, link it from checkout, and set a 5-second redirect to the index page while confirming email delivery of pdfs.
Ready for a fantastic journey with me?? In this course and in under 9 hours, you are going to learn how to build an amazing e-commerce web app. It's a pretty decent size project. We are going to get going first by setting up the database and I already prepared the design with bootstrap for us. After this, we are going to display the products neatly and dynamically and we going to build the most challenging part of this project which is the cart. In the cart, there are going to be a lot of details like adding products updating and deleting from the cart, and showing the number of products in it and that's all going to be done without refreshing the page with Ajax-JQuery of course. And after all of this, we are simply going to process the payment with stripe and we are going to checkout and place orders finally. At the end of this whole process, we are going to give users the products that they paid for. This is the main function of this web app. Surely there is going to be an authentication system, a category system, and more on the users' side.
There is also a cool and very practical admin panel, where we are going to handle general functions about our user's side. So, in the admin panel, we are going to create admins and allow them to log in, create and manage categories, and show them. and we are going to fully handle products. There is a lot more to talk about. There are a lot of details, password hashing, and validations to go ahead and talk about. So, if this looks like something you are interested in, get the course now. See you inside.