├── mobile_shope ├── assets │ ├── Banner1.png │ ├── Banner2.png │ ├── blog │ │ ├── blog1.jpg │ │ ├── blog2.jpg │ │ ├── blog3.jpg │ │ └── empty_cart.png │ ├── products │ │ ├── 1.png │ │ ├── 10.png │ │ ├── 11.png │ │ ├── 12.png │ │ ├── 13.png │ │ ├── 14.png │ │ ├── 15.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ ├── 5.png │ │ ├── 6.png │ │ └── 8.png │ ├── banner1-cr-500x150.jpg │ └── banner2-cr-500x150.jpg ├── html template │ ├── assets │ │ ├── Banner1.png │ │ ├── Banner2.png │ │ ├── blog │ │ │ ├── blog1.jpg │ │ │ ├── blog2.jpg │ │ │ ├── blog3.jpg │ │ │ └── empty_cart.png │ │ ├── products │ │ │ ├── 1.png │ │ │ ├── 2.png │ │ │ ├── 3.png │ │ │ ├── 4.png │ │ │ ├── 5.png │ │ │ ├── 6.png │ │ │ ├── 8.png │ │ │ ├── 10.png │ │ │ ├── 11.png │ │ │ ├── 12.png │ │ │ ├── 13.png │ │ │ ├── 14.png │ │ │ └── 15.png │ │ ├── banner1-cr-500x150.jpg │ │ └── banner2-cr-500x150.jpg │ ├── sass │ │ ├── include │ │ │ ├── global.scss │ │ │ ├── special-price.scss │ │ │ ├── variables.scss │ │ │ ├── typography.scss │ │ │ ├── color.scss │ │ │ └── top-sale.scss │ │ └── style.scss │ ├── package.json │ ├── style.css.map │ ├── style.css │ ├── index.js │ ├── cart.html │ ├── product.html │ └── index.html ├── Template │ ├── _banner-ads.php │ ├── ajax.php │ ├── _banner-area.php │ ├── notFound │ │ ├── _wishlist_notFound.php │ │ └── _cart_notFound.php │ ├── _blogs.php │ ├── _top-sale.php │ ├── _new-phones.php │ ├── _special-price.php │ ├── _wishilist_template.php │ ├── _cart-template.php │ └── _products.php ├── product.php ├── functions.php ├── cart.php ├── index.php ├── database │ ├── DBController.php │ ├── Product.php │ ├── Cart.php │ └── shopee.sql ├── style.css ├── footer.php ├── header.php └── index.js └── README.md /mobile_shope/assets/Banner1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/Banner1.png -------------------------------------------------------------------------------- /mobile_shope/assets/Banner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/Banner2.png -------------------------------------------------------------------------------- /mobile_shope/assets/blog/blog1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/blog/blog1.jpg -------------------------------------------------------------------------------- /mobile_shope/assets/blog/blog2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/blog/blog2.jpg -------------------------------------------------------------------------------- /mobile_shope/assets/blog/blog3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/blog/blog3.jpg -------------------------------------------------------------------------------- /mobile_shope/assets/products/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/1.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/10.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/11.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/12.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/13.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/14.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/15.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/2.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/3.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/4.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/5.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/6.png -------------------------------------------------------------------------------- /mobile_shope/assets/products/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/products/8.png -------------------------------------------------------------------------------- /mobile_shope/assets/blog/empty_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/blog/empty_cart.png -------------------------------------------------------------------------------- /mobile_shope/assets/banner1-cr-500x150.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/banner1-cr-500x150.jpg -------------------------------------------------------------------------------- /mobile_shope/assets/banner2-cr-500x150.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/assets/banner2-cr-500x150.jpg -------------------------------------------------------------------------------- /mobile_shope/html template/assets/Banner1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/Banner1.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/Banner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/Banner2.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/blog/blog1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/blog/blog1.jpg -------------------------------------------------------------------------------- /mobile_shope/html template/assets/blog/blog2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/blog/blog2.jpg -------------------------------------------------------------------------------- /mobile_shope/html template/assets/blog/blog3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/blog/blog3.jpg -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/1.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/2.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/3.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/4.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/5.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/6.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/8.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/10.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/11.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/12.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/13.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/14.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/products/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/products/15.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mobiel_store 2 | Here are an example of mobile friendly ecommerce website. ... clear images of the items with prices and short descriptions below. 3 | -------------------------------------------------------------------------------- /mobile_shope/html template/assets/blog/empty_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/blog/empty_cart.png -------------------------------------------------------------------------------- /mobile_shope/html template/assets/banner1-cr-500x150.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/banner1-cr-500x150.jpg -------------------------------------------------------------------------------- /mobile_shope/html template/assets/banner2-cr-500x150.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zmoussam/mobile_store/HEAD/mobile_shope/html template/assets/banner2-cr-500x150.jpg -------------------------------------------------------------------------------- /mobile_shope/html template/sass/include/global.scss: -------------------------------------------------------------------------------- 1 | /* global classes */ 2 | button, button:focus{ 3 | outline: none !important; 4 | box-shadow: none !important; 5 | } -------------------------------------------------------------------------------- /mobile_shope/html template/sass/include/special-price.scss: -------------------------------------------------------------------------------- 1 | /* Special Price section Template */ 2 | 3 | #special-price{ 4 | .grid .grid-item{ 5 | margin-right:1.2rem; 6 | margin-top:1rem; 7 | } 8 | } -------------------------------------------------------------------------------- /mobile_shope/html template/sass/include/variables.scss: -------------------------------------------------------------------------------- 1 | $font-baloo : "Baloo Thambi 2" ,cursive; 2 | $font-raleway : "Raleway" ,cursive; 3 | $font-rubik : "Rubik",cursive; 4 | $color-primary:#003859; 5 | $color-second:#00A5C4; 6 | $color-yellow:#FFD289; -------------------------------------------------------------------------------- /mobile_shope/Template/_banner-ads.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | -------------------------------------------------------------------------------- /mobile_shope/html template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mobileshopee", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start":"sass ./sass/style.scss style.css --watch" 9 | }, 10 | "author": "zakaria moussammi", 11 | "license": "ISC" 12 | } 13 | -------------------------------------------------------------------------------- /mobile_shope/html template/sass/style.scss: -------------------------------------------------------------------------------- 1 | /* Sass Template */ 2 | @import url('https://fonts.googleapis.com/css2?family=Baloo+Thambi+2&family=Raleway&family=Rubik&display=swap'); 3 | @import'./include/variables.scss'; 4 | @import'./include/global.scss'; 5 | @import'./include/typography.scss'; 6 | @import'./include/color.scss'; 7 | @import'./include/top-sale.scss'; 8 | @import'./include/special-price.scss'; -------------------------------------------------------------------------------- /mobile_shope/html template/sass/include/typography.scss: -------------------------------------------------------------------------------- 1 | /* typography classes */ 2 | .font-baloo{ 3 | font-family: $font-baloo; 4 | } 5 | .font-rale{ 6 | font-family: $font-raleway; 7 | } 8 | .font-rubik{ 9 | font-family: $font-rubik; 10 | } 11 | .font-size-12{ 12 | font-size: 12px; 13 | } 14 | .font-size-14{ 15 | font-size: 16px; 16 | } 17 | .font-size-20{ 18 | font-size: 20px; 19 | } -------------------------------------------------------------------------------- /mobile_shope/product.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 17 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /mobile_shope/Template/ajax.php: -------------------------------------------------------------------------------- 1 | getProduct($_POST['itemid']); 17 | echo json_encode($result); 18 | } -------------------------------------------------------------------------------- /mobile_shope/html template/sass/include/color.scss: -------------------------------------------------------------------------------- 1 | /* color Template */ 2 | .color-primary{ 3 | color: $color-primary; 4 | } 5 | 6 | .color-primary-bg{ 7 | background: $color-primary; 8 | } 9 | .color-second{ 10 | color:$color-second; 11 | } 12 | .color-second-bg{ 13 | background:$color-second; 14 | } 15 | .color-yellow{ 16 | color:$color-yellow; 17 | } 18 | 19 | .color-yellow-bg{ 20 | background:$color-yellow; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /mobile_shope/functions.php: -------------------------------------------------------------------------------- 1 | getData(); 19 | 20 | // Cart object 21 | $Cart = new Cart($db ); 22 | -------------------------------------------------------------------------------- /mobile_shope/Template/_banner-area.php: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | -------------------------------------------------------------------------------- /mobile_shope/html template/style.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sourceRoot":"","sources":["sass/style.scss","sass/include/global.scss","sass/include/typography.scss","sass/include/variables.scss","sass/include/color.scss","sass/include/top-sale.scss","sass/include/special-price.scss"],"names":[],"mappings":"AAAA;AACQ;ACDR;AACA;EACI;EACA;;;ACHJ;AACA;EACI,aCFU;;;ADId;EACI,aCJY;;;ADMhB;EACI,aCNU;;;ADQd;EACI;;;AAEJ;EACI;;;AAEJ;EACI;;;AEjBJ;AACA;EACA,ODCe;;;ACEf;EACI,YDHW;;;ACKf;EACI,ODLU;;;ACOd;EACI,YDRU;;;ACUb;EACI,ODVS;;;ACab;EACI,YDdS;;;AELd;AAEI;EACI;;AAEJ;EACI;;AAGJ;EACI;;AAEJ;EACI;EACA;EACA;;AAGJ;EACI;;AAGJ;AAAA;EAEI;EACA,OFtBO;EEuBP;;AAEJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;;ACrCR;AAGI;EACI;EACA","file":"style.css"} -------------------------------------------------------------------------------- /mobile_shope/cart.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | getData('cart')) ? include ('Template/_cart-template.php') : include ('Template/notFound/_cart_notFound.php'); 11 | /* include cart items if it is not empty */ 12 | 13 | /* include top sale section */ 14 | count($product->getData('wishlist')) ? include ('Template/_wishilist_template.php') : include ('Template/notFound/_wishlist_notFound.php'); 15 | /* include top sale section */ 16 | 17 | 18 | /* include top sale section */ 19 | include ('Template/_new-phones.php'); 20 | /* include top sale section */ 21 | 22 | ?> 23 | 24 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /mobile_shope/index.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /mobile_shope/Template/notFound/_wishlist_notFound.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
Wishlist
6 | 7 | 8 |
9 |
10 | 11 |
12 |
13 | Empty Cart 14 |

