
Learn how to add products to a shopping cart with VanillaCartJS, render items using template strings and insertAdjacentHTML, manage a cart array, and prevent duplicates.
Learn to implement quantity controls in a vanilla ES6 shopping cart: set initial quantity to 1 and wire increase, decrease, and remove buttons with DOM event listeners.
Refactor the vanilla cart code by extracting repeated blocks into new functions, passing product and cart button elements to improve readability and enable future PayPal checkout and clear cart features.
If you ever wanted to build a simple but powerful shopping cart with JavaScript this course is definitely for you.
This course it's not about creating ultra king size e-commerce solution. It's about creating real world project with business ready attitude.
All products in this project come directly from HTML code. There's no database or any back-end code. If you want to add new product just copy-paste piece of HTML code.
You will create a project with following features:
Writing code meant to be exciting and I hope it will be like that in this course. As a matter of fact the shopping cart project is just a cover. The real deal is with this course you should learn programming in JavaScript using ES6 features.
It's worth mentioning that every lecture has it's own source code files. So if you will somehow stuck you can always compare your code with code from particular lecture.