1
00:00:00,150 --> 00:00:00,840
Hello, friend.

2
00:00:00,840 --> 00:00:01,810
Welcome back.

3
00:00:01,830 --> 00:00:06,930
In our previous video here, we successfully add all that our product and we successfully done this

4
00:00:06,930 --> 00:00:07,560
job right.

5
00:00:07,560 --> 00:00:09,000
So now it's great.

6
00:00:09,000 --> 00:00:14,940
So now, friend, in this video I want to do on to update little bit in our all product page that means

7
00:00:14,940 --> 00:00:17,880
here right now all that are product images is visible.

8
00:00:17,880 --> 00:00:22,710
Product name is visible price quantity discount and also status is visible.

9
00:00:22,710 --> 00:00:23,220
Right?

10
00:00:23,220 --> 00:00:26,700
So first of all, I want to do to add some of the action here.

11
00:00:26,700 --> 00:00:32,009
I want to add that multiple of field here, I want to add the edit button that should be loaded, one

12
00:00:32,009 --> 00:00:32,790
of the delete button.

13
00:00:32,790 --> 00:00:38,790
I want to load it and also load it on the inactive or active button and also the details.

14
00:00:38,790 --> 00:00:43,650
That means when you click as a details specific, this product will be related to the detail space.

15
00:00:43,680 --> 00:00:48,590
Okay, so this type upon of the button first of all, and to add here, if I use that things like that

16
00:00:48,600 --> 00:00:50,010
way, that will be not enough.

17
00:00:50,010 --> 00:00:51,930
But I want to use some of the icon.

18
00:00:51,930 --> 00:00:56,640
If you go to that Google and here if you start with the font or some CD and icon, I want to use some

19
00:00:56,640 --> 00:01:03,660
of the font or some if you go to that screen that is a font or some library I simply go to here and

20
00:01:03,660 --> 00:01:07,860
right now I only want to do on to add that our all means CSS.

21
00:01:07,890 --> 00:01:08,940
Okay, so that will be needed.

22
00:01:08,940 --> 00:01:13,120
I simply copy it and copy that URL or embedded code.

23
00:01:13,120 --> 00:01:13,800
I copy it.

24
00:01:13,800 --> 00:01:17,460
And now if you go here, I want to add it in or back in.

25
00:01:17,460 --> 00:01:23,910
So back in related everything, I have already created our main page that is in our view admin and that

26
00:01:23,910 --> 00:01:25,170
is our admin dashboard.

27
00:01:25,170 --> 00:01:25,710
Right?

28
00:01:25,710 --> 00:01:29,160
So you do the admin dashboard I want to do, I want to simply load it that font.

29
00:01:29,160 --> 00:01:29,670
Awesome.

30
00:01:29,670 --> 00:01:32,640
So here that is a color font or some clean on the link.

31
00:01:32,640 --> 00:01:33,420
I simply load it.

32
00:01:33,420 --> 00:01:37,320
So now we are able to use all that our font or some icon.

33
00:01:37,320 --> 00:01:38,430
Now let's create it.

34
00:01:38,430 --> 00:01:43,860
I click as a save all and now if you go to our all product page, that means our product and that is

35
00:01:43,860 --> 00:01:44,520
our product.

36
00:01:44,520 --> 00:01:45,540
All page, right?

37
00:01:45,540 --> 00:01:50,790
So into the product, all page before I have used it like that way here I have loaded that edit button.

38
00:01:50,790 --> 00:01:51,990
That is a delete button.

39
00:01:52,080 --> 00:01:55,290
So now how to do how to change it a little bit here.

40
00:01:55,470 --> 00:02:01,290
I better put some the one of the title with the title title that will be for the edit.

41
00:02:01,290 --> 00:02:01,500
Okay.

42
00:02:01,590 --> 00:02:03,300
Make it as the edit data.

43
00:02:03,690 --> 00:02:04,920
That will be for the edit data.

44
00:02:04,920 --> 00:02:07,350
And here I don't want to use any text here.

45
00:02:07,350 --> 00:02:08,639
I want to load on the icon.

