1
00:00:00,120 --> 00:00:01,740
Hello, friend, welcome back.

2
00:00:01,890 --> 00:00:08,040
In a previous video, we successfully complete our production, that is all that our product is now

3
00:00:08,040 --> 00:00:13,130
visible and also here and I have created one of the filter for display all that hour order.

4
00:00:13,140 --> 00:00:13,380
Right.

5
00:00:13,740 --> 00:00:15,270
So right now, there are the four products.

6
00:00:15,270 --> 00:00:18,420
So right now we're showing our four product card on here.

7
00:00:18,840 --> 00:00:24,000
So now I want to do want to work for our Distomo card, because if you click on the remove card, then

8
00:00:24,000 --> 00:00:29,460
automatically it will be removed from from two of displays if you will be removed from our order.

9
00:00:29,670 --> 00:00:35,030
And also it should be removed from our card right through the card that the full product right now.

10
00:00:35,040 --> 00:00:41,310
And also, if you refresh it like it is to the order and the order, there is a four products automatically

11
00:00:41,340 --> 00:00:44,780
it will be removed from here and also will be removed from this position.

12
00:00:45,240 --> 00:00:49,020
So for doing this, we have to do have to create one of the functions for this one.

13
00:00:49,050 --> 00:00:50,490
So now go to our view.

14
00:00:50,970 --> 00:00:54,230
That was in our app order into the airport that there is a view.

15
00:00:54,810 --> 00:00:57,330
So right now we don't need this.

16
00:00:57,480 --> 00:00:58,760
There is a card filter.

17
00:00:58,770 --> 00:00:59,580
We don't need this.

18
00:00:59,600 --> 00:01:00,990
No, we don't need this.

19
00:01:01,450 --> 00:01:03,240
OK, there is a model will be needed.

20
00:01:03,250 --> 00:01:05,910
There is a view perfect into the view area.

21
00:01:05,910 --> 00:01:06,930
I want to do after this.

22
00:01:06,930 --> 00:01:10,050
I want to create another one, which will be also as a logging liquid.

23
00:01:10,920 --> 00:01:18,030
So here after this, I just simply defended the logging record and then I define the function name as

24
00:01:18,030 --> 00:01:27,750
a dev and then I name it as a remove, OK, remove underscore from GOC, so I just name it as a remove

25
00:01:27,750 --> 00:01:28,380
from cart.

26
00:01:28,770 --> 00:01:34,050
And then also here we have to do we have to remove it with a specific one died because of all every

27
00:01:34,050 --> 00:01:36,030
product that have some of the specific IP.

28
00:01:36,030 --> 00:01:36,330
Right.

29
00:01:36,390 --> 00:01:39,180
So we have to also remove it with a specific commodity.

30
00:01:39,180 --> 00:01:45,090
So for the reasons here, we have to define the request and then our idea just name it with the picture.

31
00:01:45,090 --> 00:01:46,220
That is our primary key.

32
00:01:46,980 --> 00:01:48,360
I think you already know about it.

33
00:01:48,360 --> 00:01:54,270
And then also here we have to do first of all, we have to check this item object is our appropriate

34
00:01:54,270 --> 00:01:55,460
idea, object or not.

35
00:01:55,500 --> 00:01:59,020
So here I take on the variable as it item, OK, item.

36
00:01:59,040 --> 00:02:06,750
And then here I already found the already from the function so that the cloud function class at the

37
00:02:06,750 --> 00:02:08,730
gate object our four zero four.

38
00:02:08,730 --> 00:02:08,990
Right.

39
00:02:09,000 --> 00:02:12,310
If you get that object then it should be for that four zero four.

40
00:02:12,840 --> 00:02:16,100
So now with this, with this we can actually defining it.

41
00:02:16,110 --> 00:02:19,200
So get object our four zero four here.

42
00:02:19,200 --> 00:02:24,480
With this I define our product model because frankly, the product model, we have to get it.

