1
00:00:00,210 --> 00:00:01,800
Hello, friend, welcome back.

2
00:00:02,070 --> 00:00:07,680
In a previous video, we have created one of the function as an to function, and here I have defined

3
00:00:07,680 --> 00:00:08,610
some of the conditions.

4
00:00:08,610 --> 00:00:08,870
Right.

5
00:00:09,300 --> 00:00:11,620
So after that, here we save this data.

6
00:00:11,640 --> 00:00:14,090
So now I want to do want to create one of the Bubis.

7
00:00:14,100 --> 00:00:15,800
So now I just need to save all.

8
00:00:16,230 --> 00:00:21,780
And now if you want to create one of the models for this function, then you have to have to go to your

9
00:00:21,780 --> 00:00:28,470
app order and that your you order and you I have already added our app order in the views.

10
00:00:28,470 --> 00:00:29,690
So do the viewers idea.

11
00:00:29,700 --> 00:00:31,160
I have created all the functions.

12
00:00:31,180 --> 00:00:31,430
Right.

13
00:00:31,740 --> 00:00:35,150
So now I have also defined that app name as an app order.

14
00:00:35,170 --> 00:00:36,800
So now on to the the part.

15
00:00:37,620 --> 00:00:44,850
So our part will be I just named the name of the ad, OK, so that and this type of of the world I have

16
00:00:44,850 --> 00:00:51,060
defined and also in our views and the views area, I have created one of the function.

17
00:00:51,550 --> 00:00:54,790
So I have created one of the function as a add to cart.

18
00:00:55,140 --> 00:00:59,670
So that is our add to cart I have defined and then I define that name for this.

19
00:01:00,090 --> 00:01:03,870
So it will be as an ad say just name it as ad.

20
00:01:04,200 --> 00:01:10,530
OK, and also here we have to do we have to add that means we have to add this product with a specific

21
00:01:10,530 --> 00:01:11,370
one of the idea.

22
00:01:11,380 --> 00:01:11,630
Right.

23
00:01:11,670 --> 00:01:16,920
So for the regions here, I have to do I have to add that idea, because if you go to our view into

24
00:01:16,920 --> 00:01:20,840
the video, you can say define that request along with our primary key Tidey.

25
00:01:21,280 --> 00:01:23,530
So we have to do we have to define the idea.

26
00:01:23,550 --> 00:01:24,750
Just name it as a picture.

27
00:01:24,870 --> 00:01:26,280
OK, sorry.

28
00:01:26,550 --> 00:01:33,810
Here after this, I just name it as a picture and then that it will be our idea and then our function

29
00:01:33,810 --> 00:01:34,440
and the name.

30
00:01:34,470 --> 00:01:40,560
So now I want to do and to display want displayed in our that base that is our product little space

31
00:01:40,560 --> 00:01:41,880
in our app to that area.

32
00:01:42,450 --> 00:01:44,180
So now go to our template again.

33
00:01:44,850 --> 00:01:51,450
So that is our template into the template or app order so that our app shop and the result product details.

34
00:01:51,870 --> 00:01:56,130
So do the product details area I want to do and to define that is link.

35
00:01:56,130 --> 00:01:57,900
You can select our article button.

36
00:01:57,910 --> 00:02:02,950
So here I want to define that link so it shall be as you are.

37
00:02:02,950 --> 00:02:10,140
Well, and then in our app that we see in our in our app order into the app order, I have created one

38
00:02:10,140 --> 00:02:11,210
of the euro.

39
00:02:11,640 --> 00:02:14,640
So that is our app name as rapporteur.

40
00:02:14,640 --> 00:02:16,710
I have created you are as the ad.

41
00:02:17,130 --> 00:02:18,570
So I just simply defined that ad.

42
00:02:18,840 --> 00:02:22,570
And also after that we have to do we have to define our idea that is RPK.

43
00:02:23,160 --> 00:02:26,160
So after that here I want to do with this object.

44
00:02:26,160 --> 00:02:27,180
We can actually defining it.

45
00:02:27,180 --> 00:02:27,400
Right.

