diff --git a/Template/notFound/_cart_notFound.php b/Template/notFound/_cart_notFound.php new file mode 100644 index 0000000..d0bddf3 --- /dev/null +++ b/Template/notFound/_cart_notFound.php @@ -0,0 +1,33 @@ + +
+
+
Shopping Cart
+ + +
+
+ +
+
+ Empty Cart +

Empty Cart

+
+
+ +
+ +
+
+
Your order is eligible for FREE Delivery.
+
+
Subtotal ( item):  $getSum($subTotal) : 0; ?>
+ +
+
+
+ +
+ +
+
+ \ No newline at end of file diff --git a/Template/notFound/_wishlist_notFound.php b/Template/notFound/_wishlist_notFound.php new file mode 100644 index 0000000..3b59286 --- /dev/null +++ b/Template/notFound/_wishlist_notFound.php @@ -0,0 +1,23 @@ + + +
+
+
Wishlist
+ + +
+
+ +
+
+ Empty Cart +

Empty Wishlist

+
+
+ +
+
+ +
+
+ \ No newline at end of file diff --git a/cart.php b/cart.php index 822fa61..33e976b 100644 --- a/cart.php +++ b/cart.php @@ -6,12 +6,12 @@ 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 */