43
00:02:24,480 --> 00:02:31,140
So there is a product model and then here to be our primary key and this is our database will fill them

44
00:02:31,140 --> 00:02:34,640
as ID and it'll be equal to our distinguished it.

45
00:02:34,890 --> 00:02:36,150
So I just simply defining it.

46
00:02:36,600 --> 00:02:40,580
And after that I want to do I want to get all the tower ordered object data.

47
00:02:40,980 --> 00:02:46,560
So that is our in order because in the order object, as I told you, I wanted to be delectably to be

48
00:02:46,680 --> 00:02:48,140
letter from two of this area.

49
00:02:48,180 --> 00:02:51,990
It should also be looked at from our order and also somebody like it from our cart.

50
00:02:51,990 --> 00:02:52,320
Right.

51
00:02:52,860 --> 00:02:56,130
So for the reasons here we have to do we have to define our order.

52
00:02:56,220 --> 00:03:01,860
That means so with this order class, I want to get all that our object and also I want to filter it.

53
00:03:01,860 --> 00:03:04,850
So here I take one of the variable as the order.

54
00:03:05,160 --> 00:03:09,750
OK, order underscore underscore cubists.

55
00:03:10,020 --> 00:03:17,980
So here defining it and then our order, our order object and we decide object that if another object.

56
00:03:18,900 --> 00:03:25,530
So with this object on the filter it's just really want to filter OK and filter our user so that the

57
00:03:25,680 --> 00:03:27,960
user will be our requested user.

58
00:03:28,780 --> 00:03:29,970
So should we check it?

59
00:03:29,970 --> 00:03:33,090
And also our order file will be as a false.

60
00:03:33,090 --> 00:03:35,640
That means our disorder will be as a false.

61
00:03:35,670 --> 00:03:42,970
OK, so just simply defined as ordered so that they are ordered and ordered will be as a false say,

62
00:03:43,020 --> 00:03:44,400
just simply defined as a false.

63
00:03:44,790 --> 00:03:49,860
So here I take all that, our incomplete order and I take the things with this variable.

64
00:03:49,860 --> 00:03:52,550
So now here I want to define some of the condition.

65
00:03:52,620 --> 00:03:58,380
OK, so after this, how to define the condition as if our disorder is already exist.

66
00:03:59,600 --> 00:04:05,670
OK, if these orders exist, then we have to do, first of all, take the things to convert it to our

67
00:04:05,670 --> 00:04:11,910
object, say just simply define the order and disorder, all the data I converted it that we are all

68
00:04:11,910 --> 00:04:14,940
the pending, that I take the things with this here.

69
00:04:14,940 --> 00:04:18,690
I don't want to convert it and convert with our zero object.

70
00:04:18,690 --> 00:04:20,460
So I just simply define that zero.

71
00:04:20,640 --> 00:04:24,390
And then also we have to get our all the talk card for product data.

72
00:04:24,390 --> 00:04:32,460
So far, this is here at another condition of the if our order and with this order, that is our order

73
00:04:32,640 --> 00:04:34,410
item and we decide item here.

74
00:04:34,410 --> 00:04:37,680
I have already called the man to man relationship.

75
00:04:37,710 --> 00:04:41,640
But so this management relationship, I want to access our another one.

76
00:04:41,910 --> 00:04:46,970
That means this order so aspecific for this order that have signed the card in the product area.

77
00:04:46,980 --> 00:04:47,250
Right.

78
00:04:47,270 --> 00:04:48,440
So now I want to access it.

79
00:04:48,450 --> 00:04:51,740
So if you want to access it, we have to define that things with our distillation.

80
00:04:52,080 --> 00:04:56,080
So here our model relationship, I have defined that name with our order item.

81
00:04:56,730 --> 00:04:59,880
So now here I want to do and we define our with this sort.

82
00:05:00,610 --> 00:05:07,360
Our order item, so here I define a water filter, OK, with this, I want to filter it and I want the