Empty Wishlist

15 |
16 |
17 | 18 |
19 |
20 | 21 |
22 |
23 | -------------------------------------------------------------------------------- /mobile_shope/database/DBController.php: -------------------------------------------------------------------------------- 1 | con = mysqli_connect($this->host, $this->user, $this->password, $this->database); 19 | if ($this->con->connect_error){ 20 | echo "Fail " . $this->con->connect_error; 21 | } 22 | } 23 | 24 | public function __destruct() 25 | { 26 | $this->closeConnection(); 27 | } 28 | 29 | // for mysqli closing connection 30 | protected function closeConnection(){ 31 | if ($this->con != null ){ 32 | $this->con->close(); 33 | $this->con = null; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /mobile_shope/html template/sass/include/top-sale.scss: -------------------------------------------------------------------------------- 1 | /* to sale template*/ 2 | #top-sale{ 3 | .owl-carousel .item .product a{ 4 | overflow: hidden; 5 | } 6 | .owl-carousel .item .product img{ 7 | transition: transform .5s ease; 8 | } 9 | 10 | .owl-carousel .item .product img:hover{ 11 | transform: scale(1.1); 12 | } 13 | .owl-carousel .owl-nav button{ 14 | position:absolute; 15 | top:30%; 16 | outline: none; 17 | } 18 | 19 | .owl-carousel .owl-nav button.owl-prev{ 20 | left: 0; 21 | } 22 | 23 | .owl-carousel .owl-nav button.owl-prev span, 24 | .owl-carousel .owl-nav button.owl-next span{ 25 | font-size:35px; 26 | color:$color-primary; 27 | padding: 0 1rem; 28 | } 29 | .owl-carousel .owl-nav button.owl-prev span{ 30 | margin-left:-4rem; 31 | } 32 | 33 | .owl-carousel .owl-nav button.owl-next{ 34 | right:0; 35 | } 36 | 37 | .owl-carousel .owl-nav button.owl-next span{ 38 | margin-right:-4rem; 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /mobile_shope/database/Product.php: -------------------------------------------------------------------------------- 1 | con)) return null; 11 | $this->db = $db; 12 | } 13 | 14 | // fetch product data using getData Method 15 | public function getData($table = 'product'){ 16 | $result = $this->db->con->query("SELECT * FROM {$table}"); 17 | 18 | $resultArray = array(); 19 | 20 | // fetch product data one by one 21 | while ($item = mysqli_fetch_array($result, MYSQLI_ASSOC)){ 22 | $resultArray[] = $item; 23 | } 24 | 25 | return $resultArray; 26 | } 27 | 28 | // get product using item id 29 | public function getProduct($item_id = null, $table= 'product'){ 30 | if (isset($item_id)){ 31 | $result = $this->db->con->query("SELECT * FROM {$table} WHERE item_id={$item_id}"); 32 | 33 | $resultArray = array(); 34 | 35 | // fetch product data one by one 36 | while ($item = mysqli_fetch_array($result, MYSQLI_ASSOC)){ 37 | $resultArray[] = $item; 38 | } 39 | 40 | return $resultArray; 41 | } 42 | } 43 | 44 | } -------------------------------------------------------------------------------- /mobile_shope/Template/notFound/_cart_notFound.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
Shopping Cart
5 | 6 | 7 |
8 |
9 | 10 |
11 |
12 | Empty Cart 13 |