46
00:02:08,639 --> 00:02:10,919
That means the font of some icon if you want to load it.

47
00:02:10,949 --> 00:02:16,410
That is I tag I want to do and to close the sci-tech here I am to close it and into this position I

48
00:02:16,410 --> 00:02:17,760
want to put on the class.

49
00:02:17,760 --> 00:02:24,090
I here for the edit to use it as a far far and then pencil and paper pencil.

50
00:02:24,090 --> 00:02:27,510
So here you will get everything in front of some icon area.

51
00:02:27,510 --> 00:02:29,220
So that is pretty much basic things.

52
00:02:29,220 --> 00:02:34,020
So now I want to do undo check it, click as I save all I want to check it or font some is working or

53
00:02:34,020 --> 00:02:34,590
not.

54
00:02:34,590 --> 00:02:37,440
If you go to your admin I want to refresh it.

55
00:02:39,000 --> 00:02:39,310
Yeah.

56
00:02:39,360 --> 00:02:43,410
You can see it's not successfully display our font or some icon for the edit.

57
00:02:43,740 --> 00:02:44,310
Great.

58
00:02:44,310 --> 00:02:47,530
So also on to do the same things for that select.

59
00:02:47,580 --> 00:02:47,840
Okay.

60
00:02:47,880 --> 00:02:48,510
Here.

61
00:02:48,510 --> 00:02:49,590
That is for the delete.

62
00:02:49,590 --> 00:02:51,420
I want to use the same things.

63
00:02:51,420 --> 00:02:54,000
First of all, I want to add all of the icon here.

64
00:02:54,000 --> 00:02:59,880
After that, I'd want to use that as I'm title title actually is means for if you put your cursor here,

65
00:02:59,880 --> 00:03:01,670
it will be displayed on the text as it is.

66
00:03:01,710 --> 00:03:03,270
What exactly that for?

67
00:03:03,300 --> 00:03:04,920
That is for the edit data.

68
00:03:04,920 --> 00:03:06,090
And I want to also do that.

69
00:03:06,090 --> 00:03:07,440
Thanks for the direct data.

70
00:03:07,440 --> 00:03:08,700
So I make it as a dialect.

71
00:03:08,700 --> 00:03:10,100
So that is a dialect data.

72
00:03:10,350 --> 00:03:11,400
I make it as a direct data.

73
00:03:11,400 --> 00:03:14,040
And for the direct data, I don't want to use that text here.

74
00:03:14,040 --> 00:03:19,020
I want to do I want to use one of the trash that is also another font of some icon.

75
00:03:19,020 --> 00:03:20,700
I simply load it this icon.

76
00:03:20,700 --> 00:03:25,710
I want to close this icon here that will be on the class and I want to use that class as a file and

77
00:03:25,710 --> 00:03:26,910
then file trash.

78
00:03:27,540 --> 00:03:30,990
So that will be our other font or some icons should be loaded.

79
00:03:31,110 --> 00:03:33,510
Now if you want to check it, click as a save all.

80
00:03:33,510 --> 00:03:37,230
And now if you go refresh it now that should be changes.

81
00:03:37,230 --> 00:03:42,150
Yeah, you can see there is a font, some icon is loaded for the select and you can see it's also display

82
00:03:42,150 --> 00:03:43,230
as a data.

83
00:03:43,530 --> 00:03:46,500
Now I want to add another to here.

84
00:03:47,190 --> 00:03:52,800
If you want to add it like I want to do or to better copy this one, I copy it and after that I paste

85
00:03:52,800 --> 00:03:53,250
it.

86
00:03:53,250 --> 00:03:56,070
So that will be our another one for the detail space.

87
00:03:56,070 --> 00:04:00,840
Okay, so now I'm going to use it as a details for the details I want to use as a file for.

88
00:04:00,840 --> 00:04:07,770
So that will be as a detailed data, make it as a details, details a little space.

89
00:04:07,770 --> 00:04:11,400
I want to make it as a detail space so that will be the detail space.