83
00:05:07,360 --> 00:05:11,950
filter it with our item item will be at the same as item.

84
00:05:12,240 --> 00:05:17,590
OK, that means our this item will be matched with our this item.

85
00:05:17,650 --> 00:05:19,340
OK, that means this item will be match.

86
00:05:19,690 --> 00:05:21,360
So I just simply defend both of these.

87
00:05:21,370 --> 00:05:24,970
And here after this I want to do to defend that as they exist.

88
00:05:25,600 --> 00:05:30,680
If it exists then I want to do I want to get all the tower card of the data.

89
00:05:30,700 --> 00:05:33,430
So just name it the order underscore item.

90
00:05:34,150 --> 00:05:35,640
I just name it as order item.

91
00:05:35,650 --> 00:05:42,430
And here with our card model, be the card model, I get all the other objects and then I want to filter

92
00:05:42,430 --> 00:05:42,760
it.

93
00:05:43,450 --> 00:05:52,480
So I want to fill out to filter it and filter it with our item will be the same that this item will

94
00:05:52,480 --> 00:05:58,060
be our item and also our user user will be our requested user.

95
00:05:58,870 --> 00:06:01,480
So requested user perfect.

96
00:06:01,780 --> 00:06:03,400
And also into the.

97
00:06:04,480 --> 00:06:10,000
Order area that was know Khateeb, if you go here also they have the parties, the parties will be as

98
00:06:10,000 --> 00:06:10,520
a false.

99
00:06:10,600 --> 00:06:10,860
Right.

100
00:06:11,080 --> 00:06:12,540
Also here we have to defining it.

101
00:06:12,940 --> 00:06:14,590
So I just simply defined the parties.

102
00:06:15,130 --> 00:06:16,990
Parties will be as a false.

103
00:06:19,720 --> 00:06:21,280
OK, this will be as a false.

104
00:06:21,280 --> 00:06:27,550
And here also under the underpass over this object data that this object I got this order auroral,

105
00:06:27,550 --> 00:06:32,950
that object data here, I just simply pass it a friend and then I don't want to remove it.

106
00:06:32,950 --> 00:06:34,520
That is when our card.

107
00:06:34,550 --> 00:06:38,010
So here I have already defined all that object card data.

108
00:06:38,230 --> 00:06:41,310
So when it should be matched then I want to do and to remove this.

109
00:06:41,320 --> 00:06:47,410
OK, that means when you move it forward to check this data in our order.

110
00:06:47,620 --> 00:06:53,140
And how many of these items will be matched with our discard item, that means that electrocardiogram

111
00:06:53,140 --> 00:06:56,130
product right there is also considered to the item one.

112
00:06:56,140 --> 00:06:57,880
It shall be matched then I want to remove it.

113
00:06:58,180 --> 00:07:03,550
So for the reasons here, I already get our all that object data with the filtering with with our item

114
00:07:03,550 --> 00:07:08,870
will be matched with our same item use that will be our requested user and also purchase will be as

115
00:07:08,870 --> 00:07:09,370
a false.

116
00:07:09,730 --> 00:07:12,250
That means this product is a pending process.

117
00:07:12,700 --> 00:07:16,920
Boundaries are parties is not completed, so I don't want to remove it.

118
00:07:16,930 --> 00:07:23,140
So here with our order, so with our order, I have defined the relationship with our order items.

119
00:07:23,650 --> 00:07:25,840
So the regular order items.

120
00:07:26,110 --> 00:07:30,040
So these are the items I want to define on not one of the function as a remote.

121
00:07:31,000 --> 00:07:32,540
So to simply define the remote.

122
00:07:32,620 --> 00:07:34,720
So here I want to do and remove it.

123
00:07:34,750 --> 00:07:37,780
OK, remove our this ordered item.

124
00:07:37,780 --> 00:07:40,570
That means these are items I just simply pass it on here.

125
00:07:40,690 --> 00:07:42,520
And after that I want to do under directive.