46
00:02:27,430 --> 00:02:30,110
So I just named it as a picture and then our object.

47
00:02:30,810 --> 00:02:31,830
So sorry.

48
00:02:32,070 --> 00:02:33,690
So it is with this object.

49
00:02:33,690 --> 00:02:36,430
I want to define art because I just simply defined that picture.

50
00:02:36,450 --> 00:02:38,910
So right now we get all the data with this object, right.

51
00:02:38,930 --> 00:02:44,560
So with this object, I display our preview text, all the things that are of the category.

52
00:02:44,580 --> 00:02:48,080
So now with this object, we can actually access our database table field.

53
00:02:48,360 --> 00:02:52,680
So I want to access our primary field that they are because they are simply defining it.

54
00:02:52,860 --> 00:02:53,370
Perfect.

55
00:02:53,640 --> 00:02:55,000
So now let's check this out.

56
00:02:55,020 --> 00:02:58,470
Now, if you click the save all this together, save all.

57
00:02:59,880 --> 00:03:07,200
And on our server, everything is looking great and now go to our database, then we can well understand

58
00:03:07,200 --> 00:03:11,420
about it, I just refreshed it, open that card and there is our order.

59
00:03:11,880 --> 00:03:17,420
So now everything will be serving our order and also will be serving our card area.

60
00:03:17,500 --> 00:03:17,790
All right.

61
00:03:17,800 --> 00:03:21,000
So here I have defined this part in your model so far.

62
00:03:21,000 --> 00:03:23,670
The results here and I have created a sound that relation.

63
00:03:23,670 --> 00:03:25,110
You can see there is a lower order.

64
00:03:25,120 --> 00:03:31,480
So here I have defined that user, the foreign key to the settings and also in our car they will see

65
00:03:31,500 --> 00:03:32,130
into the character.

66
00:03:32,430 --> 00:03:37,200
I have defined that with the user setting and that is an item that we saw in this product will be added

67
00:03:37,200 --> 00:03:43,110
to in our car area automatically, which will be added another one in our order portion that is in our

68
00:03:43,110 --> 00:03:43,790
order class.

69
00:03:44,040 --> 00:03:46,550
So also here, I want to do it now.

70
00:03:46,560 --> 00:03:49,830
So that is our card and that is our order.

71
00:03:49,840 --> 00:03:52,260
So everything now should be very much clear to you.

72
00:03:52,560 --> 00:03:53,940
Like here I refresh it.

73
00:03:54,930 --> 00:03:57,630
So right now I didn't add this product in our cart.

74
00:03:57,750 --> 00:03:58,150
Right.

75
00:03:58,170 --> 00:03:59,930
So that is actually our first product.

76
00:04:00,240 --> 00:04:07,190
So for the reasons down here, I define that condition when this will be as our in complete order.

77
00:04:07,200 --> 00:04:12,140
So that is all in complete orders, then it will be ale's into the LCD I have defining it.

78
00:04:12,380 --> 00:04:13,630
It will be self destruct.

79
00:04:13,650 --> 00:04:14,120
All right.

80
00:04:14,130 --> 00:04:17,040
So shall we say disorder like check this out.

81
00:04:17,040 --> 00:04:18,420
I just click on the add to cart.

82
00:04:20,090 --> 00:04:25,820
So, you know, showing as the order got an unexpected court argument, as you saw, you can see the

83
00:04:25,820 --> 00:04:26,680
spelling mistake.

84
00:04:27,260 --> 00:04:30,050
So here I defining it in our.

85
00:04:31,180 --> 00:04:33,650
User, that is our order.

86
00:04:33,880 --> 00:04:39,250
You can see the spelling mistake, I understand it, so you can see the regular order.

87
00:04:39,460 --> 00:04:40,570
That will be a user.

88
00:04:41,110 --> 00:04:41,350
OK.

89
00:04:41,410 --> 00:04:42,550
That will be the user.

90
00:04:42,550 --> 00:04:45,910
And the requested user will save all.

91
00:04:47,050 --> 00:04:54,460
And I'll go back to the freshet and here I want to check it in order to save.

