1 00:00:01,000 --> 00:00:01,660 Welcome back. 2 00:00:01,960 --> 00:00:05,050 Now, what we need to do is that we need to work on the products. 3 00:00:05,440 --> 00:00:08,090 So what I'm going to do is that I'm going to open up a new. 4 00:00:08,110 --> 00:00:13,240 I'm going to create a new file for the products here in the admin environment. 5 00:00:13,240 --> 00:00:16,960 Let me close down everything because we don't need any of these. 6 00:00:17,470 --> 00:00:22,510 Now in the admin we need to add we need to create a new file here. 7 00:00:22,510 --> 00:00:30,340 I'm going to create a new file called Products Products that unfortunately the code is going to be very 8 00:00:30,340 --> 00:00:34,960 similar to the to the orders to the index. 9 00:00:35,380 --> 00:00:38,650 So I'm going to copy the code from the index and then I'm going to basically in the products. 10 00:00:39,190 --> 00:00:41,260 However, we need to edit a few things. 11 00:00:41,860 --> 00:00:43,360 Let's start from the beginning. 12 00:00:43,390 --> 00:00:49,000 From the beginning we need the header and then we need to make sure that the user is logged in and then 13 00:00:49,000 --> 00:00:50,130 we need to assassination. 14 00:00:50,140 --> 00:00:59,290 However, we need to say select account all from as total records from products and then we need to 15 00:00:59,290 --> 00:01:03,040 say execute, bind, result, everything's fine. 16 00:01:03,490 --> 00:01:10,000 And then we need to say, by the way, this idea, I'm not going to be using it, you can use it, but 17 00:01:10,000 --> 00:01:15,490 it's I don't think that we need it anymore, but let's keep it. 18 00:01:15,490 --> 00:01:25,540 In case you want to add more features, then we can say gone, prepare, select all from products and 19 00:01:25,540 --> 00:01:26,080 then. 20 00:01:27,380 --> 00:01:31,440 We say statement execute and then products. 21 00:01:31,980 --> 00:01:40,490 Products is equal to statement gets result and then we scroll and the year we say products products 22 00:01:41,780 --> 00:01:55,700 and here we say product I.D. or ID and then product name, product name and then product product. 23 00:01:57,320 --> 00:01:59,750 Let's display the product price. 24 00:02:01,860 --> 00:02:04,250 And then product. 25 00:02:06,660 --> 00:02:09,810 Actually, I think the image is better to display the image. 26 00:02:09,810 --> 00:02:13,410 First, let me say your image first. 27 00:02:14,970 --> 00:02:15,930 So I'm going to say here. 28 00:02:17,410 --> 00:02:18,540 Product image. 29 00:02:23,140 --> 00:02:27,970 Product image and the name price. 30 00:02:29,530 --> 00:02:34,140 Also, we have category and we have color. 31 00:02:34,150 --> 00:02:36,790 You can display everything product. 32 00:02:38,750 --> 00:02:39,150 Color. 33 00:02:40,100 --> 00:02:44,120 And we also have the special offer, if you want to add special offer. 34 00:02:50,170 --> 00:02:50,890 Product. 35 00:02:53,280 --> 00:02:53,910 Of her. 36 00:02:55,690 --> 00:02:57,520 And that's it, Laney. 37 00:02:58,030 --> 00:03:02,260 Now add also the edit and delete. 38 00:03:03,160 --> 00:03:05,770 So here we have. 39 00:03:07,190 --> 00:03:17,130 Um, product news we need to say products as product, product and then product. 40 00:03:18,220 --> 00:03:28,630 And then product ready and then or product product and then product image. 41 00:03:30,130 --> 00:03:33,430 And the by the way, the image cannot be like this cannot be displayed like this. 42 00:03:33,430 --> 00:03:34,940 We need to use image here. 43 00:03:34,940 --> 00:03:46,510 We say image and then sauce is equal to and then B2B and then we see we see we said we display the image, 44 00:03:46,510 --> 00:03:50,350 but we need to add that because we need to go back first. 45 00:03:51,070 --> 00:03:55,720 We need to go back from this admin and then we need to enter the assets. 46 00:03:56,440 --> 00:03:57,670 We need to say assets. 47 00:03:59,600 --> 00:04:04,490 Let me say let me hear, say, say before or after the echo. 48 00:04:04,490 --> 00:04:07,150 I'm going to say that the assets. 49 00:04:08,060 --> 00:04:09,500 Assets for life image. 50 00:04:10,750 --> 00:04:12,010 Assets images. 51 00:04:13,740 --> 00:04:14,400 Assets. 52 00:04:14,670 --> 00:04:15,300 Images. 53 00:04:18,010 --> 00:04:18,760 And then. 54 00:04:20,480 --> 00:04:23,870 First lash, then dot and then product image. 55 00:04:24,920 --> 00:04:26,180 This is for the image. 56 00:04:26,180 --> 00:04:30,080 And it's important also to say style and then when. 57 00:04:32,100 --> 00:04:33,960 76. 58 00:04:36,090 --> 00:04:37,140 And also high. 59 00:04:39,120 --> 00:04:39,990 70. 60 00:04:42,500 --> 00:04:45,320 Next, we need to display the products. 61 00:04:47,830 --> 00:04:48,370 Name. 62 00:04:51,760 --> 00:04:52,390 Product name. 63 00:04:56,140 --> 00:04:58,510 And then product by product price. 64 00:05:06,200 --> 00:05:07,190 And then project. 65 00:05:09,910 --> 00:05:12,160 Special offer. 66 00:05:13,760 --> 00:05:15,890 And then the category and the color. 67 00:05:27,690 --> 00:05:29,640 Category and color. 68 00:05:34,740 --> 00:05:35,310 Product. 69 00:05:37,270 --> 00:05:37,690 Color. 70 00:05:38,710 --> 00:05:42,130 Let me now save on let me head on over to the browser. 71 00:05:42,160 --> 00:05:44,150 Let me make sure that they don't have any problems. 72 00:05:44,150 --> 00:05:44,920 So that's it. 73 00:05:45,550 --> 00:05:46,900 Let me now refresh. 74 00:05:47,440 --> 00:05:51,120 And here, if I click on products, I have a problem. 75 00:05:51,130 --> 00:05:58,750 So in line 110, so in line 110, we have a problem here, 110. 76 00:05:58,750 --> 00:06:03,130 So we should say product products. 77 00:06:05,000 --> 00:06:06,700 So let me refresh one more time. 78 00:06:06,710 --> 00:06:08,240 And we have all of the products. 79 00:06:08,240 --> 00:06:10,480 As you can see, it looks outstanding. 80 00:06:10,490 --> 00:06:12,520 I can't believe how awesome this is. 81 00:06:12,530 --> 00:06:16,790 As you can see here, all of the products that you have, all of the products and they are paginated 82 00:06:16,790 --> 00:06:20,180 you can click on to and you are going to get more products. 83 00:06:20,690 --> 00:06:22,010 You can click on next. 84 00:06:22,310 --> 00:06:25,520 Next, you are going to just keep getting more products. 85 00:06:26,180 --> 00:06:27,260 It's just amazing. 86 00:06:28,040 --> 00:06:29,420 It's just amazing. 87 00:06:30,110 --> 00:06:35,660 And if you want to display the dollar sign right here, you can say here. 88 00:06:36,740 --> 00:06:44,450 Echo and then dollar sign and then dot and then the product price. 89 00:06:45,290 --> 00:06:54,020 And here also you can see a product special offer and then dot and then you can display percentage because 90 00:06:54,020 --> 00:06:59,960 the special offer is going to be percent percentage, percentage like this and then semicolon. 91 00:07:01,450 --> 00:07:07,990 Now we are going to get percentages here and here the prices so it now it's amazing.