126
00:07:42,620 --> 00:07:47,320
That means our order, this order item like this or that item will be delectables.

127
00:07:47,320 --> 00:07:51,490
I just simply defined the direct set as simply defined as the direct.

128
00:07:51,820 --> 00:07:55,470
And I want to be accounted for some of the message with our messages.

129
00:07:55,480 --> 00:07:59,080
So this message is better here.

130
00:07:59,270 --> 00:08:06,580
OK, with these messages I want to show on the morning tag warning tag and the warning tag will be at

131
00:08:06,580 --> 00:08:07,450
the request.

132
00:08:07,450 --> 00:08:16,900
And with this request and the source of the message of this item was removed, OK, removed from your

133
00:08:16,900 --> 00:08:17,350
card.

134
00:08:18,130 --> 00:08:25,240
So this type of want the message to display and also after that is to be written, I define a return,

135
00:08:25,240 --> 00:08:32,980
redirect, redirect, OK, return, redirect and it will be returned redirect to our same.

136
00:08:33,310 --> 00:08:37,650
That means our discard base like that in this card base.

137
00:08:37,660 --> 00:08:39,580
So here I have already created that order.

138
00:08:40,030 --> 00:08:43,330
So here I just simply defined that position.

139
00:08:43,330 --> 00:08:46,000
So it'll be in our app order.

140
00:08:47,290 --> 00:08:55,420
Let me see your app order I have created as a vehicle to you or else I have created as the app ordered

141
00:08:55,420 --> 00:08:56,220
that your card.

142
00:08:56,230 --> 00:08:56,580
Right.

143
00:08:56,710 --> 00:08:58,750
So now I just simply defined I was a card.

144
00:08:59,020 --> 00:08:59,500
Perfect.

145
00:08:59,500 --> 00:09:01,330
And we know what this condition will be.

146
00:09:01,330 --> 00:09:01,870
False.

147
00:09:01,870 --> 00:09:04,260
Then it will be written on another message.

148
00:09:04,390 --> 00:09:11,680
So here I just simply somebody the else ok ls that is in our D.C. condition will be as a false then

149
00:09:11,680 --> 00:09:13,680
it will be show another message.

150
00:09:13,690 --> 00:09:20,560
I just simply the messages and then I take the info tag right now and then with the request I want to

151
00:09:20,560 --> 00:09:27,910
do and the pass on the message as a this item was not in your cart.

152
00:09:28,780 --> 00:09:36,310
So this of one of the message visible, OK, and after that I returned it, I return redirect, I return

153
00:09:36,310 --> 00:09:43,570
redirect to our home base, seems to be addicted to our app underscore shop and then our home.

154
00:09:44,530 --> 00:09:50,290
OK, a friend and also else we have to do have to define another thing that means our D if conditioned

155
00:09:50,290 --> 00:09:57,490
area seem to this only scenario defined as the ls ls it mean sexually when I want to do when this our

156
00:09:57,490 --> 00:09:59,590
total order will be removed.

157
00:09:59,590 --> 00:10:01,930
That means that they have the right now the for order.

158
00:10:02,230 --> 00:10:07,660
So if you remove past one second one third one and the fourth one and then it will be as empty.

159
00:10:07,660 --> 00:10:07,850
Right.

160
00:10:07,880 --> 00:10:09,430
Someone else will be as empty.

161
00:10:09,430 --> 00:10:09,870
I want to do.

162
00:10:09,880 --> 00:10:12,500
And to make the things to return to our home page.

163
00:10:12,550 --> 00:10:19,600
OK, so here I want to define that conditioning or else area that this area so should be just like the

164
00:10:19,600 --> 00:10:21,130
same as the messages.

165
00:10:21,640 --> 00:10:27,160
And here I define that in foregoing info and then request.

166
00:10:27,160 --> 00:10:40,030
And if this request I want to pass on the message as a you don't sorry, you don't have an active active

