1 00:00:00,300 --> 00:00:06,500 All right, so let's set up the totals next and first, of course, I'm going to jump to that component. 2 00:00:06,930 --> 00:00:11,040 And as far as the imports we have reac, we have stalled components. 3 00:00:11,190 --> 00:00:17,610 We have used car context because I would want to grab the total amount and the shipping fee from my 4 00:00:17,610 --> 00:00:18,060 contacts. 5 00:00:18,240 --> 00:00:22,500 And remember, since we passed in the whole state, we should have access to that. 6 00:00:22,800 --> 00:00:28,410 Then there's also going to be a user context and I'm going to cover that once we get there, more about 7 00:00:28,410 --> 00:00:28,530 it. 8 00:00:28,860 --> 00:00:34,200 And and here we have for my price, because, of course, remember that since we have everything in 9 00:00:34,200 --> 00:00:37,050 a sense, we would want to format the price as well. 10 00:00:37,360 --> 00:00:42,390 And then, of course, there is a link component, because if we take a look at the complete project, 11 00:00:42,780 --> 00:00:51,240 either this is going to direct us a login if we haven't logged in or we have option to go to the checkout 12 00:00:51,240 --> 00:00:54,450 if, of course, we have already logged in. 13 00:00:54,840 --> 00:00:59,130 So I'll start with my return where I'm going to set up my wrapper. 14 00:00:59,730 --> 00:01:05,960 And as far as the totals, we're just going to set up our div and go back here. 15 00:01:06,510 --> 00:01:08,030 So let's set up there. 16 00:01:08,520 --> 00:01:11,400 Now, it's not going to have class is just going to have a article. 17 00:01:12,290 --> 00:01:18,920 So let's set up our article over here and then instead of the article, let's go with a heading five 18 00:01:19,490 --> 00:01:21,740 and we'll just type subtotal. 19 00:01:21,950 --> 00:01:23,090 So some kind of text. 20 00:01:23,510 --> 00:01:27,940 And then in spite of the span, I would want to format the price. 21 00:01:28,340 --> 00:01:30,050 So let's set up our expression. 22 00:01:31,330 --> 00:01:35,150 Format price, and then, of course, will pass in the total amount. 23 00:01:35,360 --> 00:01:42,520 Now, before I do that, of course, I would need to get it from used car context accounts and the total 24 00:01:42,550 --> 00:01:46,750 amount, total amount and the shipping fee. 25 00:01:47,140 --> 00:01:50,920 So those are two things that we're looking for and used car complex. 26 00:01:51,200 --> 00:01:57,220 And then, of course, we invokana so now in the total price, I'll pass in total amount, which of 27 00:01:57,220 --> 00:01:59,460 course at the moment will be zero. 28 00:01:59,800 --> 00:02:00,690 So don't freak out. 29 00:02:00,960 --> 00:02:05,560 Of course, eventually we will set up the functionality where we count how many items and we have the 30 00:02:05,560 --> 00:02:11,140 card and then we can nicely display what is the total amount of items. 31 00:02:11,620 --> 00:02:14,290 And then we'll set up the paragraph. 32 00:02:14,710 --> 00:02:17,920 Pretty much the same structure will have some kind of text. 33 00:02:19,310 --> 00:02:25,940 And then we'll set up the span where we have our expression for my price, and then in this case, of 34 00:02:25,940 --> 00:02:32,390 course, we're passing in the shipping fee, we say red line right after the paragraph. 35 00:02:32,390 --> 00:02:37,790 There's going to be a horizontal line like so we say that one as well. 36 00:02:38,180 --> 00:02:41,630 And then we have a heading for with our total. 37 00:02:42,050 --> 00:02:44,090 So we go with order total. 38 00:02:44,480 --> 00:02:45,740 Again, the same thing. 39 00:02:46,320 --> 00:02:53,720 We just go with spane and then we form that price format for Matt Price. 40 00:02:53,960 --> 00:02:59,110 And in this case, I would want to pass in the total amount plus the shipping fee. 41 00:02:59,600 --> 00:03:00,440 So both of them. 42 00:03:00,790 --> 00:03:01,680 What's this one? 43 00:03:02,000 --> 00:03:04,210 And of course, there is going to be a total. 44 00:03:04,610 --> 00:03:11,740 And then lastly, right next to the article, but still within there, I'm going to set up a link for 45 00:03:11,740 --> 00:03:14,170 the time being back to the checkout page. 46 00:03:14,600 --> 00:03:19,430 So say here's a link to and then we need to provide a value. 47 00:03:19,430 --> 00:03:23,960 So check out like so our class name of Beaton. 48 00:03:24,320 --> 00:03:26,840 And as far as the text, let's just. 49 00:03:26,840 --> 00:03:27,140 Right. 50 00:03:27,140 --> 00:03:30,110 Proceed to check out. 51 00:03:30,960 --> 00:03:40,530 OK, beautiful, we save it and we should have well, that should do it for court totals and deal with 52 00:03:40,530 --> 00:03:42,900 the big beast with a court item.