Skip to content

Commit

Permalink
Not Found Added
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay kashyap committed May 1, 2020
1 parent 3700ac0 commit a3c46e3
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 4 deletions.
33 changes: 33 additions & 0 deletions Template/notFound/_cart_notFound.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- Shopping cart section -->
<section id="cart" class="py-3 mb-5">
<div class="container-fluid w-75">
<h5 class="font-baloo font-size-20">Shopping Cart</h5>

<!-- shopping cart items -->
<div class="row">
<div class="col-sm-9">
<!-- Empty Cart -->
<div class="row border-top py-3 mt-3">
<div class="col-sm-12 text-center py-2">
<img src="./assets/blog/empty_cart.png" alt="Empty Cart" class="img-fluid" style="height: 200px;">
<p class="font-baloo font-size-16 text-black-50">Empty Cart</p>
</div>
</div>
<!-- .Empty Cart -->
</div>
<!-- subtotal section-->
<div class="col-sm-3">
<div class="sub-total border text-center mt-2">
<h6 class="font-size-12 font-rale text-success py-3"><i class="fas fa-check"></i> Your order is eligible for FREE Delivery.</h6>
<div class="border-top py-4">
<h5 class="font-baloo font-size-20">Subtotal ( <?php echo isset($subTotal) ? count($subTotal) : 0; ?> item):&nbsp; <span class="text-danger">$<span class="text-danger" id="deal-price"><?php echo isset($subTotal) ? $Cart->getSum($subTotal) : 0; ?></span> </span> </h5>
<button type="submit" class="btn btn-warning mt-3">Proceed to Buy</button>
</div>
</div>
</div>
<!-- !subtotal section-->
</div>
<!-- !shopping cart items -->
</div>
</section>
<!-- !Shopping cart section -->
23 changes: 23 additions & 0 deletions Template/notFound/_wishlist_notFound.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- Shopping cart section -->

<section id="cart" class="py-3 mb-5">
<div class="container-fluid w-75">
<h5 class="font-baloo font-size-20">Wishlist</h5>
<!-- shopping cart items -->
<div class="row">
<div class="col-sm-9">
<!-- Empty Cart -->
<div class="row border-top py-3 mt-3">
<div class="col-sm-12 text-center py-2">
<img src="./assets/blog/empty_cart.png" alt="Empty Cart" class="img-fluid" style="height: 200px;">
<p class="font-baloo font-size-16 text-black-50">Empty Wishlist</p>
</div>
</div>
<!-- .Empty Cart -->
</div>
</div>
<!-- !shopping cart items -->
</div>
</section>
<!-- !Shopping cart section -->
8 changes: 4 additions & 4 deletions cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<?php

/* include top sale section */
include ('Template/_cart-template.php');
/* include top sale section */
/* include cart items if it is not empty */
count($product->getData('cart')) ? include ('Template/_cart-template.php') : include ('Template/notFound/_cart_notFound.php');
/* include cart items if it is not empty */

/* include top sale section */
include ('Template/_wishilist_template.php');
count($product->getData('wishlist')) ? include ('Template/_wishilist_template.php') : include ('Template/notFound/_wishlist_notFound.php');
/* include top sale section */


Expand Down

0 comments on commit a3c46e3

Please sign in to comment.