Empty Cart

14 |
15 |
16 | 17 |
18 | 19 |
20 |
21 |
Your order is eligible for FREE Delivery.
22 |
23 |
Subtotal ( item):  $getSum($subTotal) : 0; ?>
24 | 25 |
26 |
27 |
28 | 29 |
30 | 31 |
32 |
33 | -------------------------------------------------------------------------------- /mobile_shope/Template/_blogs.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |

Latest Blogs

6 |
7 | 8 | 34 |
35 |
36 | 37 | -------------------------------------------------------------------------------- /mobile_shope/html template/style.css: -------------------------------------------------------------------------------- 1 | /* Sass Template */ 2 | @import url("https://fonts.googleapis.com/css2?family=Baloo+Thambi+2&family=Raleway&family=Rubik&display=swap"); 3 | /* global classes */ 4 | button, button:focus { 5 | outline: none !important; 6 | box-shadow: none !important; 7 | } 8 | 9 | /* typography classes */ 10 | .font-baloo { 11 | font-family: "Baloo Thambi 2", cursive; 12 | } 13 | 14 | .font-rale { 15 | font-family: "Raleway", cursive; 16 | } 17 | 18 | .font-rubik { 19 | font-family: "Rubik", cursive; 20 | } 21 | 22 | .font-size-12 { 23 | font-size: 12px; 24 | } 25 | 26 | .font-size-14 { 27 | font-size: 16px; 28 | } 29 | 30 | .font-size-20 { 31 | font-size: 20px; 32 | } 33 | 34 | /* color Template */ 35 | .color-primary { 36 | color: #003859; 37 | } 38 | 39 | .color-primary-bg { 40 | background: #003859; 41 | } 42 | 43 | .color-second { 44 | color: #00A5C4; 45 | } 46 | 47 | .color-second-bg { 48 | background: #00A5C4; 49 | } 50 | 51 | .color-yellow { 52 | color: #FFD289; 53 | } 54 | 55 | .color-yellow-bg { 56 | background: #FFD289; 57 | } 58 | 59 | /* to sale template*/ 60 | #top-sale .owl-carousel .item .product a { 61 | overflow: hidden; 62 | } 63 | #top-sale .owl-carousel .item .product img { 64 | transition: transform 0.5s ease; 65 | } 66 | #top-sale .owl-carousel .item .product img:hover { 67 | transform: scale(1.1); 68 | } 69 | #top-sale .owl-carousel .owl-nav button { 70 | position: absolute; 71 | top: 30%; 72 | outline: none; 73 | } 74 | #top-sale .owl-carousel .owl-nav button.owl-prev { 75 | left: 0; 76 | } 77 | #top-sale .owl-carousel .owl-nav button.owl-prev span, 78 | #top-sale .owl-carousel .owl-nav button.owl-next span { 79 | font-size: 35px; 80 | color: #003859; 81 | padding: 0 1rem; 82 | } 83 | #top-sale .owl-carousel .owl-nav button.owl-prev span { 84 | margin-left: -4rem; 85 | } 86 | #top-sale .owl-carousel .owl-nav button.owl-next { 87 | right: 0; 88 | } 89 | #top-sale .owl-carousel .owl-nav button.owl-next span { 90 | margin-right: -4rem; 91 | } 92 | 93 | /* Special Price section Template */ 94 | #special-price .grid .grid-item { 95 | margin-right: 1.2rem; 96 | margin-top: 1rem; 97 | } 98 | 99 | /*# sourceMappingURL=style.css.map */ 100 | -------------------------------------------------------------------------------- /mobile_shope/style.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Baloo+Thambi+2&family=Raleway&family=Rubik&display=swap"); 2 | /* Sass Template */ 3 | /* global classes */ 4 | button, button:focus { 5 | outline: none !important; 6 | box-shadow: none !important; 7 | } 8 | 9 | /* typography classes */ 10 | .font-baloo { 11 | font-family: "Baloo Thambi 2", cursive; 12 | } 13 | 14 | .font-rale { 15 | font-family: "Raleway", cursive; 16 | } 17 | 18 | .font-rubik { 19 | font-family: "Rubik", cursive; 20 | } 21 | 22 | .font-size-12 { 23 | font-size: 12px; 24 | } 25 | 26 | .font-size-14 { 27 | font-size: 14px; 28 | } 29 | 30 | .font-size-16 { 31 | font-size: 16px; 32 | } 33 | 34 | .font-size-20 { 35 | font-size: 20px; 36 | } 37 | 38 | /* Color Template */ 39 | .color-primary { 40 | color: #003859; 41 | } 42 | 43 | .color-primary-bg { 44 | background: #003859; 45 | } 46 | 47 | .color-second { 48 | color: #00A5C4; 49 | } 50 | 51 | .color-second-bg { 52 | background: #00A5C4; 53 | } 54 | 55 | .color-yellow { 56 | color: #FFD289; 57 | } 58 | 59 | .color-yellow-bg { 60 | background: #FFD289; 61 | } 62 | 63 | /* top sale template */ 64 | #top-sale .owl-carousel .item .product a { 65 | overflow: hidden; 66 | } 67 | #top-sale .owl-carousel .item .product img { 68 | transition: transform 0.5s ease; 69 | } 70 | #top-sale .owl-carousel .item .product img:hover { 71 | transform: scale(1.1); 72 | } 73 | #top-sale .owl-carousel .owl-nav button { 74 | position: absolute; 75 | top: 30%; 76 | outline: none; 77 | } 78 | #top-sale .owl-carousel .owl-nav button.owl-prev { 79 | left: 0; 80 | } 81 | #top-sale .owl-carousel .owl-nav button.owl-prev span, 82 | #top-sale .owl-carousel .owl-nav button.owl-next span { 83 | font-size: 35px; 84 | color: #003859; 85 | padding: 0 1rem; 86 | } 87 | #top-sale .owl-carousel .owl-nav button.owl-prev span { 88 | margin-left: -4rem; 89 | } 90 | #top-sale .owl-carousel .owl-nav button.owl-next { 91 | right: 0; 92 | } 93 | #top-sale .owl-carousel .owl-nav button.owl-next span { 94 | margin-right: -4rem; 95 | } 96 | 97 | /* Special Price Section Template */ 98 | #special-price .grid .grid-item { 99 | margin-right: 1.2rem; 100 | margin-top: 1rem; 101 | } 102 | 103 | /*# sourceMappingURL=style.css.map */ 104 | -------------------------------------------------------------------------------- /mobile_shope/html template/index.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | // banner owl carousel 4 | $("#banner-area .owl-carousel").owlCarousel({ 5 | dots: true, 6 | items: 1 7 | }); 8 | // top sale owl carousel 9 | $("#top-sale .owl-carousel").owlCarousel({ 10 | loop: true, 11 | nav: true, 12 | dots: false, 13 | responsive : { 14 | 0: { 15 | items: 1 16 | }, 17 | 600: { 18 | items: 3 19 | }, 20 | 1000 : { 21 | items: 5 22 | } 23 | } 24 | }); 25 | 26 | // isotope filter 27 | var $grid = $(".grid").isotope({ 28 | itemSelector : '.grid-item', 29 | layoutMode : 'fitRows' 30 | }); 31 | 32 | 33 | // filter items on button click 34 | $(".button-group").on("click", "button", function(){ 35 | var filterValue = $(this).attr('data-filter'); 36 | $grid.isotope({ filter: filterValue}); 37 | }) 38 | 39 | 40 | // new phones owl carousel 41 | $("#new-phones .owl-carousel").owlCarousel({ 42 | loop: true, 43 | nav: false, 44 | dots: true, 45 | responsive : { 46 | 0: { 47 | items: 1 48 | }, 49 | 600: { 50 | items: 3 51 | }, 52 | 1000 : { 53 | items: 5 54 | } 55 | } 56 | }); 57 | 58 | // blogs owl carousel 59 | $("#blogs .owl-carousel").owlCarousel({ 60 | loop: true, 61 | nav: false, 62 | dots: true, 63 | responsive : { 64 | 0: { 65 | items: 1 66 | }, 67 | 600: { 68 | items: 3 69 | } 70 | } 71 | }) 72 | 73 | // product qty section 74 | let $qty_up = $(".qty .qty-up"); 75 | let $qty_down = $(".qty .qty-down"); 76 | // let $input = $(".qty .qty_input"); 77 | 78 | // click on qty up button 79 | $qty_up.click(function(e){ 80 | let $input = $(`.qty_input[data-id='${$(this).data("id")}']`); 81 | if($input.val() >= 1 && $input.val() <= 9){ 82 | $input.val(function(i, oldval){ 83 | return ++oldval; 84 | }); 85 | } 86 | }); 87 | 88 | // click on qty down button 89 | $qty_down.click(function(e){ 90 | let $input = $(`.qty_input[data-id='${$(this).data("id")}']`); 91 | if($input.val() > 1 && $input.val() <= 10){ 92 | $input.val(function(i, oldval){ 93 | return --oldval; 94 | }); 95 | } 96 | }); 97 | 98 | }); 99 | -------------------------------------------------------------------------------- /mobile_shope/Template/_top-sale.php: -------------------------------------------------------------------------------- 1 | 2 | addToCart($_POST['user_id'], $_POST['item_id']); 11 | } 12 | } 13 | ?> 14 |
15 |
16 |

Top Sale

17 |
18 | 19 | 53 | 54 |
55 |
56 | -------------------------------------------------------------------------------- /mobile_shope/Template/_new-phones.php: -------------------------------------------------------------------------------- 1 | 2 | addToCart($_POST['user_id'], $_POST['item_id']); 10 | } 11 | } 12 | ?> 13 |
14 |
15 |