90
00:04:11,400 --> 00:04:16,470
And here I want to use that another font or some icon that will be as far that is a far far and I want

91
00:04:16,470 --> 00:04:21,029
to do and to use it as I so that will be as I step upon the icon.

92
00:04:21,180 --> 00:04:26,490
And also here I want to do to add another one that will be as a thumbs up and thumbs down, that will

93
00:04:26,490 --> 00:04:28,860
be for the active or inactive or status.

94
00:04:29,130 --> 00:04:34,650
So for the reasons here, I want to do, I want to use another one that will be the title title I want

95
00:04:34,650 --> 00:04:38,940
to update and that will be for the inactive by default.

96
00:04:38,940 --> 00:04:41,550
That will be displays, inactive and inactive.

97
00:04:41,550 --> 00:04:46,440
I want to do to use it as a file for that is also another icon I want to do and use it.

98
00:04:46,440 --> 00:04:49,050
So that will be the file and then solid.

99
00:04:49,800 --> 00:04:56,400
That is a fast solid and then file thumbs, thumbs and then down, down.

100
00:04:56,400 --> 00:04:58,380
And also that is another one as app.

101
00:04:58,470 --> 00:04:59,640
So first of all, I to check.

102
00:04:59,970 --> 00:05:03,630
Also here, I want to do the change that that will be as a primary.

103
00:05:03,770 --> 00:05:05,350
I make it as a BTN primary.

104
00:05:05,370 --> 00:05:06,560
Now that will be another button.

105
00:05:06,570 --> 00:05:07,860
I'll click the Save all.

106
00:05:08,130 --> 00:05:10,860
Now if you go refresh it.

107
00:05:11,710 --> 00:05:12,050
Hmm.

108
00:05:12,070 --> 00:05:14,370
Because it's not displayed that things like that way.

109
00:05:14,380 --> 00:05:14,990
So now there is ah.

110
00:05:15,010 --> 00:05:18,310
Edit That will be for the dialect, that will be for the eye.

111
00:05:18,610 --> 00:05:23,590
That is, that is for our detail space and that will be for the inactive or the active OC.

112
00:05:23,650 --> 00:05:29,830
That means by default here or is status as a one also wanted to update that status event to update it

113
00:05:30,730 --> 00:05:32,230
like that is actually our status.

114
00:05:32,230 --> 00:05:32,440
Right?

115
00:05:32,440 --> 00:05:37,720
So here I want to do I want to add on the condition I have already get all that our product data and

116
00:05:37,720 --> 00:05:38,740
I want to access it.

117
00:05:38,740 --> 00:05:40,930
I have access it by the item, right?

118
00:05:40,930 --> 00:05:44,950
So now with this item I want to do, I won't be able to access our estrus field.

119
00:05:44,950 --> 00:05:51,280
So I simply added one of the condition here right now, I don't need this, I close remove it and into

120
00:05:51,280 --> 00:05:52,420
the study area here.

121
00:05:52,420 --> 00:05:58,030
I want to use all the if condition at the at the rate if and also we have to do we have to end it.

122
00:05:58,030 --> 00:06:04,390
I want to do and end it that is will be at the rate and if okay so if here I want to add that condition

123
00:06:04,390 --> 00:06:08,860
here when if you want to access the status, will we have to access it by the item?

124
00:06:08,860 --> 00:06:12,340
And then I want to do anti access our filename as a status.

125
00:06:12,670 --> 00:06:12,820
Right.

126
00:06:12,880 --> 00:06:17,830
So that is our status when this is status will be equal, equal one because of all here.

127
00:06:17,830 --> 00:06:20,980
If you go by default I insert it as a one value right here.

128
00:06:20,980 --> 00:06:26,260
If you go in our product table that is already status field by default I insert as a one.

129
00:06:26,260 --> 00:06:31,600
So I want to do when that will be as a one, then that will be as active rather than that will be inactive.

130
00:06:31,720 --> 00:06:34,240
Like a simple condition that I have already done before.

131
00:06:34,330 --> 00:06:40,300
Now when our item is status will be equal equal one then here I want to do to use one of these pen.