167
00:10:40,150 --> 00:10:44,770
order, so just name it as a you don't have active order.

168
00:10:44,770 --> 00:10:48,400
It should be done, be done and then redirect.

169
00:10:51,550 --> 00:10:54,070
It should be as a return redirect to our form.

170
00:10:54,070 --> 00:10:58,420
So here in our app shop and then our form.

171
00:10:58,750 --> 00:10:59,170
Right.

172
00:10:59,320 --> 00:11:03,820
And after that we have to do we have to create one on the wall for this one for X says DSR.

173
00:11:03,970 --> 00:11:10,300
This function so good for you all, that means in our app order and really you are right.

174
00:11:10,770 --> 00:11:12,470
So did the app order you all here?

175
00:11:12,490 --> 00:11:14,100
I wanted to create another one.

176
00:11:14,110 --> 00:11:19,780
So here also we have to define all the ID because of all.

177
00:11:19,780 --> 00:11:23,740
If you go our view here, you can certainly find all the requested on the I.D..

178
00:11:23,800 --> 00:11:31,810
We also have to do final data and here I name it as a remote, OK, it be as removed with the idea and

179
00:11:31,810 --> 00:11:33,660
then a different name is removed.

180
00:11:33,670 --> 00:11:40,090
And in our view area, I have played around the function name as a remove from card, so I just simply

181
00:11:40,210 --> 00:11:43,440
name it as a view and are removed from card.

182
00:11:43,630 --> 00:11:43,990
Right.

183
00:11:44,290 --> 00:11:46,000
So now we can actually access this link.

184
00:11:46,000 --> 00:11:47,260
I want to access this link.

185
00:11:47,260 --> 00:11:49,620
You know what this card piece that means here.

186
00:11:50,320 --> 00:11:54,430
So here in Texas, that is in our app order and then I name it as it is.

187
00:11:54,880 --> 00:12:00,630
OK, now go to our Carlesimo and then that is our card button.

188
00:12:00,670 --> 00:12:02,530
So here I want to define this link.

189
00:12:03,160 --> 00:12:06,220
So I just simply define that link will be as you wartell.

190
00:12:06,940 --> 00:12:15,270
And then in our app Underscore Order, the app order I have created already what a name or even a name

191
00:12:15,280 --> 00:12:16,390
have defined as a remove.

192
00:12:16,450 --> 00:12:21,130
So to simply define the remote and also after that they have one of the items right here.

193
00:12:21,130 --> 00:12:25,770
Also you have to do have to define that ID, so you have to be as a picture.

194
00:12:26,380 --> 00:12:29,590
OK, should be the case equal to do so.

195
00:12:29,590 --> 00:12:31,390
That is right for loop.

196
00:12:31,390 --> 00:12:32,110
That is your card.

197
00:12:32,120 --> 00:12:34,530
So into the card, the item.

198
00:12:34,560 --> 00:12:37,270
So here before I have it you will see that with the card.

199
00:12:37,270 --> 00:12:38,830
I have accessed that item name.

200
00:12:39,100 --> 00:12:42,760
So now I want to do want to use our discussed item, our ID.

201
00:12:42,850 --> 00:12:45,070
That means if you go to our card.

202
00:12:45,640 --> 00:12:47,830
So here that is your card.

203
00:12:47,830 --> 00:12:53,710
So the card, the items in the item maybe I have already defined our foreign key with our products right

204
00:12:53,710 --> 00:12:56,440
now and to do on to access our this product ID.

205
00:12:56,860 --> 00:12:59,320
So that means here that is our product.

206
00:12:59,320 --> 00:13:01,350
So that is our app shop model.

207
00:13:01,360 --> 00:13:05,650
So if you go to our app shop, everything is actually interconnected.

208
00:13:05,650 --> 00:13:06,190
You can see.

209
00:13:06,490 --> 00:13:07,420
So there is a Klapperich.

210
00:13:07,420 --> 00:13:10,000
So for this product that I'm also one of the specific ideas.