92
00:04:55,440 --> 00:05:00,640
I know you can see the card is actually set, but our order is not there because of all here a defense

93
00:05:00,640 --> 00:05:01,210
of the wrong.

94
00:05:01,210 --> 00:05:02,560
So I just better left it.

95
00:05:03,310 --> 00:05:07,300
I just simply deflected again, yes or no, it's empty.

96
00:05:07,750 --> 00:05:15,040
So now I do want to add these products like here right now and refresh it and add to this product is

97
00:05:15,070 --> 00:05:15,790
no different.

98
00:05:15,790 --> 00:05:21,760
Now, showing as this item is added in your card, that means that it's actually our fresh one for the

99
00:05:21,760 --> 00:05:22,230
reasons here.

100
00:05:22,240 --> 00:05:25,120
You can see now actually our sales function is working.

101
00:05:25,120 --> 00:05:29,710
So here are showing our this item as is added in our card area.

102
00:05:29,710 --> 00:05:33,720
And when it should be saved, then it will be redirected to our home.

103
00:05:33,730 --> 00:05:35,260
That means our app shop home.

104
00:05:35,590 --> 00:05:40,960
You can see when this product, Ataka, dangerously addicted to our home page with this message so that

105
00:05:41,290 --> 00:05:42,760
the message is now display.

106
00:05:43,120 --> 00:05:43,480
Right.

107
00:05:43,750 --> 00:05:46,360
So right now, Fred, this product is already safe.

108
00:05:46,360 --> 00:05:49,440
This product is already safe in our car radio.

109
00:05:49,540 --> 00:05:56,140
If you don't go to our auto refresh now, because they have also not the order if you open it so you

110
00:05:56,140 --> 00:05:57,730
can see the regular order item.

111
00:05:58,180 --> 00:06:03,660
And also if you go to your card, because a refresh you can see into the card area that is actually

112
00:06:03,700 --> 00:06:06,470
our card product so that our product is not visible.

113
00:06:06,940 --> 00:06:14,290
So now if you want to buy this product again, like here, I want to go here and now go to our this

114
00:06:14,290 --> 00:06:15,070
product again.

115
00:06:15,070 --> 00:06:17,100
And now here I want to buy this product again.

116
00:06:17,140 --> 00:06:23,650
OK, so here I define this condition when this will be the same, that between this item will will already

117
00:06:23,650 --> 00:06:28,810
exist in our car area that is also already exist in our order item area.

118
00:06:28,810 --> 00:06:30,670
Only our quantity will be updated.

119
00:06:30,710 --> 00:06:35,950
OK, and after that quantity updated, it will be safe, this data, and it should be sure some of the

120
00:06:35,950 --> 00:06:42,010
message as required so that this item quantity is updated and then it should be delivered to our home

121
00:06:42,010 --> 00:06:42,380
base.

122
00:06:42,400 --> 00:06:42,700
Right.

123
00:06:42,730 --> 00:06:43,870
So now let's check this out.

124
00:06:44,380 --> 00:06:46,830
If you now add to this product again.

125
00:06:47,260 --> 00:06:47,890
Yes.

126
00:06:47,890 --> 00:06:52,280
You can see now truing as it is, item quantity is updated.

127
00:06:52,300 --> 00:06:54,970
OK, that was only our quantity field is updated.

128
00:06:55,510 --> 00:07:00,670
So that means here you can see so perfectly the key to our home base and then it's showing our this

129
00:07:00,670 --> 00:07:03,190
message as this item quantity is updated.

130
00:07:03,220 --> 00:07:05,600
OK, so now this is not showing on here.

131
00:07:05,620 --> 00:07:10,030
So now if you go to your cart and if you refresh it, yes.

132
00:07:10,030 --> 00:07:15,600
You can see if an item actually the same item only our this quantity field is updated.

133
00:07:15,610 --> 00:07:17,470
So before there was actually one.

134
00:07:17,740 --> 00:07:19,660
So right now it is updated as a tool.

135
00:07:19,930 --> 00:07:20,250
Right.