132
00:06:41,290 --> 00:06:46,210
I want to use all of this pen and this is to put on the color here on the user, the bar color that

133
00:06:46,390 --> 00:06:47,830
that will be the word Z.

134
00:06:47,830 --> 00:06:52,660
And I want to use it as a it that will be the rounded, rounded pill.

135
00:06:52,660 --> 00:06:55,540
And here I want to use it as a bead success.

136
00:06:56,050 --> 00:07:00,940
So this step of one of the bars I want to use and here it will be display the active then that always

137
00:07:01,000 --> 00:07:07,360
display active and else I make it as ls lc which will be displayed or another one as inactive.

138
00:07:07,360 --> 00:07:10,630
I copied that so that will be as a zero.

139
00:07:10,630 --> 00:07:16,620
Then that will be as display inactive I want to do to make it as a in active weight and for the inactive,

140
00:07:16,630 --> 00:07:20,110
but to make it as a danger so that that always a danger.

141
00:07:20,350 --> 00:07:20,860
Great.

142
00:07:20,950 --> 00:07:27,010
Now if you click as a save all here I want to do click the save vol and now that should be display active

143
00:07:27,010 --> 00:07:27,940
rather than the inactive.

144
00:07:27,940 --> 00:07:31,900
So right now our both of these as the active now that should be displayed as the active because of a

145
00:07:31,900 --> 00:07:32,950
lot of value as a one.

146
00:07:32,950 --> 00:07:39,520
Yes you can see it's not successfully display as the active and also here it's display as active right

147
00:07:39,520 --> 00:07:43,960
here also it's not successfully displayed and also if you want to change it like I want to change that

148
00:07:43,960 --> 00:07:46,510
the status is status as a different one, as a zero.

149
00:07:46,750 --> 00:07:49,420
Now that should be a display as inactive.

150
00:07:49,450 --> 00:07:50,680
They show you like here.

151
00:07:50,680 --> 00:07:54,730
Now if you click the refresh now that should be displayed as inactive, right?

152
00:07:54,730 --> 00:07:56,470
So that is the our simple condition.

153
00:07:56,470 --> 00:08:00,060
When our status will be as a one, then that will display the active else.

154
00:08:00,080 --> 00:08:01,990
This will be displayed in active grid.

155
00:08:02,110 --> 00:08:06,640
So now I want to do the same condition for the thumbs up and for the thumbs down.

156
00:08:06,940 --> 00:08:12,370
So here I want to do to use the same condition, but I copy it and now after that I paste it.

157
00:08:12,370 --> 00:08:17,860
So now when our status will be as a one, then I want to do how to make it as inactive.

158
00:08:17,860 --> 00:08:23,710
That means here that will be displayed as a thumbs down and else I want to copy it and else.

159
00:08:23,710 --> 00:08:24,910
So that will be the ILS.

160
00:08:24,910 --> 00:08:30,700
And also I want to make it as a and if and if condition and else this will be displayed or another one

161
00:08:30,700 --> 00:08:32,350
that will be as active.

162
00:08:32,799 --> 00:08:34,120
I make it as active.

163
00:08:34,120 --> 00:08:37,510
And if the active, I want to make it as a thumbs up.

164
00:08:37,539 --> 00:08:37,700
Okay.

165
00:08:37,750 --> 00:08:39,159
So then that will be the thumbs up.

166
00:08:39,190 --> 00:08:39,760
Great.

167
00:08:39,789 --> 00:08:40,120
Great.

168
00:08:40,120 --> 00:08:46,060
So now if you click as a save all and now I hope it's very clear to you now if you click the save refresh

169
00:08:46,060 --> 00:08:51,520
now we can see now here, if you put your browser, that means this post, the product is already active.

170
00:08:51,520 --> 00:08:55,930
And now if you want to inactivate here, you have to click it right.

171
00:08:55,930 --> 00:08:58,270
All right, then that product is already inactive.

172
00:08:58,270 --> 00:09:01,930
If you now want to activate, you have to do have to click it in here.