211
00:13:10,000 --> 00:13:11,380
So here we have to pass it.

212
00:13:11,860 --> 00:13:18,190
So now I want to do to define the same things as a card item and before I using that name now I do want

213
00:13:18,190 --> 00:13:24,280
to use our our name I.D. So I just need to define as id as a picture like that in the primary.

214
00:13:25,240 --> 00:13:26,740
So here you have to defining it.

215
00:13:26,750 --> 00:13:28,570
So that's all we have to do.

216
00:13:29,110 --> 00:13:30,270
So now let's check this out.

217
00:13:30,280 --> 00:13:33,610
If everything OK now should be worked, I just have to save all.

218
00:13:34,870 --> 00:13:38,260
First of all, I have to check it somewhere is running perfectly.

219
00:13:38,830 --> 00:13:41,350
And now I want to refresh that piece.

220
00:13:43,450 --> 00:13:48,370
And now I want to remove it like here there is actually one, so I want to do I want to remove it because

221
00:13:48,370 --> 00:13:49,060
I can't.

222
00:13:49,600 --> 00:13:55,810
Yes, you can see friend now perfectly remove and also showing us that this item was removed from your

223
00:13:55,810 --> 00:13:56,200
cart.

224
00:13:56,530 --> 00:14:01,900
And here you can see our car is also updated if you go to our order because a refresh now, because

225
00:14:01,960 --> 00:14:03,540
it's now gone from here.

226
00:14:03,880 --> 00:14:08,170
And also if you go, you can see that now they have the three product.

227
00:14:08,480 --> 00:14:12,010
OK, so now I don't want to remove everything, everyone.

228
00:14:12,130 --> 00:14:14,050
So that is another one is gone.

229
00:14:14,540 --> 00:14:16,860
Another one is gone and the last one is gone.

230
00:14:17,110 --> 00:14:21,540
And here you can see when our last one is gone, then have already found this part.

231
00:14:21,550 --> 00:14:22,900
This message will be displayed.

232
00:14:22,930 --> 00:14:25,140
You do not have any item in your car.

233
00:14:25,150 --> 00:14:26,680
So here I have defined this thing.

234
00:14:26,690 --> 00:14:32,890
So you know, our locking that means here, when our this condition be, then it will be sure that message

235
00:14:32,890 --> 00:14:35,200
as this item was not in your cart.

236
00:14:35,200 --> 00:14:35,500
Right.

237
00:14:35,860 --> 00:14:37,870
So far, the business is not perfectly visible.

238
00:14:37,870 --> 00:14:39,780
I think you can well understand about it.

239
00:14:39,780 --> 00:14:40,900
So now if you.

240
00:14:42,650 --> 00:14:48,810
By any products, so here I have to cut this product now, he's perfectly at it so that he actually

241
00:14:48,810 --> 00:14:49,450
had it right.

242
00:14:49,700 --> 00:14:57,280
And also I take another one that you can't go here that is all shattered.

243
00:14:57,320 --> 00:15:05,320
And now I take this one go add to cart to get this product and now it's perfectly at it.

244
00:15:05,330 --> 00:15:08,300
So now if you want to remove it, you can remove it from here.

245
00:15:09,030 --> 00:15:12,560
Next video on to discuss about if you want to update this quantity.

246
00:15:12,570 --> 00:15:15,280
That means right now there is a one quantity, so there is a one.

247
00:15:15,290 --> 00:15:17,750
So if you click, the minuses will be reduced.

248
00:15:17,750 --> 00:15:18,900
That will decrease it.

249
00:15:18,920 --> 00:15:21,420
And if you click on the plans, then it will be increment.

250
00:15:21,770 --> 00:15:23,150
So how can do that work?

251
00:15:23,150 --> 00:15:26,140
In our next video, I will show you that things with a live example.

252
00:15:26,600 --> 00:15:29,840
So thanks for watching and I'll see you in the next video.