New Phones

16 |
17 | 18 | 19 | 52 | 53 | 54 |
55 |
56 | -------------------------------------------------------------------------------- /mobile_shope/database/Cart.php: -------------------------------------------------------------------------------- 1 | con)) return null; 11 | $this->db = $db; 12 | } 13 | 14 | // insert into cart table 15 | public function insertIntoCart($params = null, $table = "cart"){ 16 | if ($this->db->con != null){ 17 | if ($params != null){ 18 | // "Insert into cart(user_id) values (0)" 19 | // get table columns 20 | $columns = implode(',', array_keys($params)); 21 | 22 | $values = implode(',' , array_values($params)); 23 | 24 | // create sql query 25 | $query_string = sprintf("INSERT INTO %s(%s) VALUES(%s)", $table, $columns, $values); 26 | 27 | // execute query 28 | $result = $this->db->con->query($query_string); 29 | return $result; 30 | } 31 | } 32 | } 33 | 34 | // to get user_id and item_id and insert into cart table 35 | public function addToCart($userid, $itemid){ 36 | if (isset($userid) && isset($itemid)){ 37 | $params = array( 38 | "user_id" => $userid, 39 | "item_id" => $itemid 40 | ); 41 | 42 | // insert data into cart 43 | $result = $this->insertIntoCart($params); 44 | if ($result){ 45 | // Reload Page 46 | header("Location: " . $_SERVER['PHP_SELF']); 47 | } 48 | } 49 | } 50 | 51 | // delete cart item using cart item id 52 | public function deleteCart($item_id = null, $table = 'cart'){ 53 | if($item_id != null){ 54 | $result = $this->db->con->query("DELETE FROM {$table} WHERE item_id={$item_id}"); 55 | if($result){ 56 | header("Location:" . $_SERVER['PHP_SELF']); 57 | } 58 | return $result; 59 | } 60 | } 61 | 62 | // calculate sub total 63 | public function getSum($arr){ 64 | if(isset($arr)){ 65 | $sum = 0; 66 | foreach ($arr as $item){ 67 | $sum += floatval($item[0]); 68 | } 69 | return sprintf('%.2f' , $sum); 70 | } 71 | } 72 | 73 | // get item_it of shopping cart list 74 | public function getCartId($cartArray = null, $key = "item_id"){ 75 | if ($cartArray != null){ 76 | $cart_id = array_map(function ($value) use($key){ 77 | return $value[$key]; 78 | }, $cartArray); 79 | return $cart_id; 80 | } 81 | } 82 | 83 | // Save for later 84 | public function saveForLater($item_id = null, $saveTable = "wishlist", $fromTable = "cart"){ 85 | if ($item_id != null){ 86 | $query = "INSERT INTO {$saveTable} SELECT * FROM {$fromTable} WHERE item_id={$item_id};"; 87 | $query .= "DELETE FROM {$fromTable} WHERE item_id={$item_id};"; 88 | 89 | // execute multiple query 90 | $result = $this->db->con->multi_query($query); 91 | 92 | if($result){ 93 | header("Location :" . $_SERVER['PHP_SELF']); 94 | } 95 | return $result; 96 | } 97 | } 98 | 99 | 100 | } -------------------------------------------------------------------------------- /mobile_shope/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /mobile_shope/Template/_special-price.php: -------------------------------------------------------------------------------- 1 | 2 | addToCart($_POST['user_id'], $_POST['item_id']); 13 | } 14 | } 15 | 16 | $in_cart = $Cart->getCartId($product->getData('cart')); 17 | 18 | ?> 19 |
20 |
21 |

