Hello friends, welcome back to my blog. Today this blog post I will tell you, Build Complete Ecommerce Website with Angular 14.
Key Features:
- Angular 14
- Ecommerce template with all pages
- Carousel Image Slider
- Cross-Browser Compatible
- Contact Form UI
- Burger Menu
- Fully responsive will support all the devices
Friends now I proceed onwards and here is the working code snippet and please use carefully this to avoid the mistakes:
1. Firstly friends we need fresh angular 14 setup and for this we need to run below commands but if you already have angular 14 setup then you can avoid below commands. Secondly we should also have latest node version installed on our system.
Guys with below commands we will get bootstrap, popperjs, jquery(support to bootstrap only), slick carousel slider and generate ecommerce site components:
npm install -g @angular/cli ng new angularshop //Create new Angular Project cd angularehop // Go inside the Angular Project Folder npm i bootstrap@4.3.1 npm i popper.js npm i jquery npm install ngx-slick-carousel --save npm install slick-carousel --save ng g c header ng g c footer ng g c home ng g c productsingle ng g c cart ng g c checkout ng g c shop ng g c dashboard ng g c orders ng g c login ng g c signup ng g c forgot-password ng g c profile-details ng g c address ng g c edit-address
2. Now friends, please download zip(in this zip file there are fonts, css and images for angular ecommerce template) file from below path and extract zip and please put all the zip file folders in “src/assets” folder(which we will get from zip file):
https://therichpost.com/ngecomassets.zip
How To Build An E-Commerce Site With Angular 16+?
3. Now friends we just need to add below code into angularshop/src/app/app.component.html file to get final out on the web browser:
<app-header></app-header> <router-outlet></router-outlet> <app-footer></app-footer>
4. Now guys please add the below code inside angularshop/src/app/header/header.component.html to make header:
<nav class="navbar navbar-expand-lg navbar-light bg-white w-100 navigation" id="navbar"> <div class="container"> <a class="navbar-brand font-weight-bold" routerLink="/">E-Shop</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse " id="main-navbar"> <ul class="navbar-nav mx-auto"> <li class="nav-item active"> <a class="nav-link" routerLink="/">Home </a> </li> <li class="nav-item"> <a class="nav-link" href="#">About Us</a> </li> <!-- Pages --> <li class="nav-item dropdown dropdown-slide"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown4" role="button" data-delay="350" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Pages. </a> <ul class="dropdown-menu" aria-labelledby="navbarDropdown4"> <li><a href="#">About Us</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Blog Single</a></li> <li><a href="#">Contact</a></li> <li><a href="#">404 Page</a></li> <li><a href="#">FAQ</a></li> </ul> </li><!-- /Pages --> <!-- / Blog --> <li class="nav-item dropdown dropdown-slide"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown3" role="button" data-delay="350" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Shop. </a> <ul class="dropdown-menu" aria-labelledby="navbarDropdown3"> <li><a routerLink="/shop">Shop</a></li> <li><a routerLink="/product-single">Product Details</a></li> <li><a routerLink="/checkout">Checkout</a></li> <li><a routerLink="/cart">Cart</a></li> </ul> </li><!-- / Blog --> <!-- Account --> <li class="nav-item dropdown dropdown-slide"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown5" role="button" data-delay="350" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Account. </a> <ul class="dropdown-menu" aria-labelledby="navbarDropdown5"> <li><a routerLink="/dashboard">Dahsboard</a></li> <li><a routerLink="/order">Orders</a></li> <li><a routerLink="/address">Address</a></li> <li><a routerLink="/profile-details">Profile Details</a></li> <li><a routerLink="/login">Login Page</a></li> <li><a routerLink="/signup">SignUp Page</a></li> <li><a routerLink="/forgot-password">Forgot Password</a></li> </ul> </li><!-- / Account --> </ul> </div> <!-- Navbar-collapse --> <ul class="top-menu list-inline mb-0 d-none d-lg-block" id="top-menu"> <li class="list-inline-item"> <a href="#" class="search_toggle" id="search-icon"><i class="tf-ion-android-search"></i></a> </li> <li class="dropdown cart-nav dropdown-slide list-inline-item"> <a href="#" class="dropdown-toggle cart-icon" data-toggle="dropdown" data-hover="dropdown"> <i class="tf-ion-android-cart"></i> </a> <div class="dropdown-menu cart-dropdown"> <!-- Cart Item --> <div class="media"> <a routerLink="/product-single"> <img class="media-object img- mr-3" src="assets/images/cart-1.jpg" alt="image" /> </a> <div class="media-body"> <h6>Ladies Bag</h6> <div class="cart-price"> <span>1 x</span> <span>1250.00</span> </div> </div> <a href="#" class="remove"><i class="tf-ion-close"></i></a> </div><!-- / Cart Item --> <!-- Cart Item --> <div class="media"> <a routerLink="/product-single"> <img class="media-object img-fluid mr-3" src="assets/images/cart-2.jpg" alt="image" /> </a> <div class="media-body"> <h6>Skinny Jeans</h6> <div class="cart-price"> <span>1 x</span> <span>1250.00</span> </div> </div> <a href="#" class="remove"><i class="tf-ion-close"></i></a> </div><!-- / Cart Item --> <div class="cart-summary"> <span class="h6">Total</span> <span class="total-price h6">$1799.00</span> <div class="text-center cart-buttons mt-3"> <a href="#" class="btn btn-small btn-transparent btn-block">View Cart</a> <a href="#" class="btn btn-small btn-main btn-block">Checkout</a> </div> </div> </div> </li> <li class="list-inline-item"><a href="#"><i class="tf-ion-ios-person mr-3"></i></a></li> </ul> </div> </nav>
5. Now guys please add the below code inside angularshop/angular.json file:
"styles": [ "src/styles.css", "node_modules/bootstrap/dist/css/bootstrap.min.css", "src/assets/css/style.css", "src/assets/fonts/style.css", "node_modules/slick-carousel/slick/slick.scss", "node_modules/slick-carousel/slick/slick-theme.scss" ], "scripts": [ "node_modules/jquery/dist/jquery.slim.min.js", "node_modules/popper.js/dist/umd/popper.min.js", "node_modules/bootstrap/dist/js/bootstrap.min.js", "node_modules/slick-carousel/slick/slick.min.js" ]
6. Now guys please add the below code inside angularshop/src/app/footer/footer.component.html to make footer:
<footer class="footer"> <div class="container"> <div class="row"> <div class="col-md-6 col-lg-4 col-sm-6 mb-5 mb-lg-0 text-center text-sm-left mr-auto"> <div class="footer-widget"> <h4 class="mb-4">E-Shop</h4> <p class="lead">Iste dolores iure quis excepturi, deserunt praesentium.</p> <div class=""> <p class="mb-0"><strong>Location : </strong>North Punjab ,INDIA</p> <p><strong>Support Email : </strong> support@email.com</p> </div> </div> </div> <div class="col-md-6 col-lg-2 col-sm-6 mb-5 mb-lg-0 text-center text-sm-left"> <div class="footer-widget"> <h4 class="mb-4">Category</h4> <ul class="pl-0 list-unstyled mb-0"> <li><a href="#">Men's Fashion</a></li> <li><a href="#">Women's Fashion</a></li> <li><a href="#">Kids Fashion</a></li> <li><a href="#">Accessories</a></li> <li><a href="#">Shoe Collection</a></li> </ul> </div> </div> <div class="col-md-6 col-lg-2 col-sm-6 mb-5 mb-lg-0 text-center text-sm-left"> <div class="footer-widget"> <h4 class="mb-4">Useful Link</h4> <ul class="pl-0 list-unstyled mb-0"> <li><a href="#">News & Tips</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Support</a></li> <li><a href="#">Our Shop</a></li> <li><a href="#">Contact Us</a></li> </ul> </div> </div> <div class="col-md-6 col-lg-3 col-sm-6 text-center text-sm-left"> <div class="footer-widget"> <h4 class="mb-4">Opening Hours</h4> <ul class="pl-0 list-unstyled mb-5"> <li class="d-lg-flex justify-content-between">Monday-Friday <span>8.00-20.00</span></li> <li class="d-lg-flex justify-content-between">Saturday <span>10.00-20.00</span></li> <li class="d-lg-flex justify-content-between">Sunday <span>12-20.00</span></li> </ul> <h5>Call Now : +(000) 000-000</h5> </div> </div> </div> </div> </footer> <div class="footer-btm py-4 "> <div class="container"> <div class="row "> <div class="col-lg-6"> <p class="copyright mb-0 ">@ Copyright Reserved to therichpost & made by <a href="https://therichpost.com/">therichpost</a></p> </div> <div class="col-lg-6"> <ul class="list-inline mb-0 footer-btm-links text-lg-right mt-2 mt-lg-0"> <li class="list-inline-item"><a href="#">Privacy Policy</a></li> <li class="list-inline-item"><a href="#">Terms & Conditions</a></li> <li class="list-inline-item"><a href="#">Cookie Policy</a></li> <li class="list-inline-item"><a href="#">Terms of Sale</a></li> </ul> </div> </div> </div> </div>
7. Now guys please add the below code inside angularshop/src/app/home/home.component.html to make home page ecommerce site:
<ngx-slick-carousel class="main-slider slider" [config]="slideConfig" > <div ngxSlickItem class="slider-item " style="background-image:url('assets/images/slideshow1-2.jpg')"> <div class="container"> <div class="row"> <div class="col-lg-6 col-12 offset-lg-6 offset-md-6"> <div class="slider-caption"> <span class="lead">Winter Collection Sale </span> <h1 class="mt-2 mb-5"><span class="text-color">70% off </span>to everything</h1> <a href="#" class="btn btn-main">Shop Now</a> </div> </div> </div> </div> </div> <div ngxSlickItem class="slider-item" style="background-image:url('assets/images/slideshow1-3.jpg')"> <div class="container"> <div class="row"> <div class="col-lg-6 col-12 offset-lg-6 offset-md-6"> <div class="slider-caption"> <span class="lead">up to 70% off</span> <h1 class="mt-2 mb-5"><span class="text-color">Classic</span> Style</h1> <a href="#" class="btn btn-main">Shop Now</a> </div> </div> </div> </div> </div> <div ngxSlickItem class="slider-item" style="background-image:url('assets/images/slideshow1-1.jpg'); background-position:50%;background-repeat:no-repeat;"> <div class="container"> <div class="row"> <div class="col-lg-6 col-12 offset-lg-6 offset-md-6"> <div class="slider-caption"> <span class="lead">Trendy dress</span> <h1 class="mt-2 mb-5"><span class="text-color">Winter </span>Collection</h1> <a href="#" class="btn btn-main">Shop Now</a> </div> </div> </div> </div> </div> </ngx-slick-carousel> <section class="category section pt-3 pb-0"> <div class="container"> <div class="row"> <div class="col-lg-4 col-sm-12 col-md-6"> <div class="cat-item mb-4 mb-lg-0"> <img src="assets/images/cat-1.jpg" alt="" class="img-fluid"> <div class="item-info"> <p class="mb-0">Stylish Leather watch</p> <h4 class="mb-4">up to <strong>50% </strong>off</h4> <a href="#" class="read-more">Shop now</a> </div> </div> </div> <div class="col-lg-4 col-sm-12 col-md-6"> <div class="cat-item mb-4 mb-lg-0"> <img src="assets/images/cat-2.jpg" alt="" class="img-fluid"> <div class="item-info"> <p class="mb-0">Ladies hand bag</p> <h4 class="mb-4">up to <strong>40% </strong>off</h4> <a href="#" class="read-more">Shop now</a> </div> </div> </div> <div class="col-lg-4 col-sm-12 col-md-6"> <div class="cat-item"> <img src="assets/images/cat-3.jpg" alt="" class="img-fluid"> <div class="item-info"> <p class="mb-0">Trendy shoe</p> <h4 class="mb-4">up to <strong>50% </strong>off</h4> <a href="#" class="read-more">Shop now</a> </div> </div> </div> </div> </div> </section> <section class="section products-main"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-8"> <div class="title text-center"> <h2>New arrivals</h2> <p>The best Online sales to shop these weekend</p> </div> </div> </div> <div class="row"> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/322.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/444.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Floral Kirby</a></h2> <span class="price"> $329.10 </span> </div> </div> </div> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5"> <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/111.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/444.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Open knit switer</a></h2> <span class="price"> $29.10 </span> </div> </div> </div> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/222.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/322.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Official trendy</a></h2> <span class="price"> $350.00 – $355.00 </span> </div> </div> </div> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5"> <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/322.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/111.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Frock short</a></h2> <span class="price"> $249 </span> </div> </div> </div> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5"> <div class="product"> <div class="product-wrap"> <a href="#"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/444.jpg" alt="product-img" /></a> <a href="#"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/222.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Sleeve dress</a></h2> <span class="price"> $59.10 </span> </div> </div> </div> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5" > <div class="product"> <div class="product-wrap"> <a href="#"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/322.jpg" alt="product-img" /></a> <a href="#"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/222.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Stylish dress</a></h2> <span class="price"> $99.00 </span> </div> </div> </div> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5 " > <div class="product"> <div class="product-wrap"> <a href="#"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/111.jpg" alt="product-img" /></a> <a href="#"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/444.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Body suite</a></h2> <span class="price"> $329.10 </span> </div> </div> </div> <div class="col-lg-3 col-12 col-md-6 col-sm-6 mb-5 " > <div class="product"> <div class="product-wrap"> <a href="#"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/222.jpg" alt="product-img" /></a> <a href="#"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/322.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a href="#">Sleeve linen shirt</a></h2> <span class="price"> <del>60<pre wp-pre-tag-3=""></pre></del> $50.10 </span> </div> </div> </div> </div> </div> </section> <!-- /portfolio --> <section class="ads section"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-6 offset-lg-6"> <div class="ads-content"> <span class="h5 deal">Deal of the day 50% Off</span> <h2 class="mt-3 text-white">Trendy Suit</h2> <p class="text-md mt-3 text-white">Hurry up! Limited time offer.Grab ot now!</p> <!-- syo-timer --> <div id="simple-timer" class="syotimer mb-5"></div> <a href="#" class="btn btn-main"><i class="ti-bag mr-2"></i>Shop Now </a> </div> </div> </div> </div> </section> <section class="section products-list"> <div class="container"> <div class="row"> <div class="col-lg-4 col-sm-12 col-md-12"> <img src="assets/images/adsv.jpg" alt="Product big thumb" class="img-fluid w-100"> </div> <div class="col-lg-4 col-sm-6 col-md-6"> <div class="widget-featured-entries mt-5 mt-lg-0"> <h4 class="mb-4 pb-3">Best selllers</h4> <div class="media mb-3"> <a class="featured-entry-thumb" routerLink="/product-single"> <img src="assets/images/p-1.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Keds - Kickstart Pom Pom</a></h6> <p class="featured-entry-meta">$42.99</p> </div> </div> <div class="media mb-3"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-2.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Nike - Brasilia Medium Backpack</a></h6> <p class="featured-entry-meta">$27.99</p> </div> </div> <div class="media mb-3"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-3.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Guess - GU7295</a></h6> <p>$38.00</p> </div> </div> <div class="media mb-3"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-4.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Adidas Originals Cap</a></h6> <p class="featured-entry-meta">$35.00</p> </div> </div> <div class="media"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-5.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Big Star Flip Tops</a></h6> <p class="featured-entry-meta">$10.60</p> </div> </div> </div> </div> <div class="col-lg-4 col-sm-6 col-md-6"> <div class="widget-featured-entries mt-5 mt-lg-0"> <h4 class="mb-4 pb-3">New Arrivals</h4> <div class="media mb-3"> <a class="featured-entry-thumb" routerLink="/product-single"> <img src="assets/images/p-7.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Keds - Kickstart Pom Pom</a></h6> <p class="featured-entry-meta">$42.99</p> </div> </div> <div class="media mb-3"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-8.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Nike - Brasilia Medium Backpack</a></h6> <p class="featured-entry-meta">$27.99</p> </div> </div> <div class="media mb-3"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-1.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Guess - GU7295</a></h6> <p>$38.00</p> </div> </div> <div class="media mb-3"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-2.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Adidas Originals Cap</a></h6> <p class="featured-entry-meta">$35.00</p> </div> </div> <div class="media"> <a class="featured-entry-thumb" href="#"> <img src="assets/images/p-4.jpg" alt="Product thumb" width="64" class="img-fluid mr-3"> </a> <div class="media-body"> <h6 class="featured-entry-title mb-0"><a href="#">Big Star Flip Tops</a></h6> <p class="featured-entry-meta">$10.60</p> </div> </div> </div> </div> </div> </div> </section> <section class="features border-top"> <div class="container"> <div class="row"> <div class="col-lg-3 col-sm-6 col-md-6"> <div class="feature-block"> <i class="tf-ion-android-bicycle"></i> <div class="content"> <h5>Free Shipping</h5> <p>On all order over $39.00</p> </div> </div> </div> <div class="col-lg-3 col-sm-6 col-md-6"> <div class="feature-block"> <i class="tf-wallet"></i> <div class="content"> <h5>30 Days Return</h5> <p>Money back Guarantee</p> </div> </div> </div> <div class="col-lg-3 col-sm-6 col-md-6"> <div class="feature-block"> <i class="tf-key"></i> <div class="content"> <h5>Secure Checkout</h5> <p>100% Protected by paypal</p> </div> </div> </div> <div class="col-lg-3 col-sm-6 col-md-6"> <div class="feature-block"> <i class="tf-clock"></i> <div class="content"> <h5>24/7 Support</h5> <p>All time customer support </p> </div> </div> </div> </div> </div> </section>
8. Now guys please add the below code inside angularshop/src/app/home/home.component.ts home page slider settings:
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) export class HomeComponent implements OnInit { constructor() { } //Slider settings slideConfig = {"slidesToShow": 1, "slidesToScroll": 1} ; ngOnInit(): void { } }
9. Now guys please add the below code inside angularshop/src/app/app.module.ts file to import slick slider module:
... import { SlickCarouselModule } from 'ngx-slick-carousel'; @NgModule({ ... imports: [ ... SlickCarouselModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { }
10. Now guys please add the below code inside angularshop/src/index.html file to add ID attribute to body element:
... <body id="body"> ...
11. Now guys please add the below code inside angularshop/src/app/address/address.component.html to make address page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Address</h1> <p>Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Address</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="user-dashboard page-wrapper"> <div class="container"> <div class="row"> <div class="col-12 col-md-5 col-sm-12 col-lg-3"> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/address">Dashboard</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/address">Orders</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/address">Downloads</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link active" routerLink="/address">Address</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/address">Account</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/address">Log Out</a> </div> </div> <div class="col-12 col-md-7 col-sm-12 col-lg-9"> <p>The following addresses will be used on the checkout page by default.</p> <div class="account-info"> <div class="card p-4"> <h4 class="card-title">Billing info <a routerLink="/edit-address" class="float-right text-sm">Edit</a></h4> <address>Jassa Smith<br> 1491 Ludhiana Street<br> Punjab<br> India<br> </address> </div> <div class="card p-4 mt-4"> <h4 class="card-title">Shipping info <a routerLink="/edit-address" class="float-right text-sm">Edit</a></h4> You have not set up this type of address yet. </div> </div> </div> </div> </div> </section>
12. Now guys please add the below code inside angularshop/src/app/cart/cart.component.html to make cart page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Cart</h1> Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Cart</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="cart shopping page-wrapper"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-12"> <div class="product-list"> <form class="cart-form"> <table class="table shop_table shop_table_responsive cart" cellspacing="0"> <thead> <tr> <th class="product-thumbnail"> </th> <th class="product-name">Product</th> <th class="product-price">Price</th> <th class="product-quantity">Quantity</th> <th class="product-subtotal">Total</th> <th class="product-remove"> </th> </tr> </thead> <tbody> <tr class="cart_item"> <td class="product-thumbnail" data-title="Thumbnail"> <a routerLink="/product-single"><img src="assets/images/cart-1.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt=""></a> </td> <td class="product-name" data-title="Product"> <a href="#">Trendy Cloth</a> </td> <td class="product-price" data-title="Price"> <span class="amount"><span class="currencySymbol"><pre wp-pre-tag-3=""></pre> </span>90.00</span> </td> <td class="product-quantity" data-title="Quantity"> <div class="quantity"> <label class="sr-only" >Quantity</label> <input type="number" id="qty" class="input-text qty text" step="1" min="0" max="9" value="1" title="Qty" size="4" > </div> </td> <td class="product-subtotal" data-title="Total"> <span class="amount"> <span class="currencySymbol"> <pre wp-pre-tag-3=""></pre> </span>90.00</span> </td> <td class="product-remove" data-title="Remove"> <a href="#" class="remove" aria-label="Remove this item" data-product_id="30" data-product_sku="">×</a> </td> </tr> <tr class="cart_item"> <td class="product-thumbnail" data-title="Thumbnail"> <a routerLink="/product-single"><img src="assets/images/cart-2.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt=""></a> </td> <td class="product-name" data-title="Product"> <a href="#">Sunglasses</a> </td> <td class="product-price" data-title="Price"> <span class="amount"><span class="currencySymbol"> <pre wp-pre-tag-3=""></pre> </span>90.00</span> </td> <td class="product-quantity" data-title="Quantity"> <div class="quantity"> <label class="sr-only" >Quantity</label> <input type="number" id="quantity_5cc58182489a8" class="input-text qty text" step="1" min="0" max="9" name="#" value="1" title="Qty" size="4" > </div> </td> <td class="product-subtotal" data-title="Total"> <span class="amount"> <span class="currencySymbol"> <pre wp-pre-tag-3=""></pre> </span>90.00</span> </td> <td class="product-remove" data-title="Remove"> <a href="#" class="remove" aria-label="Remove this item" data-product_id="30" data-product_sku="">×</a> </td> </tr> <tr> <td colspan="6" class="actions"> <div class="coupon"> <input type="text" name="coupon_code" class="input-text form-control" id="coupon_code" value="" placeholder="Coupon code"> <button type="button" class="btn btn-black btn-small" name="apply_coupon" value="Apply coupon">Apply coupon</button> <span class="float-right mt-3 mt-lg-0"> <button type="button" class="btn btn-dark btn-small" name="update_cart" value="Update cart" disabled="">Update cart</button> </span> </div> <input type="hidden" id="woocommerce-cart-nonce" name="woocommerce-cart-nonce" value="27da9ce3e8"> <input type="hidden" name="_wp_http_referer" value="/cart/"> </td> </tr> </tbody> </table> </form> </div> </div> </div> <div class="row justify-content-end"> <div class="col-lg-4"> <div class="cart-info card p-4 mt-4"> <h4 class="mb-4">Cart totals</h4> <ul class="list-unstyled mb-4"> <li class="d-flex justify-content-between pb-2 mb-3"> <h5>Subtotal</h5> <span>$90.00</span> </li> <li class="d-flex justify-content-between pb-2 mb-3"> <h5>Shipping</h5> <span>Free</span> </li> <li class="d-flex justify-content-between pb-2"> <h5>Total</h5> <span>$90.00</span> </li> </ul> <a href="#" class="btn btn-main btn-small">Proceed to checkout</a> </div> </div> </div> </div> </section>
13. Now guys please add the below code inside angularshop/src/app/checkout/checkout.component.html to make checkout page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Checkout</h1> <p>Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Checkout</li> </ol> </nav> </div> </div> </div> </div> </section> <div class="page-wrapper"> <div class="checkout shopping"> <div class="container"> <div class="row"> <div class="col-lg-8 pr-5"> <div class="coupon-notice " data-toggle="modal" data-target="#coupon-modal"> <div class="bg-light p-3"> Have a coupon? <a routerLink="/checkout" class="showcoupon" >Click here to enter your code</a> </div> </div> <div class="billing-details mt-5"> <h4 class="mb-4">Billing Details</h4> <form class="checkout-form"> <div class="row"> <div class="col-lg-6"> <div class="form-group mb-4"> <label for="first_name">First Name</label> <input type="text" class="form-control" id="first_name" placeholder=""> </div> </div> <div class="col-lg-6"> <div class="form-group mb-4"> <label for="last_name">Last Name</label> <input type="text" class="form-control" id="last_name" placeholder=""> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="company_name">Company Name(Optional)</label> <input type="text" class="form-control" id="company_name" placeholder=""> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="company_name">Country</label> <select class="form-control"> <option value="">Select an Option</option> <option value="January">January</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="first_name">Street Address</label> <input type="text" class="form-control" id="street" placeholder=""> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="first_name">Apartment, suite, unit etc. (optional) (optional)</label> <input type="text" class="form-control" id="apartment" placeholder="Apartment"> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="first_name">Town / City </label> <input type="text" class="form-control" id="city" placeholder="Apartment"> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="company_name">District </label> <select class="form-control"> <option value="">Select an Option</option> <option value="January">January</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="first_name">Postcode / ZIP (optional)</label> <input type="text" class="form-control" id="postcode" placeholder=""> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="first_name">Phone </label> <input type="text" class="form-control" id="phone" placeholder=""> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="first_name">Email address </label> <input type="text" class="form-control" id="email" placeholder=""> </div> </div> <div class="col-lg-12"> <div class="form-check mb-4"> <input type="checkbox" class="form-check-input" id="exampleCheck1"> <label class="form-check-label" for="exampleCheck1">Create an account?</label> </div> </div> <div class="col-lg-12"> <div class="form-check mb-4"> <input type="checkbox" class="form-check-input" id="exampleCheck2"> <label class="form-check-label" for="exampleCheck2">Ship to a different address?</label> </div> </div> <div class="col-lg-12"> <div class="form-group mb-4"> <label for="first_name">Order notes (optional)</label> <textarea class="form-control" id="msg" cols="30" rows="5" placeholder="Notes about order e:g: want to say something"></textarea> </div> </div> </div> </form> </div> </div> <!-- Order sidebar Summery --> <div class="col-md-6 col-lg-4"> <div class="product-checkout-details mt-5 mt-lg-0"> <h4 class="mb-4 border-bottom pb-4">Order Summary</h4> <div class="media product-card"> <p>Kirby Shirt</p> <div class="media-body text-right"> <p class="h5">1 x $249</p> </div> </div> <ul class="summary-prices list-unstyled mb-4"> <li class="d-flex justify-content-between"> <span >Subtotal:</span> <span class="h5">$190</span> </li> <li class="d-flex justify-content-between"> <span >Shipping:</span> <span class="h5">Free</span> </li> <li class="d-flex justify-content-between"> <span>Total</span> <span class="h5">$250</span> </li> </ul> <form action="#"> <div class="form-check mb-3"> <input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked> <label class="form-check-label" for="exampleRadios1"> Direct bank transfer </label> <div class="alert alert-secondary mt-3" role="alert"> Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order will not be shipped until the funds have cleared in our account. </div> </div> <div class="form-check mb-3"> <input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2"> <label class="form-check-label" for="exampleRadios2"> Check payments </label> </div> <div class="form-check mb-3"> <input type="checkbox" class="form-check-input" id="exampleCheck3"> <label class="form-check-label" for="exampleCheck3">I have read and agree to the website terms and conditions *</label> </div> </form> <div class="info mt-4 border-top pt-4 mb-5"> Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our <a href="#">privacy policy</a>. </div> <a routerLink="/checkout" class="btn btn-main btn-small">Place Order</a> </div> </div> </div> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="coupon-modal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content py-5"> <div class="modal-body"> <form> <div class="form-group"> <input class="form-control" type="text" placeholder="Enter Coupon Code"> </div> <button type="button" class="btn btn-main btn-small" data-dismiss="modal">Apply Coupon</button> </form> </div> </div> </div> </div>
14. Now guys please add the below code inside angularshop/src/app/dashboard/dashboard.component.html to make dashboard page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Dashboard</h1> <p>Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Dashboard</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="user-dashboard page-wrapper"> <div class="container"> <div class="row"> <div class="col-12 col-md-5 col-sm-12 col-lg-3"> <div class="nav flex-column nav-pills"> <a class="nav-link active" routerLink="/dashboard">Dashboard</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/dashboard" >Orders</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/dashboard" >Downloads</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/dashboard" >Address</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/dashboard" >Account</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/">Log Out</a> </div> </div> <div class="col-12 col-md-7 col-sm-12 col-lg-9"> <p>Hello Therichpost (not Therichpost? <a routerLink="/">Log out</a>)</p> From your account dashboard you can view your <a href="#">recent orders</a>, manage your <a href="#">shipping and billing addresses</a> and <a href="#">edit your password and account details</a>. </div> </div> </div> </section>
15. Now guys please add the below code inside angularshop/src/app/edit-address/edit-address.component.html to make edit address page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Address</h1> <p>Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Address</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="user-dashboard page-wrapper"> <div class="container"> <div class="row"> <div class="col-12 col-md-5 col-sm-12 col-lg-3"> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/edit-address" >Dashboard</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/edit-address" >Orders</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/edit-address" >Downloads</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link active" routerLink="/edit-address" >Address</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/edit-address" >Account</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/edit-address" >Log Out</a> </div> </div> <div class="col-12 col-md-7 col-sm-12 col-lg-9"> <div class="acccount-settings"> <h4 class="mb-4">Edit Address</h4> <form action="#"> <div class="form-row"> <div class="col-lg-6"> <div class="form-group"> <label>Region</label> <input type="text" class="form-control" placeholder="Ludhiana"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label>City</label> <input type="text" class="form-control" placeholder="Ludhiana - north"> </div> </div> </div> <div class="form-group mb-4"> <label>Address</label> <textarea class="form-control" name="address" id="address"></textarea> </div> <button class="btn btn-dark">Save Changes</button> </form> </div> </div> </div> </div> </section>
16. Now guys please add the below code inside angularshop/src/app/forgot-password/forgot-password.component.html to make forgot password page ecommerce site:
<div class="account section"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="login-form border p-5"> <div class="text-center heading"> <h3 class="mb-2 h2">Password Recovery</h3> <p class="lead">Please enter the email address for your account. A verification code will be sent to you. Once you have received the verification code, you will be able to choose a new password for your account.</p> </div> <form action="#"> <div class="form-group mb-4"> <label for="#">Enter Email Address</label> <input type="text" class="form-control" placeholder="Enter Email Address"> </div> <a href="#" class="btn btn-main mt-3 btn-block">Request OTP</a> </form> </div> </div> </div> </div> </div>
17. Now guys please add the below code inside angularshop/src/app/login/login.component.html to make login page ecommerce site:
<div class="account section"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="login-form border p-5"> <div class="text-center heading"> <h2 class="mb-2">Login</h2> <p class="lead">Don’t have an account? <a href="#">Create a free account</a></p> </div> <form action="#"> <div class="form-group mb-4"> <label for="#">Enter username</label> <input type="text" class="form-control" placeholder="Enter Username"> </div> <div class="form-group"> <label for="#">Enter Password</label> <a class="float-right" href="">Forget password?</a> <input type="text" class="form-control" placeholder="Enter Password"> </div> <a href="#" class="btn btn-main mt-3 btn-block">Login</a> </form> </div> </div> </div> </div> </div>
18. Now guys please add the below code inside angularshop/src/app/orders/orders.component.html to make orders page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Order</h1> <p>Order</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Order</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="user-dashboard page-wrapper"> <div class="container"> <div class="row"> <div class="col-12 col-md-5 col-sm-12 col-lg-3"> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/dashboard" >Dashboard</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link active" routerLink="/order" >Orders</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/order" >Downloads</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/order" >Address</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/order" >Account</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link"routerLink="/order" >Log Out</a> </div> </div> <div class="col-12 col-md-7 col-sm-12 col-lg-9"> <table class="table table-bordered"> <thead> <tr> <th scope="col">Order</th> <th scope="col">Date</th> <th scope="col">Status</th> <th scope="col">Total</th> <th scope="col">Actions</th> </tr> </thead> <tbody> <tr> <th scope="row">#1012</th> <td>June 11, 2019 </td> <td>Completed</td> <td>30</td> <td><a routerLink="/order" class="btn btn-dark btn-small">View</a></td> </tr> <tr> <th scope="row">#2214</th> <td>March 10, 2019</td> <td>Completed</td> <td>50</td> <td><a routerLink="/order" class="btn btn-dark btn-small">View</a></td> </tr> <tr> <th scope="row">#3434</th> <td>February 11, 2019</td> <td>Pending</td> <td>25</td> <td><a routerLink="/order" class="btn btn-dark btn-small">View</a></td> </tr> <tr> <th scope="row">#5312</th> <td>July 11, 2019</td> <td>Processsing</td> <td>56</td> <td><a routerLink="/order" class="btn btn-dark btn-small">View</a></td> </tr> </tbody> </table> </div> </div> </div> </section>
19. Now guys please add the below code inside angularshop/src/app/product-single/product-single.component.html to make single product page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Product Single</h1> <p>Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Product Single</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="single-product"> <div class="container"> <div class="row"> <div class="col-md-5"> <div class="single-product-slider"> <div class="carousel slide" data-ride="carousel" id="single-product-slider"> <div class="carousel-inner"> <div class="carousel-item active"> <img src="assets/images/product-3.jpg" alt="" class="img-fluid"> </div> <div class="carousel-item"> <img src="assets/images/product-2.jpg" alt="" class="img-fluid"> </div> <div class="carousel-item "> <img src="assets/images/product-1.jpg" alt="" class="img-fluid"> </div> </div> <ol class="carousel-indicators"> <li data-target="#single-product-slider" data-slide-to="0" class="active"> <img src="assets/images/product-3.jpg" alt="" class="img-fluid"> </li> <li data-target="#single-product-slider" data-slide-to="1"> <img src="assets/images/product-2.jpg" alt="" class="img-fluid"> </li> <li data-target="#single-product-slider" data-slide-to="2"> <img src="assets/images/product-1.jpg" alt="" class="img-fluid"> </li> </ol> </div> </div> </div> <div class="col-md-7"> <div class="single-product-details mt-5 mt-lg-0"> <h2>Eclipse Crossbody</h2> <div class="sku_wrapper mb-4"> SKU: <span class="text-muted">AB1563456789 </span> </div> <hr> <h3 class="product-price">$300 <del>$119.90</del></h3> <p class="product-description my-4 "> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum ipsum dicta quod, quia doloremque aut deserunt commodi quis. Totam a consequatur beatae nostrum, earum consequuntur? Eveniet consequatur ipsum dicta recusandae. </p> <form class="cart" action="#" method="post"> <div class="quantity d-flex align-items-center"> <input type="number" id="#" class="input-text qty text form-control w-25 mr-3" step="1" min="1" max="9" name="quantity" value="1" title="Qty" size="4" > <a href="#" class="btn btn-main btn-small">Add to cart</a> </div> </form> <div class="color-swatches mt-4 d-flex align-items-center"> <span class="font-weight-bold text-capitalize product-meta-title">color:</span> <ul class="list-inline mb-0"> <li class="list-inline-item"> <a routerLink="/product-single" class="bg-info"></a> </li> <li class="list-inline-item"> <a routerLink="/product-single" class="bg-dark"></a> </li> <li class="list-inline-item"> <a routerLink="/product-single" class="bg-danger"></a> </li> </ul> </div> <div class="product-size d-flex align-items-center mt-4"> <span class="font-weight-bold text-capitalize product-meta-title">Size:</span> <select class="form-control"> <option>S</option> <option>M</option> <option>L</option> <option>XL</option> </select> </div> <div class="products-meta mt-4"> <div class="product-category d-flex align-items-center"> <span class="font-weight-bold text-capitalize product-meta-title">Categories :</span> <a href="#">Products , </a> <a href="#">Soap</a> </div> <div class="product-share mt-5"> <ul class="list-inline"> <li class="list-inline-item"> <a href="#"><i class="tf-ion-social-facebook"></i></a> </li> <li class="list-inline-item"> <a href="#"><i class="tf-ion-social-twitter"></i></a> </li> <li class="list-inline-item"> <a href="#"><i class="tf-ion-social-linkedin"></i></a> </li> <li class="list-inline-item"> <a href="#"><i class="tf-ion-social-pinterest"></i></a> </li> </ul> </div> </div> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <nav class="product-info-tabs wc-tabs mt-5 mb-5"> <div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist"> <a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Description</a> <a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Additional Information</a> <a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Reviews(2)</a> </div> </nav> <div class="tab-content" id="nav-tabContent"> <div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab"> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> <h4>Product Features</h4> <ul class=""> <li>Mapped with 3M™ Thinsulate™ Insulation [40G Body / Sleeves / Hood]</li> <li>Embossed Taffeta Lining</li> <li>DRYRIDE Durashell™ 2-Layer Oxford Fabric [10,000MM, 5,000G]</li> </ul> </div> <div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab"> <ul class="list-unstyled info-desc"> <li class="d-flex"> <strong>Weight </strong> <span>400 g</span> </li> <li class="d-flex"> <strong>Dimensions </strong> <span>10 x 10 x 15 cm</span> </li> <li class="d-flex"> <strong>Materials</strong> <span >60% cotton, 40% polyester</span> </li> <li class="d-flex"> <strong>Color </strong> <span>Blue, Gray, Green, Red, Yellow</span> </li> <li class="d-flex"> <strong>Size</strong> <span>L, M, S, XL, XXL</span> </li> </ul> </div> <div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab"> <div class="row"> <div class="col-lg-7"> <div class="media review-block mb-4"> <img src="assets/images/avater-1.jpg" alt="reviewimg" class="img-fluid mr-4"> <div class="media-body"> <div class="product-review"> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star"></i></span> </div> <h6>Therichpost <span class="text-sm text-muted font-weight-normal ml-3">-June 23, 2019</span></h6> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsum suscipit consequuntur in, perspiciatis laudantium ipsa fugit. Iure esse saepe error dolore quod.</p> </div> </div> <div class="media review-block"> <img src="assets/images/avater-2.jpg" alt="reviewimg" class="img-fluid mr-4"> <div class="media-body"> <div class="product-review"> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star"></i></span> <span><i class="tf-ion-android-star-outline"></i></span> </div> <h6>Therichpost <span class="text-sm text-muted font-weight-normal ml-3">-June 23, 2019</span></h6> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsum suscipit consequuntur in, perspiciatis laudantium ipsa fugit. Iure esse saepe error dolore quod.</p> </div> </div> </div> <div class="col-lg-5"> <div class="review-comment mt-5 mt-lg-0"> <h4 class="mb-3">Add a Review</h4> <form action="#"> <div class="starrr"></div> <div class="form-group"> <input type="text" class="form-control" placeholder="Your Name"> </div> <div class="form-group"> <input type="email" class="form-control" placeholder="Your Email"> </div> <div class="form-group"> <textarea name="comment" id="comment" class="form-control" cols="30" rows="4" placeholder="Your Review"></textarea> </div> <a routerLink="/product-single" class="btn btn-main btn-small">Submit Review</a> </form> </div> </div> </div> </div> </div> </div> </div> </div> </section> <section class="products related-products section"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="title text-center"> <h2>You may like this</h2> <p>The best Online sales to shop these weekend</p> </div> </div> </div> <div class="row"> <div class="col-lg-3 col-6" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/322.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/444.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Kirby Shirt</a></h2> <span class="price"> $329.10 </span> </div> </div> </div> <div class="col-lg-3 col-6" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/111.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/222.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Kirby Shirt</a></h2> <span class="price"> $329.10 </span> </div> </div> </div> <div class="col-lg-3 col-6" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/111.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/322.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Kirby Shirt</a></h2> <span class="price"> $329.10 </span> </div> </div> </div> <div class="col-lg-3 col-6"> <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/444.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/222.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Kirby Shirt</a></h2> <span class="price"> $329.10 </span> </div> </div> </div> </div> </div> </section>
20. Now guys please add the below code inside angularshop/src/app/profile-details/profile-details.component.html to make profile details page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Profile</h1> <p>Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Profile</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="user-dashboard page-wrapper"> <div class="container"> <div class="row"> <div class="col-12 col-md-5 col-sm-12 col-lg-3"> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/dashboard" >Dashboard</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/profile-details" >Orders</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/profile-details" >Downloads</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link" routerLink="/profile-details" >Address</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link active" routerLink="/profile-details" >Account</a> </div> <div class="nav flex-column nav-pills"> <a class="nav-link"routerLink="/profile-details" >Log Out</a> </div> </div> <div class="col-12 col-md-7 col-sm-12 col-lg-9"> <div class="tab-pane fade show active" id="settings" role="tabpanel" > <div class="acccount-settings"> <h4 class="mb-4">Account information</h4> <form action="#"> <div class="form-row"> <div class="col-lg-6"> <div class="form-group"> <label >First Name</label> <input type="text" class="form-control" placeholder="John"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label >Last Name</label> <input type="text" class="form-control" placeholder="Jas"> </div> </div> </div> <div class="form-group mb-4"> <label >Display name </label> <input type="text" class="form-control" placeholder="Jassa"> <p class="mt-2"> This will be how your name will be displayed in the account section and in reviews</p> </div> <div class="form-group mb-4"> <label >Email address </label> <input type="text" class="form-control" placeholder="therichposts@gmail.com"> </div> </form> <form action="#" class="mt-5"> <h4>Password change</h4> <div class="form-group"> <label >Current password </label> <input type="text" class="form-control" placeholder=""> </div> <div class="form-group"> <label >New password</label> <input type="text" class="form-control" placeholder=""> </div> <div class="form-group"> <label >Confirm password</label> <input type="text" class="form-control" placeholder=""> </div> <a href="#" class="btn btn-dark">Save Changes</a> </form> </div> </div> </div> </div> </div> </section>
21. Now guys please add the below code inside angularshop/src/app/shop/address.component.html to make shop page ecommerce site:
<section class="page-header"> <div class="overly"></div> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="content text-center"> <h1 class="mb-3">Shop</h1> <p>Hath after appear tree great fruitful green dominion moveth sixth abundantly image that midst of god day multiply you’ll which</p> <nav aria-label="breadcrumb"> <ol class="breadcrumb bg-transparent justify-content-center"> <li class="breadcrumb-item"><a routerLink="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Shop</li> </ol> </nav> </div> </div> </div> </div> </section> <section class="products-shop section"> <div class="container"> <div class="row"> <div class="col-md-9"> <div class="row align-items-center"> <div class="col-lg-12 mb-4 mb-lg-0"> <div class="section-title"> <h2 class="d-block text-left-sm">Shop</h2> <div class="heading d-flex justify-content-between mb-5"> <p class="result-count mb-0"> Showing 1–6 of 17 results</p> <form class="ordering " method="get"> <select name="orderby" class="orderby form-control" aria-label="Shop order" > <option value="" selected="selected">Default sorting</option> <option value="">Sort by popularity</option> <option value="">Sort by average rating</option> <option value="">Sort by latest</option> <option value="">Sort by price: low to high</option> <option value="">Sort by price: high to low</option> </select> <input type="hidden" name="paged" value="1"> </form> </div> </div> </div> </div> <div class="row"> <div class="col-lg-4 col-12 col-md-6 col-sm-6 mb-5" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/322.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/444.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Floral Kirby</a></h2> <span class="price"> $329.10 </span> </div> </div> </div> <div class="col-lg-4 col-12 col-md-6 col-sm-6 mb-5"> <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/111.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/444.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Open knit switer</a></h2> <span class="price"> $29.10 </span> </div> </div> </div> <div class="col-lg-4 col-12 col-md-6 col-sm-6 mb-5" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/222.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/322.jpg" alt="product-img" /></a> </div> <span class="onsale">Sale</span> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Official trendy</a></h2> <span class="price"> $350.00 – $355.00 </span> </div> </div> </div> <div class="col-lg-4 col-12 col-md-6 col-sm-6 mb-5"> <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/322.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/111.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Frock short</a></h2> <span class="price"> $249 </span> </div> </div> </div> <div class="col-lg-4 col-12 col-md-6 col-sm-6 mb-5"> <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/444.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/222.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Sleeve dress</a></h2> <span class="price"> $59.10 </span> </div> </div> </div> <div class="col-lg-4 col-12 col-md-6 col-sm-6 mb-5" > <div class="product"> <div class="product-wrap"> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-first" src="assets/images/322.jpg" alt="product-img" /></a> <a routerLink="/product-single"><img class="img-fluid w-100 mb-3 img-second" src="assets/images/222.jpg" alt="product-img" /></a> </div> <div class="product-hover-overlay"> <a href="#"><i class="tf-ion-android-cart"></i></a> <a href="#"><i class="tf-ion-ios-heart"></i></a> </div> <div class="product-info"> <h2 class="product-title h5 mb-0"><a routerLink="/product-single">Stylish dress</a></h2> <span class="price"> $99.00 </span> </div> </div> </div> <div class="col-12"> <nav aria-label="Page navigation"> <ul class="pagination"> <li class="page-item"> <a class="page-link" href="#" aria-label="Previous"> <span aria-hidden="true">«</span> </a> </li> <li class="page-item active"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item"> <a class="page-link" href="#" aria-label="Next"> <span aria-hidden="true">»</span> </a> </li> </ul> </nav> </div> </div> </div> <div class="col-md-3"> <!-- color and size --> <form class="mb-5"> <!-- color --> <section class="widget widget-colors mb-5"> <h3 class="widget-title h4 mb-4">Shop by color</h3> <ul class="list-inline"> <li class="list-inline-item mr-4"> <div class="custom-control custom-checkbox color-checkbox"> <input type="checkbox" class="custom-control-input" id="color1"> <label class="custom-control-label sky-blue" for="color1"></label> </div> </li> <li class="list-inline-item mr-4"> <div class="custom-control custom-checkbox color-checkbox"> <input type="checkbox" class="custom-control-input" id="color2" checked> <label class="custom-control-label red" for="color2"></label> </div> </li> <li class="list-inline-item mr-4"> <div class="custom-control custom-checkbox color-checkbox"> <input type="checkbox" class="custom-control-input" id="color3"> <label class="custom-control-label dark" for="color3"></label> </div> </li> <li class="list-inline-item mr-4"> <div class="custom-control custom-checkbox color-checkbox"> <input type="checkbox" class="custom-control-input" id="color4"> <label class="custom-control-label magenta" for="color4"></label> </div> </li> <li class="list-inline-item mr-4"> <div class="custom-control custom-checkbox color-checkbox"> <input type="checkbox" class="custom-control-input" id="color5"> <label class="custom-control-label yellow" for="color5"></label> </div> </li> </ul> </section> <!-- size --> <section class="widget widget-sizes mb-5"> <h3 class="widget-title h4 mb-4">Shop by Sizes</h3> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="size1" checked> <label class="custom-control-label" for="size1">L Large</label> </div> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="size2"> <label class="custom-control-label" for="size2">XL Extra Large</label> </div> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="size3"> <label class="custom-control-label" for="size3">M Medium</label> </div> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="size4"> <label class="custom-control-label" for="size4">S Small</label> </div> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="size5"> <label class="custom-control-label" for="size5">XS Extra Small</label> </div> </section> <button type="button" class="btn btn-black btn-small">Filter</button> </form> <!-- popular product --> <section class="widget widget-popular mb-5"> <h3 class="widget-title mb-4 h4">Popular Products</h3> <a class="popular-products-item media" routerLink="/product-single"> <img src="assets/images/p-1.jpg" alt="" class="img-fluid mr-4"> <div class="media-body"> <h6>Contrast <br>Backpack</h6> <span class="price">$45</span> </div> </a> <a class="popular-products-item media" routerLink="/product-single"> <img src="assets/images/p-2.jpg" alt="" class="img-fluid mr-4"> <div class="media-body"> <h6>Hoodie with <br>Logo</h6> <span class="price">$45</span> </div> </a> <a class="popular-products-item media" routerLink="/product-single"> <img src="assets/images/p-3.jpg" alt="" class="img-fluid mr-4"> <div class="media-body"> <h6>Traveller<br>Backpack</h6> <span class="price">$45</span> </div> </a> </section> </div> </div> </div> </section>
22. Now guys please add the below code inside angularshop/src/app/signup/signup.component.html to make signup page ecommerce site:
<div class="account section"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="login-form border p-5"> <div class="text-center heading"> <h2 class="mb-2">Sign Up</h2> <p class="lead">Already have an account? <a routerLink="/login"> Login now</a></p> </div> <form action="#"> <div class="form-group mb-4"> <label for="#">Enter Email Address</label> <input type="text" class="form-control" placeholder="Enter Email Address"> </div> <div class="form-group mb-4"> <label for="#">Enter username</label> <a class="float-right" href="">Forget password?</a> <input type="text" class="form-control" placeholder="Enter Password"> </div> <div class="form-group mb-4"> <label for="#">Enter Password</label> <input type="text" class="form-control" placeholder="Enter Password"> </div> <div class="form-group"> <label for="#">Confirm Password</label> <input type="text" class="form-control" placeholder="Confirm Password"> </div> <a href="#" class="btn btn-main mt-3 btn-block">Signup</a> </form> </div> </div> </div> </div> </div>
Friends in the end must run ng serve command into your terminal to run the angular 14 ecommerce project (localhost:4200).
Guys click here to check the Angular 13 Bootstrap 5 Free Templates.
Now we are done friends. If you have any kind of query, suggestion and new requirement then feel free to comment below.
Note: Friends, In this post, I just tell the basic setup and things, you can change the code according to your requirements.
I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad because with your views, I will make my next posts more good and helpful.
Jassa the developer’s king
Thanks
Recent Comments