173
00:09:02,200 --> 00:09:03,730
So that is the simple process.

174
00:09:03,730 --> 00:09:05,950
I want to do this step by step.

175
00:09:05,950 --> 00:09:07,240
We have to also cover it.

176
00:09:07,240 --> 00:09:13,210
Now, first of all, I want to get around to actually to use the different color or to use the different

177
00:09:13,210 --> 00:09:14,620
colors info.

178
00:09:15,460 --> 00:09:17,200
There is a primary I have use it.

179
00:09:17,200 --> 00:09:20,020
There is a danger and there is the info, right?

180
00:09:20,680 --> 00:09:23,200
I want to use it as a warning for this.

181
00:09:23,200 --> 00:09:24,130
As a warning.

182
00:09:24,620 --> 00:09:24,770
Okay.

183
00:09:25,000 --> 00:09:25,690
Our.

184
00:09:26,810 --> 00:09:28,590
So that will be as a warning.

185
00:09:28,610 --> 00:09:30,800
Now, let's check this out like I save all.

186
00:09:31,070 --> 00:09:32,780
Now, if you refresh it.

187
00:09:33,500 --> 00:09:35,150
Now, that should be as a warning color.

188
00:09:35,180 --> 00:09:35,750
Great.

189
00:09:35,750 --> 00:09:37,310
So which is fine.

190
00:09:37,640 --> 00:09:39,200
I often it's very clear to you.

191
00:09:39,200 --> 00:09:41,840
And now also on to update our another part.

192
00:09:41,870 --> 00:09:42,590
The discount.

193
00:09:42,590 --> 00:09:44,960
Right now it's display the discount or total amount.

194
00:09:44,960 --> 00:09:49,670
Read your price as a 300 and our another price is a 500.

195
00:09:49,670 --> 00:09:52,040
So now it's displayed direct our price.

196
00:09:52,040 --> 00:09:52,310
Right.

197
00:09:52,310 --> 00:09:57,560
So I want to do on some of the time you made add any discount price for this product.

198
00:09:57,560 --> 00:10:02,210
Right so then that will be display some of the value in particular that area.

199
00:10:02,210 --> 00:10:07,990
So I want to do how to make it as a dynamic because I have already make this discount field as a non

200
00:10:08,000 --> 00:10:08,390
able.

201
00:10:08,660 --> 00:10:12,350
You may also don't want to add any discount in particular at that position.

202
00:10:12,350 --> 00:10:18,200
So in that case, I want to add another conditions like here that is for our product discount, right?

203
00:10:18,200 --> 00:10:19,430
That is a discount price.

204
00:10:19,430 --> 00:10:24,620
So if the discount price area here I want to do on to work in particular that position that will be

205
00:10:24,620 --> 00:10:29,840
calculated, all that our data then that will be very interactive like I want to do on the ad or on

206
00:10:29,840 --> 00:10:35,030
the if condition that is our if condition into the if condition that is pretty much very basic like

207
00:10:35,030 --> 00:10:37,460
I want to do on to access our discount field.

208
00:10:37,550 --> 00:10:41,690
If you want to access it right now we are already into the for each loop so now we can able to access

209
00:10:41,690 --> 00:10:46,820
it by the item and that is our filename as a discount price when this discount price will be equal.

210
00:10:46,820 --> 00:10:47,960
Equal null.

211
00:10:48,140 --> 00:10:48,320
Okay.

212
00:10:48,440 --> 00:10:53,780
When that will be as a null here, I make it as a null because of all when that will be as empty.

213
00:10:53,810 --> 00:10:56,810
All that are empty value that should be added.

214
00:10:56,810 --> 00:10:59,540
This type upon the text that is actually null null value.

215
00:10:59,540 --> 00:10:59,990
Right?

216
00:10:59,990 --> 00:11:03,500
So I make it as a win that will be as a equal equal null.

217
00:11:03,530 --> 00:11:07,580
Then here I want to display one of the bar where I copy.

218
00:11:07,580 --> 00:11:11,120
That is when I copy that is spent and I want to do on the pasted.