Special Price

22 |
23 | 24 | %s', $brand, $brand); 27 | }, $unique); 28 | ?> 29 |
30 | 31 |
32 | 33 |
"> 34 |
35 |
36 | " alt="product1" class="img-fluid"> 37 |
38 |
39 |
40 | 41 | 42 | 43 | 44 | 45 |
46 |
47 | $ 48 |
49 |
50 | 51 | 52 | In the Cart'; 55 | }else{ 56 | echo ''; 57 | } 58 | ?> 59 |
60 |
61 |
62 |
63 |
64 | 65 |
66 |
67 |
68 | 69 | -------------------------------------------------------------------------------- /mobile_shope/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Mobile Shopee 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 25 | 26 | 27 | 28 | 29 | 30 | 77 | 78 | 79 | 80 |
-------------------------------------------------------------------------------- /mobile_shope/Template/_wishilist_template.php: -------------------------------------------------------------------------------- 1 | 2 | deleteCart($_POST['item_id']); 6 | } 7 | 8 | if(isset($_POST['cart-submit'])){ 9 | $Cart->saveForLater($_POST['item_id'], 'cart', 'wishlist'); 10 | } 11 | } 12 | ?> 13 | 14 |
15 |
16 |
Wishlist
17 | 18 | 19 |
20 |
21 | getData('wishlist') as $item) : 23 | $cart = $product->getProduct($item['item_id']); 24 | $subTotal[] = array_map(function ($item){ 25 | ?> 26 | 27 |
28 |
29 | " style="height: 120px;" alt="cart1" class="img-fluid"> 30 |
31 |
32 |
33 | by 34 | 35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 |
43 | 20,534 ratings 44 |
45 | 46 | 47 | 48 |
49 | 50 |
51 | 52 | 53 |
54 | 55 |
56 | 57 | 58 |
59 | 60 | 61 |
62 | 63 | 64 |
65 | 66 |
67 |
68 | $ 69 |
70 |
71 |
72 | 73 | 78 |
79 |
80 | 81 |
82 |
83 | -------------------------------------------------------------------------------- /mobile_shope/index.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | // banner owl carousel 4 | $("#banner-area .owl-carousel").owlCarousel({ 5 | dots: true, 6 | items: 1 7 | }); 8 | 9 | // top sale owl carousel 10 | $("#top-sale .owl-carousel").owlCarousel({ 11 | loop: true, 12 | nav: true, 13 | dots: false, 14 | responsive : { 15 | 0: { 16 | items: 1 17 | }, 18 | 600: { 19 | items: 3 20 | }, 21 | 1000 : { 22 | items: 5 23 | } 24 | } 25 | }); 26 | 27 | // isotope filter 28 | var $grid = $(".grid").isotope({ 29 | itemSelector : '.grid-item', 30 | layoutMode : 'fitRows' 31 | }); 32 | 33 | // filter items on button click 34 | $(".button-group").on("click", "button", function(){ 35 | var filterValue = $(this).attr('data-filter'); 36 | $grid.isotope({ filter: filterValue}); 37 | }) 38 | 39 | 40 | // new phones owl carousel 41 | $("#new-phones .owl-carousel").owlCarousel({ 42 | loop: true, 43 | nav: false, 44 | dots: true, 45 | responsive : { 46 | 0: { 47 | items: 1 48 | }, 49 | 600: { 50 | items: 3 51 | }, 52 | 1000 : { 53 | items: 5 54 | } 55 | } 56 | }); 57 | 58 | // blogs owl carousel 59 | $("#blogs .owl-carousel").owlCarousel({ 60 | loop: true, 61 | nav: false, 62 | dots: true, 63 | responsive : { 64 | 0: { 65 | items: 1 66 | }, 67 | 600: { 68 | items: 3 69 | } 70 | } 71 | }) 72 | 73 | 74 | // product qty section 75 | let $qty_up = $(".qty .qty-up"); 76 | let $qty_down = $(".qty .qty-down"); 77 | let $deal_price = $("#deal-price"); 78 | // let $input = $(".qty .qty_input"); 79 | 80 | // click on qty up button 81 | $qty_up.click(function(e){ 82 | 83 | let $input = $(`.qty_input[data-id='${$(this).data("id")}']`); 84 | let $price = $(`.product_price[data-id='${$(this).data("id")}']`); 85 | 86 | // change product price using ajax call 87 | $.ajax({url: "template/ajax.php", type : 'post', data : { itemid : $(this).data("id")}, success: function(result){ 88 | let obj = JSON.parse(result); 89 | let item_price = obj[0]['item_price']; 90 | 91 | if($input.val() >= 1 && $input.val() <= 9){ 92 | $input.val(function(i, oldval){ 93 | return ++oldval; 94 | }); 95 | 96 | // increase price of the product 97 | $price.text(parseInt(item_price * $input.val()).toFixed(2)); 98 | 99 | // set subtotal price 100 | let subtotal = parseInt($deal_price.text()) + parseInt(item_price); 101 | $deal_price.text(subtotal.toFixed(2)); 102 | } 103 | 104 | }}); // closing ajax request 105 | }); // closing qty up button 106 | 107 | // click on qty down button 108 | $qty_down.click(function(e){ 109 | 110 | let $input = $(`.qty_input[data-id='${$(this).data("id")}']`); 111 | let $price = $(`.product_price[data-id='${$(this).data("id")}']`); 112 | 113 | // change product price using ajax call 114 | $.ajax({url: "template/ajax.php", type : 'post', data : { itemid : $(this).data("id")}, success: function(result){ 115 | let obj = JSON.parse(result); 116 | let item_price = obj[0]['item_price']; 117 | 118 | if($input.val() > 1 && $input.val() <= 10){ 119 | $input.val(function(i, oldval){ 120 | return --oldval; 121 | }); 122 | 123 | 124 | // increase price of the product 125 | $price.text(parseInt(item_price * $input.val()).toFixed(2)); 126 | 127 | // set subtotal price 128 | let subtotal = parseInt($deal_price.text()) - parseInt(item_price); 129 | $deal_price.text(subtotal.toFixed(2)); 130 | } 131 | 132 | }}); // closing ajax request 133 | }); // closing qty down button 134 | 135 | 136 | }); -------------------------------------------------------------------------------- /mobile_shope/Template/_cart-template.php: -------------------------------------------------------------------------------- 1 | 2 | deleteCart($_POST['item_id']); 6 | } 7 | 8 | // save for later 9 | if (isset($_POST['wishlist-submit'])){ 10 | $Cart->saveForLater($_POST['item_id']); 11 | } 12 | } 13 | ?> 14 | 15 |
16 |
17 |
Shopping Cart
18 | 19 | 20 |
21 |
22 | getData('cart') as $item) : 24 | $cart = $product->getProduct($item['item_id']); 25 | $subTotal[] = array_map(function ($item){ 26 | ?> 27 | 28 |
29 |
30 | " style="height: 120px;" alt="cart1" class="img-fluid"> 31 |
32 |
33 |
34 | by 35 | 36 |
37 |
38 | 39 | 40 | 41 | 42 | 43 |
44 | 20,534 ratings 45 |
46 | 47 | 48 | 49 |
50 |
51 | 52 | 53 | 54 |
55 | 56 |
57 | 58 | 59 |
60 | 61 |
62 | 63 | 64 |
65 | 66 | 67 |
68 | 69 | 70 |
71 | 72 |
73 |
74 | $ 75 |
76 |
77 |
78 | 79 | 84 |
85 | 86 |
87 |
88 |
Your order is eligible for FREE Delivery.
89 |
90 |
Subtotal ( item):  $getSum($subTotal) : 0; ?>
91 | 92 |
93 |
94 |
95 | 96 |
97 | 98 |
99 |
100 | -------------------------------------------------------------------------------- /mobile_shope/database/shopee.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.9.2 3 | -- 4 | -- Host: 127.0.0.1 5 | -- Generation Time: Apr 20, 2020 at 11:01 AM 6 | -- Server version: 10.4.10-MariaDB 7 | -- PHP Version: 7.1.33 8 | 9 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 10 | SET AUTOCOMMIT = 0; 11 | START TRANSACTION; 12 | SET time_zone = "+00:00"; 13 | 14 | 15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 18 | /*!40101 SET NAMES utf8mb4 */; 19 | 20 | -- 21 | -- Database: `shopee` 22 | -- 23 | 24 | -- -------------------------------------------------------- 25 | 26 | -- 27 | -- Table structure for table `cart` 28 | -- 29 | 30 | CREATE TABLE `cart` ( 31 | `cart_id` int(11) NOT NULL, 32 | `user_id` int(11) NOT NULL, 33 | `item_id` int(11) NOT NULL 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 35 | 36 | -- -------------------------------------------------------- 37 | 38 | -- 39 | -- Table structure for table `product` 40 | -- 41 | 42 | CREATE TABLE `product` ( 43 | `item_id` int(11) NOT NULL, 44 | `item_brand` varchar(200) NOT NULL, 45 | `item_name` varchar(255) NOT NULL, 46 | `item_price` double(10,2) NOT NULL, 47 | `item_image` varchar(255) NOT NULL, 48 | `item_register` datetime DEFAULT NULL 49 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 50 | 51 | -- 52 | -- Dumping data for table `product` 53 | -- 54 | 55 | INSERT INTO `product` (`item_id`, `item_brand`, `item_name`, `item_price`, `item_image`, `item_register`) VALUES 56 | (1, 'Samsung', 'Samsung Galaxy 10', 152.00, './assets/products/1.png', '2020-03-28 11:08:57'), -- NOW() 57 | (2, 'Redmi', 'Redmi Note 7', 122.00, './assets/products/2.png', '2020-03-28 11:08:57'), 58 | (3, 'Redmi', 'Redmi Note 6', 122.00, './assets/products/3.png', '2020-03-28 11:08:57'), 59 | (4, 'Redmi', 'Redmi Note 5', 122.00, './assets/products/4.png', '2020-03-28 11:08:57'), 60 | (5, 'Redmi', 'Redmi Note 4', 122.00, './assets/products/5.png', '2020-03-28 11:08:57'), 61 | (6, 'Redmi', 'Redmi Note 8', 122.00, './assets/products/6.png', '2020-03-28 11:08:57'), 62 | (7, 'Redmi', 'Redmi Note 9', 122.00, './assets/products/8.png', '2020-03-28 11:08:57'), 63 | (8, 'Redmi', 'Redmi Note', 122.00, './assets/products/10.png', '2020-03-28 11:08:57'), 64 | (9, 'Samsung', 'Samsung Galaxy S6', 152.00, './assets/products/11.png', '2020-03-28 11:08:57'), 65 | (10, 'Samsung', 'Samsung Galaxy S7', 152.00, './assets/products/12.png', '2020-03-28 11:08:57'), 66 | (11, 'Apple', 'Apple iPhone 5', 152.00, './assets/products/13.png', '2020-03-28 11:08:57'), 67 | (12, 'Apple', 'Apple iPhone 6', 152.00, './assets/products/14.png', '2020-03-28 11:08:57'), 68 | (13, 'Apple', 'Apple iPhone 7', 152.00, './assets/products/15.png', '2020-03-28 11:08:57'); 69 | 70 | -- -------------------------------------------------------- 71 | 72 | -- 73 | -- Table structure for table `user` 74 | -- 75 | 76 | CREATE TABLE `user` ( 77 | `user_id` int(11) NOT NULL, 78 | `first_name` varchar(100) NOT NULL, 79 | `last_name` varchar(100) NOT NULL, 80 | `register_date` datetime DEFAULT NULL 81 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 82 | 83 | -- 84 | -- Dumping data for table `user` 85 | -- 86 | 87 | INSERT INTO `user` (`user_id`, `first_name`, `last_name`, `register_date`) VALUES 88 | (1, 'Daily', 'Tuition', '2020-03-28 13:07:17'), 89 | (2, 'Akshay', 'Kashyap', '2020-03-28 13:07:17'); 90 | 91 | -- -------------------------------------------------------- 92 | 93 | -- 94 | -- Table structure for table `wishlist` 95 | -- 96 | 97 | CREATE TABLE `wishlist` ( 98 | `cart_id` int(11) NOT NULL, 99 | `user_id` int(11) NOT NULL, 100 | `item_id` int(11) NOT NULL 101 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 102 | 103 | -- 104 | -- Indexes for dumped tables 105 | -- 106 | 107 | -- 108 | -- Indexes for table `cart` 109 | -- 110 | ALTER TABLE `cart` 111 | ADD PRIMARY KEY (`cart_id`); 112 | 113 | -- 114 | -- Indexes for table `product` 115 | -- 116 | ALTER TABLE `product` 117 | ADD PRIMARY KEY (`item_id`); 118 | 119 | -- 120 | -- Indexes for table `user` 121 | -- 122 | ALTER TABLE `user` 123 | ADD PRIMARY KEY (`user_id`); 124 | 125 | -- 126 | -- AUTO_INCREMENT for dumped tables 127 | -- 128 | 129 | -- 130 | -- AUTO_INCREMENT for table `cart` 131 | -- 132 | ALTER TABLE `cart` 133 | MODIFY `cart_id` int(11) NOT NULL AUTO_INCREMENT; 134 | 135 | -- 136 | -- AUTO_INCREMENT for table `product` 137 | -- 138 | ALTER TABLE `product` 139 | MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; 140 | 141 | -- 142 | -- AUTO_INCREMENT for table `user` 143 | -- 144 | ALTER TABLE `user` 145 | MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 146 | COMMIT; 147 | 148 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 149 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 150 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 151 | -------------------------------------------------------------------------------- /mobile_shope/Template/_products.php: -------------------------------------------------------------------------------- 1 | 2 | getData() as $item) : 5 | if ($item['item_id'] == $item_id) : 6 | ?> 7 |
8 |
9 |
10 |
11 | " alt="product" class="img-fluid"> 12 |
13 |
14 | 15 |
16 |
17 | getCartId($product->getData('cart')) ?? [])){ 19 | echo ''; 20 | }else{ 21 | echo ''; 22 | } 23 | ?> 24 |
25 |
26 |
27 |
28 |
29 | by 30 |
31 |
32 | 33 | 34 | 35 | 36 | 37 |
38 | 20,534 ratings | 1000+ answered questions 39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
M.R.P:$162.00
Deal Price:$  Inclusive of all taxes
You Save:$152.00
57 | 58 | 59 | 60 |
61 |
62 |
63 |
64 | 65 |
66 | 10 Days
Replacement
67 |
68 |
69 |
70 | 71 |
72 | Daily Tuition
Deliverd
73 |
74 |
75 |
76 | 77 |
78 | 1 Year
Warranty
79 |
80 |
81 |
82 | 83 |
84 | 85 | 86 |
87 | Delivery by : Mar 29 - Apr 1 88 | Sold by Daily Electronics (4.5 out of 5 | 18,198 ratings) 89 |   Deliver to Customer - 424201 90 |
91 | 92 | 93 |
94 |
95 | 96 |
97 |
98 |
Color:
99 |
100 |
101 |
102 |
103 |
104 | 105 |
106 |
107 | 108 |
109 |
Qty
110 |
111 | 112 | 113 | 114 |
115 |
116 | 117 |
118 |
119 | 120 | 121 |
122 |
Size :
123 |
124 |
125 | 126 |
127 |
128 | 129 |
130 |
131 | 132 |
133 |
134 |
135 | 136 | 137 | 138 |
139 | 140 |
141 |
Product Description
142 |
143 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellat inventore vero numquam error est ipsa, consequuntur temporibus debitis nobis sit, delectus officia ducimus dolorum sed corrupti. Sapiente optio sunt provident, accusantium eligendi eius reiciendis animi? Laboriosam, optio qui? Numquam, quo fuga. Maiores minus, accusantium velit numquam a aliquam vitae vel?

144 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellat inventore vero numquam error est ipsa, consequuntur temporibus debitis nobis sit, delectus officia ducimus dolorum sed corrupti. Sapiente optio sunt provident, accusantium eligendi eius reiciendis animi? Laboriosam, optio qui? Numquam, quo fuga. Maiores minus, accusantium velit numquam a aliquam vitae vel?

145 |
146 |
147 |
148 |
149 | 150 | -------------------------------------------------------------------------------- /mobile_shope/html template/cart.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Mobile Shopee 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 71 | 72 | 73 | 74 |
75 | 76 | 77 |
78 |
79 |
Shopping Cart
80 | 81 | 82 |
83 |
84 | 85 |
86 |
87 | cart1 88 |
89 |
90 |
Samsung Galaxy 10
91 | by Samsung 92 | 93 |
94 |
95 | 96 | 97 | 98 | 99 | 100 |
101 | 20,534 ratings 102 |
103 | 104 | 105 | 106 |
107 |
108 | 109 | 110 | 111 |
112 | 113 | 114 |
115 | 116 | 117 |
118 | 119 |
120 |
121 | $152 122 |
123 |
124 |
125 | 126 | 127 |
128 |
129 | cart1 130 |
131 |
132 |
Samsung Galaxy 10
133 | by Samsung 134 | 135 |
136 |
137 | 138 | 139 | 140 | 141 | 142 |
143 | 20,534 ratings 144 |
145 | 146 | 147 | 148 |
149 |
150 | 151 | 152 | 153 |
154 | 155 | 156 |
157 | 158 | 159 |
160 | 161 |
162 |
163 | $152 164 |
165 |
166 |
167 | 168 |
169 | 170 |
171 |
172 |
Your order is eligible for FREE Delivery.
173 |
174 |
Subtotal (2 item):  $152.00
175 | 176 |
177 |
178 |
179 | 180 |
181 | 182 |
183 |
184 | 185 | 186 | 187 |
188 |
189 |

New Phones

190 |
191 | 192 | 193 | 332 | 333 | 334 |
335 |
336 | 337 | 338 |
339 | 340 | 341 | 342 | 381 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | -------------------------------------------------------------------------------- /mobile_shope/html template/product.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | ecommerce 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 69 | 70 | 71 |
72 | 73 | 74 |
75 |
76 |
77 |
78 | product 79 |
80 |
81 | 82 |
83 |
84 | 85 |
86 |
87 |
88 |
89 |
Samsung Galaxy 10
90 | by Samsung 91 |
92 |
93 | 94 | 95 | 96 | 97 | 98 |
99 | 20,534 ratings | 1000+ answered questions 100 |
101 |
102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 |
M.R.P:$162.00
Deal Price:$152.00  Inclusive of all taxes
You Save:$152.00
118 | 119 | 120 | 121 |
122 |
123 |
124 |
125 | 126 |
127 | 10 Days
Replacement
128 |
129 |
130 |
131 | 132 |
133 | Daily Tuition
Deliverd
134 |
135 |
136 |
137 | 138 |
139 | 1 Year
Warranty
140 |
141 |
142 |
143 | 144 |
145 | 146 | 147 |
148 | Delivery by : Mar 29 - Apr 1 149 | Sold by Daily Electronics (4.5 out of 5 | 18,198 ratings) 150 |   Deliver to Customer - 424201 151 |
152 | 153 | 154 |
155 |
156 | 157 |
158 |
159 |
Color:
160 |
161 |
162 |
163 |
164 |
165 | 166 |
167 |
168 | 169 |
170 |
Qty
171 |
172 | 173 | 174 | 175 |
176 |
177 | 178 |
179 |
180 | 181 | 182 |
183 |
Size :
184 |
185 |
186 | 187 |
188 |
189 | 190 |
191 |
192 | 193 |
194 |
195 |
196 | 197 | 198 | 199 |
200 | 201 |
202 |
Product Description
203 |
204 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellat inventore vero numquam error est ipsa, consequuntur temporibus debitis nobis sit, delectus officia ducimus dolorum sed corrupti. Sapiente optio sunt provident, accusantium eligendi eius reiciendis animi? Laboriosam, optio qui? Numquam, quo fuga. Maiores minus, accusantium velit numquam a aliquam vitae vel?

205 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellat inventore vero numquam error est ipsa, consequuntur temporibus debitis nobis sit, delectus officia ducimus dolorum sed corrupti. Sapiente optio sunt provident, accusantium eligendi eius reiciendis animi? Laboriosam, optio qui? Numquam, quo fuga. Maiores minus, accusantium velit numquam a aliquam vitae vel?

206 |
207 |
208 |
209 |
210 | 211 | 212 |
213 |
214 |

Top Sale

215 |
216 | 217 | 356 | 357 |
358 |
359 | 360 | 361 |
362 | 363 | 364 | 403 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | -------------------------------------------------------------------------------- /mobile_shope/html template/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | ecommerce 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 69 | 70 | 71 |
72 | 73 | 86 | 87 | 88 |
89 |
90 |

Top Sale

91 |
92 | 93 | 232 | 233 |
234 |
235 | 236 | 237 | 238 |
239 |
240 |

Special Price

241 |
242 | 243 | 244 | 245 | 246 |
247 | 248 |
249 |
250 |
251 |
252 | product1 253 |
254 |
Apple iPhone 10
255 |
256 | 257 | 258 | 259 | 260 | 261 |
262 |
263 | $152 264 |
265 | 266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 | product1 274 |
275 |
Samsung Galaxy 10
276 |
277 | 278 | 279 | 280 | 281 | 282 |
283 |
284 | $152 285 |
286 | 287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 | product1 295 |
296 |
Redmi Note 7 Pro
297 |
298 | 299 | 300 | 301 | 302 | 303 |
304 |
305 | $152 306 |
307 | 308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 | product1 316 |
317 |
Apple iPhone 10
318 |
319 | 320 | 321 | 322 | 323 | 324 |
325 |
326 | $152 327 |
328 | 329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 | product1 337 |
338 |
Samsung Galaxy 10
339 |
340 | 341 | 342 | 343 | 344 | 345 |
346 |
347 | $152 348 |
349 | 350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 | pro1 359 |
360 |
Redmi Note 7 Pro
361 |
362 | 363 | 364 | 365 | 366 | 367 |
368 |
369 | $152 370 |
371 | 372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 | pro1 382 |
383 |
Redmi Note 7 Pro
384 |
385 | 386 | 387 | 388 | 389 | 390 |
391 |
392 | $152 393 |
394 | 395 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 | pro1 405 |
406 |
Redmi Note 7 Pro
407 |
408 | 409 | 410 | 411 | 412 | 413 |
414 |
415 | $152 416 |
417 | 418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 | pro1 428 |
429 |
Redmi Note 7 Pro
430 |
431 | 432 | 433 | 434 | 435 | 436 |
437 |
438 | $152 439 |
440 | 441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
449 |
450 | pro1 451 |
452 |
Apple iPhone 10
453 |
454 | 455 | 456 | 457 | 458 | 459 |
460 |
461 | $252 462 |
463 | 464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 | 473 | 474 | 480 | 481 | 482 |
483 |
484 |

New Phones

485 |
486 | 487 | 488 | 627 | 628 | 629 |
630 |
631 | 632 | 633 | 634 |
635 |
636 |

Latest Blogs

637 |
638 | 639 | 665 |
666 |
667 | 668 | 669 |
670 | 671 | 672 | 711 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | --------------------------------------------------------------------------------