136
00:07:20,530 --> 00:07:26,650
And if you go to order, click refresh, you can see it now is actually updated like a second one are

137
00:07:26,660 --> 00:07:28,340
the two and that is our product.

138
00:07:28,690 --> 00:07:29,280
Perfect.

139
00:07:29,680 --> 00:07:34,380
So now friend, I think is very clear to you what exactly the things I did on here.

140
00:07:34,690 --> 00:07:42,430
So now if you want to add another one like here, I add another one added this one click on Add to Cart.

141
00:07:43,060 --> 00:07:46,160
So now consistent showing that this item added in your card.

142
00:07:46,420 --> 00:07:48,550
So here I have added this product.

143
00:07:48,560 --> 00:07:50,410
So now we're showing our this message.

144
00:07:50,890 --> 00:07:53,620
And if you now go to our order directly to the refresh.

145
00:07:54,190 --> 00:07:56,550
Yes, you can see our order is the same.

146
00:07:56,560 --> 00:07:59,590
That means there are already there is only one object.

147
00:07:59,740 --> 00:08:03,610
So into the one object order area, it's added all that our product.

148
00:08:03,610 --> 00:08:05,450
So that is all that our product card.

149
00:08:05,770 --> 00:08:09,200
So for the reasons here, I have defined that relation with our cart.

150
00:08:09,220 --> 00:08:15,630
OK, and also if you go to that piece or Cardinia, did the Kardinia consider is the purchase.

151
00:08:15,970 --> 00:08:18,400
So this packages is not selected.

152
00:08:18,410 --> 00:08:20,740
That means this product is not completed.

153
00:08:20,740 --> 00:08:21,040
Right.

154
00:08:21,310 --> 00:08:23,830
So for the reasons here, I have defined this part.

155
00:08:24,340 --> 00:08:29,410
So for the reasons into the purchase, you can see it in the packages that I make that things are the

156
00:08:29,410 --> 00:08:29,950
false.

157
00:08:29,950 --> 00:08:35,590
That means right now this product is not completed for the reasons you can see just now showing as an

158
00:08:35,590 --> 00:08:36,310
checkmark.

159
00:08:36,670 --> 00:08:38,900
So now I think is very much clear to you.

160
00:08:39,310 --> 00:08:44,680
OK, so here we successfully did the talks right now in our criteria that have the two product.

161
00:08:45,070 --> 00:08:48,160
And also I don't want to take another one like here.

162
00:08:48,160 --> 00:08:55,170
I take this one also click the add to Cart so that the item is added to cart in our successfully refresh

163
00:08:55,220 --> 00:08:58,300
it in the art area you can see that our three product.

164
00:08:58,300 --> 00:09:01,750
But if you go to our order, the order is one, right.

165
00:09:01,750 --> 00:09:03,370
So you can see there is already one.

166
00:09:03,370 --> 00:09:04,840
So into the one other area.

167
00:09:04,840 --> 00:09:07,050
I have purchased our three product.

168
00:09:07,060 --> 00:09:07,370
Right.

169
00:09:07,720 --> 00:09:12,220
So here I have also defined this part and everything is now perfectly working.

170
00:09:12,220 --> 00:09:14,920
OK, that is our cart is working and order is working.

171
00:09:15,310 --> 00:09:20,570
So you our next video, I want to create the template base for our view or all that car product that

172
00:09:20,590 --> 00:09:22,060
means in our car we are right now.

173
00:09:22,060 --> 00:09:26,890
I have already saved some of the product, so I want to do and the visibility in our car that we see

174
00:09:26,890 --> 00:09:27,590
in our car area.

175
00:09:27,610 --> 00:09:29,160
OK, so do the Kataria.

176
00:09:29,200 --> 00:09:32,110
We have to do we have to create the template base so better.

177
00:09:32,110 --> 00:09:34,990
In our next video, I will show you that things with a live example.

178
00:09:35,170 --> 00:09:36,760
So thanks for watching.

179
00:09:36,760 --> 00:09:38,470
I'll see you in the next video.