219
00:11:11,120 --> 00:11:17,090
So that will be I make it as a bid, not success info to use and that will be the info.

220
00:11:17,540 --> 00:11:21,650
So into the info here then that will be displayed as a no discount.

221
00:11:22,910 --> 00:11:28,850
I hope it's very clear when our discount price will be equal null then that will be displayed or spent

222
00:11:28,850 --> 00:11:32,780
as a no discount and else else is will be do another things.

223
00:11:32,780 --> 00:11:35,120
That means here that should be some of the discount.

224
00:11:35,120 --> 00:11:35,330
Right.

225
00:11:35,330 --> 00:11:36,590
So make it else.

226
00:11:36,770 --> 00:11:37,850
So that is our else.

227
00:11:37,850 --> 00:11:39,200
And also we have to end it.

228
00:11:39,200 --> 00:11:45,830
That means that is our and okay and if condition great great and that is our tree is ended so right

229
00:11:45,830 --> 00:11:47,060
now I close it remove it.

230
00:11:47,120 --> 00:11:52,910
Okay so when that will be as a null, then that will be displayed in no discount and else I want to

231
00:11:52,910 --> 00:11:54,800
do on to calculate it this data.

232
00:11:54,800 --> 00:11:59,630
That means here I want to display all that our percentage value, not that our direct value.

233
00:11:59,990 --> 00:12:04,130
That means how many percentages you have added for the discount.

234
00:12:04,130 --> 00:12:05,990
So that is the percentage result.

235
00:12:05,990 --> 00:12:07,970
I want to visible it in here.

236
00:12:07,970 --> 00:12:12,620
So even to get that percentage result, what exactly the calculation will be like if you go to that

237
00:12:12,620 --> 00:12:16,820
our structure and into this structure, our selling price.

238
00:12:16,820 --> 00:12:17,060
Right.

239
00:12:17,060 --> 00:12:20,810
So here, first of all we have to do that is our selling price.

240
00:12:20,810 --> 00:12:24,470
So the selling price will be minus our discount price.

241
00:12:24,470 --> 00:12:29,130
And then we have to do we have to divide it by the selling price and also we have to multiple with the

242
00:12:29,130 --> 00:12:29,660
100.

243
00:12:29,660 --> 00:12:31,520
Then we'll get that our percentage value.

244
00:12:31,520 --> 00:12:33,350
So that is the simple calculation.

245
00:12:33,350 --> 00:12:39,440
So now I want to use the same calculation in here that is our endive and better on to use on the block,

246
00:12:39,440 --> 00:12:43,310
first of all, and calculated that that will be our and BSP.

247
00:12:43,670 --> 00:12:47,930
So this PHP block area, I want to take all of the variable as the amount.

248
00:12:47,930 --> 00:12:50,120
So I simply take one of the variable as the amount.

249
00:12:50,120 --> 00:12:56,420
And here right now with this our item amount to access our filename or filename as a selling price,

250
00:12:56,660 --> 00:12:58,610
the selling price will be minus.

251
00:12:58,610 --> 00:13:01,550
Minus will be from our discount price.

252
00:13:01,550 --> 00:13:01,790
Right?

253
00:13:01,790 --> 00:13:03,620
So that will be as a discount price.

254
00:13:03,620 --> 00:13:07,340
So I simply minus from our discount price and here I get that thing.

255
00:13:07,340 --> 00:13:12,080
So with our variable as the amount, that means our selling price will be minus promote discount price

256
00:13:12,080 --> 00:13:14,480
at target with our amount, which is fine.

257
00:13:14,480 --> 00:13:16,910
And now I want to do how to calculate the discount.

258
00:13:16,910 --> 00:13:20,120
So for the calculate discount, I take another variable as a discount.

259
00:13:20,120 --> 00:13:21,410
Okay, so that will be the discount.

260
00:13:21,410 --> 00:13:23,350
And here I want to do calculated it.

261
00:13:23,390 --> 00:13:26,960
So that means our it will be minus our discount amount.

