1 00:00:00,580 --> 00:00:01,240 Welcome back. 2 00:00:01,660 --> 00:00:06,390 Now, what I'm going to do is that I'm going to get all products and display and activate the section. 3 00:00:06,400 --> 00:00:10,390 So we have addresses, we have watches, we have shoes. 4 00:00:10,390 --> 00:00:12,010 So we need to activate all of these. 5 00:00:12,580 --> 00:00:16,990 And to do this, we need to open the index. 6 00:00:16,990 --> 00:00:18,280 I'm going to open up the index. 7 00:00:19,030 --> 00:00:30,400 So in the index here in the index we have here at the top I the header and we need we need to import, 8 00:00:30,790 --> 00:00:31,660 we need to import. 9 00:00:31,660 --> 00:00:38,740 Remember, we need to import the we need to create the file that's going to get these products. 10 00:00:39,640 --> 00:00:46,990 So we need to create a file that that's going to get, which is costs and shoes. 11 00:00:47,410 --> 00:00:49,150 So let me create these files. 12 00:00:49,150 --> 00:00:56,680 I'm going to here in the server, I'm going to create a new file called Get Watches that Reach Me. 13 00:00:57,370 --> 00:00:58,960 And another file called. 14 00:01:00,060 --> 00:01:00,690 Get. 15 00:01:02,050 --> 00:01:10,270 Courts that BHP and we already have the courts so we need to get the issues that BHP. 16 00:01:11,710 --> 00:01:13,810 So we have the courts and we have the issues. 17 00:01:13,810 --> 00:01:17,530 So let me copy because from the from the featured. 18 00:01:18,100 --> 00:01:24,750 So let me here select all and copy and then let me hear pasted in the shoes and pasted also in the watches 19 00:01:25,450 --> 00:01:26,230 and in the courts. 20 00:01:26,230 --> 00:01:28,240 We already have the court here. 21 00:01:28,930 --> 00:01:38,710 So now what I'm going to do is that I'm going to say in the watches, get select all from products and 22 00:01:38,710 --> 00:01:41,410 then limit limits for. 23 00:01:41,920 --> 00:01:48,610 But instead of saying select all from products, we need to add a condition here. 24 00:01:48,610 --> 00:01:51,220 We need to say select all from products. 25 00:01:51,220 --> 00:01:51,730 Where? 26 00:01:53,020 --> 00:01:53,590 Where. 27 00:01:55,570 --> 00:01:56,200 Product. 28 00:01:59,440 --> 00:02:02,800 Category is equal to. 29 00:02:03,460 --> 00:02:04,060 Exactly. 30 00:02:04,060 --> 00:02:04,960 Like the cards here. 31 00:02:05,710 --> 00:02:06,070 So. 32 00:02:06,070 --> 00:02:06,790 Here, watch. 33 00:02:06,790 --> 00:02:07,000 It's. 34 00:02:09,120 --> 00:02:12,630 Watches and hears similarly in the showers. 35 00:02:12,630 --> 00:02:13,590 We need to say where. 36 00:02:16,720 --> 00:02:17,290 Where? 37 00:02:18,680 --> 00:02:19,190 Product. 38 00:02:21,380 --> 00:02:25,880 Category is equal to shoes. 39 00:02:27,320 --> 00:02:33,620 And then, as we did here, we need to create a different variable here. 40 00:02:33,620 --> 00:02:36,380 Let me say here watch is. 41 00:02:38,890 --> 00:02:41,800 Watch, adjust or just watch it or watch it. 42 00:02:42,050 --> 00:02:43,270 Let's let's say watches. 43 00:02:43,960 --> 00:02:45,700 And here in the shoes I'm going to say should. 44 00:02:52,830 --> 00:02:53,330 Shoes. 45 00:02:54,390 --> 00:03:00,030 Now, what we need to do is that we need to save everything and the index. 46 00:03:00,030 --> 00:03:01,320 We need to import these files. 47 00:03:01,830 --> 00:03:03,640 So we need to import them in the correct section. 48 00:03:03,660 --> 00:03:04,860 So we have here the watches. 49 00:03:05,370 --> 00:03:10,020 So in the watches, what I'm going to do is that I'm going to remove all products and I'm going to leave 50 00:03:10,020 --> 00:03:10,530 only one. 51 00:03:11,010 --> 00:03:13,890 So here, starting from here, I'm going to leave this product. 52 00:03:13,900 --> 00:03:22,200 This is the first product, and then I'm going to remove the second, the third and the fourth. 53 00:03:24,150 --> 00:03:28,260 Similarly, with the shoes I'm going to remove, I'm going to keep only one product here. 54 00:03:29,540 --> 00:03:30,050 This. 55 00:03:31,050 --> 00:03:33,090 And then I'm going to remove the second. 56 00:03:36,640 --> 00:03:37,360 The third. 57 00:03:40,150 --> 00:03:40,990 And the last one. 58 00:03:45,980 --> 00:03:50,870 And be very careful because you wouldn't want to do it to remove something you want to use. 59 00:03:51,980 --> 00:03:52,940 Also in the courts. 60 00:03:54,120 --> 00:03:57,330 Or actually, it's it's the clock. 61 00:03:58,350 --> 00:03:59,580 So here we need to. 62 00:03:59,610 --> 00:04:03,090 We already worked on this, so there's no need to do anything. 63 00:04:03,930 --> 00:04:05,400 Now, let me refresh. 64 00:04:06,960 --> 00:04:10,380 And now, as you can see, we have one watch and one shoes. 65 00:04:10,950 --> 00:04:15,450 And here this we we have already worked on this earlier. 66 00:04:16,530 --> 00:04:20,610 But for the gloves here, we need to activate the button. 67 00:04:21,060 --> 00:04:22,380 We need to activate this button. 68 00:04:22,500 --> 00:04:23,010 Right. 69 00:04:23,010 --> 00:04:27,720 Adjust just just like we did here with the single product. 70 00:04:27,720 --> 00:04:29,940 So I'm going to copy this line of good. 71 00:04:32,160 --> 00:04:33,810 And then I'm going to sit here in the. 72 00:04:35,010 --> 00:04:36,060 And the gloves. 73 00:04:37,080 --> 00:04:38,070 And instead of this button. 74 00:04:40,390 --> 00:04:41,740 And let me test. 75 00:04:43,060 --> 00:04:44,920 So the clock should work now. 76 00:04:45,100 --> 00:04:46,030 Click on Add to Cart. 77 00:04:46,030 --> 00:04:50,080 It's going to it's going to go to the single product page. 78 00:04:50,590 --> 00:04:52,270 Now let's work on the watches. 79 00:04:52,630 --> 00:04:57,850 So for the watches or the watches here, I'm going to create a loop. 80 00:04:57,850 --> 00:04:58,960 I'm going to say we. 81 00:05:00,870 --> 00:05:05,490 BHP and then instead of creating the loop, maybe copy it from here. 82 00:05:09,950 --> 00:05:13,250 I'm not I'm going to sit here and we're going to change the variable. 83 00:05:13,250 --> 00:05:16,730 So the variable is here for watches is obviously watches. 84 00:05:17,360 --> 00:05:18,140 Watches. 85 00:05:20,330 --> 00:05:21,320 Watches. 86 00:05:21,830 --> 00:05:23,480 Fetch us await at the end. 87 00:05:23,480 --> 00:05:27,530 We need to use the clause that BHP clearly bracket. 88 00:05:29,580 --> 00:05:39,510 And in between we need to display the here, the product name, BHP and then echo. 89 00:05:41,370 --> 00:05:43,330 Ra ra ra technique. 90 00:05:44,820 --> 00:05:45,450 Project. 91 00:05:46,880 --> 00:05:47,390 Name. 92 00:05:49,270 --> 00:05:50,530 And then project Bryce. 93 00:05:55,710 --> 00:05:57,990 Echo Ra. 94 00:06:00,050 --> 00:06:00,650 Product. 95 00:06:02,700 --> 00:06:03,020 Right. 96 00:06:04,170 --> 00:06:06,120 And lastly, we need to display the baton. 97 00:06:06,120 --> 00:06:07,720 So I'm going to hit the button from here. 98 00:06:08,340 --> 00:06:09,180 We have this button. 99 00:06:11,970 --> 00:06:12,250 I'm going. 100 00:06:12,270 --> 00:06:13,080 I'm going to sit here. 101 00:06:17,980 --> 00:06:18,640 For the image. 102 00:06:18,640 --> 00:06:19,930 We already worked on the image. 103 00:06:19,940 --> 00:06:22,900 So instead of repeating this, I'm going to get the image from here. 104 00:06:23,680 --> 00:06:27,640 I'm going to copy this and then I'm going to paste it below. 105 00:06:31,080 --> 00:06:36,300 Similarly for for for these shoes, we need to do the same. 106 00:06:36,300 --> 00:06:38,010 So I'm going to copy most of the code. 107 00:06:38,010 --> 00:06:41,160 I'm going to copy this, then I'm going to add it here. 108 00:06:43,640 --> 00:06:46,550 And then I'm going to copy the image. 109 00:06:49,260 --> 00:06:50,580 And then I'm going to sit here. 110 00:06:55,000 --> 00:06:57,530 And lastly, I'm going to copy the three lines. 111 00:06:57,550 --> 00:06:59,020 These three lines, actually. 112 00:06:59,830 --> 00:07:00,860 Yes, these three lines. 113 00:07:00,890 --> 00:07:03,310 I'm going to copy these three lines because the artist missing. 114 00:07:04,030 --> 00:07:07,450 And then I'm going to paste base them here instead of these static lines. 115 00:07:08,260 --> 00:07:13,180 And finally, don't forget to close here, the BHP curly brackets. 116 00:07:15,950 --> 00:07:19,730 Finally, there is a problem that we need to work on, which is importing the files. 117 00:07:20,090 --> 00:07:23,220 So you need to import the files right above the loop. 118 00:07:23,240 --> 00:07:28,160 So here I'm going to say BHP and then for the shoes, for the watches. 119 00:07:28,160 --> 00:07:36,360 First we need to say include include server server for us. 120 00:07:36,390 --> 00:07:40,760 Let's get get watches here. 121 00:07:41,630 --> 00:07:45,140 And for the above the shows we need also to say. 122 00:07:47,410 --> 00:07:48,030 BHP. 123 00:07:49,990 --> 00:07:52,750 Include server. 124 00:07:56,200 --> 00:08:08,230 Server or slash get choose and let me save on let me refresh now I don't I, I don't have I don't think 125 00:08:08,230 --> 00:08:11,620 that they have shoes and watches, therefore I'm going to get nothing. 126 00:08:11,950 --> 00:08:18,700 So the next step is that I'm going to fill up my database with watches and choose before I test. 127 00:08:18,700 --> 00:08:24,700 Because as you can see, there is nothing because I didn't add shows or what is in my database in my 128 00:08:26,620 --> 00:08:27,730 products table.