262
00:13:26,960 --> 00:13:33,290
I take the things with this variable now with this amount that will be divided by divided by our selling

263
00:13:33,290 --> 00:13:33,590
price.

264
00:13:33,590 --> 00:13:34,070
Right.

265
00:13:34,070 --> 00:13:36,410
So now that will be divided by our selling price.

266
00:13:36,410 --> 00:13:38,270
And then that should be multiple.

267
00:13:38,300 --> 00:13:40,700
Multiple will be with our 100.

268
00:13:40,700 --> 00:13:43,130
Then we'll get that our percentage value.

269
00:13:43,130 --> 00:13:44,930
So that is the simple calculation.

270
00:13:44,930 --> 00:13:51,770
So I simply take it and that will be divided by our selling price and equal to our that means multiple

271
00:13:51,770 --> 00:13:53,870
with the 100, then that will be our discount price.

272
00:13:53,870 --> 00:13:57,070
So now that is the discount price I want to do on the visible it.

273
00:13:57,080 --> 00:14:01,430
Okay, here I want to visible it with the beta, copy it and then I paste it.

274
00:14:01,430 --> 00:14:03,490
So now that will be as another part Z.

275
00:14:03,560 --> 00:14:06,200
I want to use that as a danger.

276
00:14:06,440 --> 00:14:11,480
Then that will be the danger and into this danger area I want to do to display or that is the discount.

277
00:14:11,480 --> 00:14:13,760
Okay, so now that will be totally dynamic here.

278
00:14:13,760 --> 00:14:16,670
I want to do I want to use out the rounded value also.

279
00:14:16,670 --> 00:14:22,940
So that will be the round means if you if they have the our calculation value like as five point something

280
00:14:22,940 --> 00:14:23,390
like that.

281
00:14:23,390 --> 00:14:25,350
So it will be make it as a round that.

282
00:14:25,660 --> 00:14:27,470
Should we make it as a five or four?

283
00:14:27,490 --> 00:14:29,800
So that is actually a calculated value.

284
00:14:29,830 --> 00:14:35,260
So now I'm going to make it as a round it and that will be round and round will be our which one here?

285
00:14:35,260 --> 00:14:40,540
I have already calculated this data and I take that things with this variable now that will be our total

286
00:14:40,550 --> 00:14:41,440
discount price.

287
00:14:41,650 --> 00:14:45,230
So I make it as a this will be displayed by the percentage, right.

288
00:14:45,250 --> 00:14:48,000
So I make it as a person this great grade.

289
00:14:48,460 --> 00:14:49,510
So that's all.

290
00:14:49,510 --> 00:14:50,840
And that's all you have to do.

291
00:14:50,860 --> 00:14:52,270
Now let's check this out.

292
00:14:52,270 --> 00:14:56,320
Our calculation also should be updated for the discount if we now go.

293
00:14:56,320 --> 00:15:02,470
And here now if you refresh it now, yeah, you can see for a specific this product now it's not display

294
00:15:02,470 --> 00:15:04,090
our total amount is not display.

295
00:15:04,090 --> 00:15:09,310
I have added the 33% and for this product I have added that 20%.

296
00:15:09,310 --> 00:15:09,730
Right.

297
00:15:09,730 --> 00:15:14,710
If this field is empty, then that will be displayed over another part party as in no discount.

298
00:15:15,190 --> 00:15:15,730
Great.

299
00:15:15,790 --> 00:15:16,090
Great.

300
00:15:16,090 --> 00:15:17,890
So now is very interactive.

301
00:15:17,920 --> 00:15:23,470
Okay, so in our next video, I want to do how to complete our edit functionality.

302
00:15:23,470 --> 00:15:25,960
So if you want to edit this product, how can edit it?

303
00:15:25,960 --> 00:15:26,920
In our next video?

304
00:15:26,950 --> 00:15:29,110
I'll show you that things with the live example.

305
00:15:29,110 --> 00:15:30,430
So thanks for watching.

306
00:15:30,430 --> 00:15:32,170
I will see you in the next video.


