Hello, friend, welcome back.
In a previous video, we successfully display all the talk card from our database and here it also defines
on the bottom as a FIFA icon, as a minus, and then the quantity and then the plans.
Right.
So now I also want to do want to display our prize that is surprisingly visible.
So if you want to do that work, go to our e-mail.
So here we have to work, right.
So that is actually our team.
So here I am defining our two of this.
First of all, it will be like show our icon with the far minus and that is our FIFA plus.
Right.
And after that, I want to undertake an adopted status symbol in front of the TV.
And here I want to do and the visible our prize.
That means that a lower price and I want to visible it.
So here I want to do and define our TDA defined as our line is defined as a line.
A line will be as a right side, assembled in front of the right position and then our dollars.
And because that is actually our price.
So dollar.
And after that, if you want to display that dollars, I have already created that functionality.
If you go to our model that we see in our app model area here, you can see I have already calculated
that data with this function.
Right.
That is our total.
So it is total.
It will be automatically calculated that our item and then into our quantity.
That means right now I have the two items for this item that have the unique price automatically.
So we calculated that unit price with our quantity then is to be sure, this price.
Right.
So here I have already defined that things, you know, our get total functions so I don't actually
use it.
So I just simply copy it.
So that is in our cart.
So here I want to display it.
So with this card.
So with this card, I define our method.
That means our function as a total.
So with this card, I'd simply display our total.
OK, so now let's check this out.
If you're not looking to save all and now if you refresh it, yes.
You can see so perfectly getting our total amount.
So that is our one for the one of the 15.
And for this product unit price, if you go as a program is thinking not.
So if you go to our homepage right now, we don't need this if you go to homeplace.
So here you can see that the product as a programming is thinking not so this product I have added to.
So our unique price as a sixty.
So I know you can see snowplowing as a double quantity and then our quantity as a 120.
OK, friend, I hope you can will understand about it.
So now we can actually use that function that is our function name as a total.
So here I have already defined that condition into the total area.
It will be added our item price and then into ourself with this self defined the quantity, OK, automatically.
So we calculate that data and then also here are defined as a formatted hour to decimal, not only visible
for the reasons.
After that, our total amount is showing us the two decimal character.
OK, so it's perfect.
And now I also want to do want to define another button.
So here, you know, Cardus Jim'll into the Counterstatements, that is our DEEDI.
So after this I take another one, I take unadopted and here I want to defund it.
If I came to the eleftheria on the visible on the name, it should be as a remove card to remove card.
So here I just simply defining it and also it should be as a button types are better able to do under
different class.
So here at the end with the end danger and then within s.m.
OK, so this step up on the bottom, I own the defined.
Now if you click on the save all now refresh it.
Perfect, you can see it now, it's perfectly visible, our.
OK, so Peter, I want to do something that things are not right here, right in front of the center,
OK, the front of the center.
Savol refreshing.
Yeah.
You can see it's going to the center.
So no one to do on to visible our total amount.
So if you want to display the total amount.
So that is our Tebaldi.
OK.
So here after this.
After this.
And for here I want to do and define another tier.
I live in another sorry.
And another three are let me the table and here the front of the T h and then also had had a of the
scope.
So scope will be as a role.
And here I want to do and define another one because that have the one, two, three, four.
OK.
So here I want to define another as a TD and the area I define what the call is.
Spend, spend, spend, spend, spend, spend and spend.
I define as the two.
OK, so that is up to the fourth and there should be as just one to that means here should be display
or title.
And then here also the display our this that is our total amount.
So I just simply defined the expense to and here it should be at the total.
OK, just name it as a total and now the visibility so and adopted and then here are definitely a line.
OK, line a line will be here at the final.
Right.
And also in particular that position on the visible, our total amount will be with our dollar sign.
And then I want to define our disposition to this position.
I'm already out of this for loop.
Right.
So also, if you go to our view here, I have all also passed our orders.
Right?
So that is our orders.
I have passed.
There is our order.
I take that order object with this variable.
That means here we have to pass that order, not the orders.
OK, so here we have to pass that order.
And there is our order book reference because of all here.
You can see I define that our orders.
So here I take all that, our pending all the orders and take the things with this variable.
And here I get all the our object that with these orders and I just take the things with our this order.
So now we have to do we have to pass our this order.
So here I just simply pass it.
So now with this order we can actually displayed.
So now if you want to display it.
So with this order, with this order, I have already created this step up.
One of the functions in our model, if you go to our model, that means in our APLA order, that is
our model into the model area.
I have already defined that part.
That means the total amount.
And then I also defined as a total right.
So into this total sibiya, I have already defined one of the for loop automatically.
Each will be calculated for our first item.
There is a second item, then it will be calculated and then in our total area it's visible.
Right.
So here I return this total.
So I also defined that function name as a total.
So now I want to do want to use this function.
So I just simply copy it.
And now here it is simply pasted.
OK, so now let's check this out.
If we're not going to save all and now if you refresh it.
So now here is not showing the total and then that is actually the price is visible.
One twenty.
That means fast one.
So if you go to our rapporteur and the rapporteur here, that is our fault, because I just turned it
into this loop area.
So here we have to make the things on here softer before the Sloup so it be totally complete until we
return this, OK?
So here you have to add it on here because of all you can see is only getting our first look data.
So it not added our second loop and our third loop.
So here you have to make sure you added that things are outside this for loop, OK?
So here actually our outside this for loop, I just simply define our return total as a all.
Now refresh it.
Yes.
You can see now it's perfect.
There are 120, 15, 20 is equal to 150.
OK, and also here you can display that the two decimal character then it's really better.
Signor Carders Jamul after this, I want to define the filter as a flawed, flawed format.
So it just flows from it.
I define as a to single character.
So I just simply defended the to save all efficient.
Yeah.
Because it's not perfect.
And also after this I want to define another two of this.
Bottom one will be as a continue shipping, another will be as a process to payment.
OK, so this step to whatever button I want to define so that the Tibaldi.
And the result, years after this year, I want to take another one.
So you have to take another year and the year the live another D.H.
And for the front of this scope, OK, the simplified telescope will be as a rule.
So here we want to do that will be the empty.
And after this, I am adopted.
And here is the final call spend.
So I defended the pain will be as before.
OK, so make it as a college paid for and hear the front of class class I define as a text, right.
And here a defender of the area and they area.
I want to defend the class.
So I just simply defend the bottom class as a meeting between orning, OK, between between orning and
AAMA four.
So here I want to define this class and here it shall be as I continue shopping.
Continue shopping.
So this step up on the button, I want to define and also undertake another one.
I take another one.
And here I want to define that as a process, the payment process to payment.
So the same as a process to payment and it will be as different as a success.
OK, it will be as a success.
So now let's check this out.
If you're not looking to save all, now go here, refresh it.
Yeah, you can see it's pretty good so that the words continue shopping and that is our process to payment.
So here, if you click continue shopping, there should be a to our home page.
So here I want to do I want to define already what else you are.
I have already created.
Right.
So now you can actually use it as you are and under the euro area I want to define it so we as our app
shop.
So to the app shop, our home, the whole idea is to be detected.
Perfect.
So here we defined all the things and also now it's perfectly visible.
So now I want to do I want to add our this total order in this card area.
OK, so right now, the three that is a three product in our country.
So this report, that quarter will be visible in our current scenario.
If you want to display it, then you have to do you have to create one of the filter.
Right.
So that means I want to create all the custom filter.
So if you want to create some of the custom filter, I think you already know about it.
So I don't need this card.
Will we needed you all?
Never.
So right now I just simply remove everything from here, OK?
So just simply remove it.
So now if you want to create some the custom filter in our app, that means I want an app already.
I want to create the folder and I just name it as a template, text, template, text.
OK, so this step up on the folder I want to create so that the template tax idea, first of all, you
have to do we have to create one of the file.
I think you already know about it as a underscore and that in it say to somebody that you need underscore
that five and also I want to add to create another one.
I want to create another file and I just name it as a card tag.
Scart underscore tak.
OK, Carranza's khattak Nökkvi.
So this step up on the file I just simply create.
So here first of all you have to do have to add our template that we saw from Django.
So from the Django I have to import Appling but our template.
So just simply added our template and also we have to need our order saw from our app.
That means in our app orders into the app orders, I want to go on to get our models.
That means that a model.
So here I define the models and here from this position, I want to import our order.
OK.
That means our order class.
So if you go model, you can see I have already created all the order classes and I want to learn to
actually add this, because with this order, we have to filter it.
OK.
So for the regions here, I simply defining it.
So that is our order.
And after that I wanted to register it so that it actually register.
Register somebody from the register and the template, so with this template, I want to define that
things in our library.
So I think you already know about it because of all I have already discussed about the things we do,
how can create some custom filters and how we are using it in our project.
Right.
So here at the front of the register and then template and then our library.
So no one to do to the final register.
That means this register on the create one of the filters with this register and then our filter.
So just simplify the filter.
And now the final filter name as a card guard.
Underscore total.
So this type of one of the name I have defined and here also we have to need our users to simply define
that user.
And after that we need our all that object data.
That means in our model that is our orders, so that this order area and get all that our order object
data for the reasons here we have to do I one of the variables in order and our order model.
So we disorder model, I define our objects and then I want to define as a filter and it should be filtering
it without user will be same as a user.
And also here our order will be as a false right.
So just some things I just simply defined as ordered.
So our order will be as a false.
So all that false or I want to take it because it means actually if you go outside and decide that the
order.
So this order will still be as if false that means is not complete.
Right.
That is all pending all that our order.
So I to actually get all that our pending order and then I want to visible in our court area.
OK, so here I want to do this work for the reasons it should be checked at the same user.
It does not and our order field is falling or not.
So when this product will be partyism completely, then automatically our disorder status will be updated
from the false.
True, true.
OK, so I just simply defending it and after that I want to do and defend the condition.
If our order is exist, that means our disorder is exist.
OK, if our disorder is exist, then I want to define here and define the return of all that object.
So I just simply want to return or order object.
So I just simply get our all that object with our zero.
OK, and then after that we have to do we have to define our count.
So that means I want to display that counts.
If you want to display that count that is our in this card area.
So that is our order item.
Right.
So now with this order item on the display, our discard account.
So I just simply defined as the order items with this order item, I defended the count.
So to just simply defined as a count, say to simply define that count.
OK, event and else, Elsas should be returned our zero value data.
So here after this I just simply defined the ls ls there shall we return as a zero.
So now we have to do we have to visibly check.
So we have to be valid in our card that means here.
So for doing this, that is our neighbor.
That means we have to go, we have to go to our neighbor, the template and that is our neighbor.
So first of all, we have to load our this filter.
That is our custom filter.
So I just simply load it.
I just simply load our card and then I name it as a.
And the music card and the text, so I just simply defended the attack.
OK, so first of all, here you have to load it lowered our custom filter.
So I just simply load it.
And after that, that is our card area.
So here I want to visible it after this card here.
I want to display one of the spend spend interdisciplinarity at the front of the class.
So class will be as a bargee goodbody and then Bagchi and I make the things as a light.
So this Bodsworth delight here.
I want to display our this request to the user data so that when the requested user and then I define
our filter.
So here I define our filter name.
I have created, I have created filter name as a card to the light.
So, so we calculate at all that our total data.
So I just simply defining it.
Perfect.
So now let's check this out.
If you click on this table and here but I just close it, close it and run this again.
Because of all, when you actually create one of the custom filter, then you have to run your server
again.
That done automatically should be created on the folder on here.
So I just name it as a run our server the pie and then manage the pie and then run server click as they
enter.
Now, see, it's not clear that one of the folder in particular, that area, so our service is perfectly
running.
So now let's check this out.
If you click on the refresh yards now, because if we're now showing our product right, so there is
a three product that is now visible.
So in our idea perfectly, it's not visible on here.
So I want to do I want to make the things as one of those first bracket, then it should be actually
look at it.
Maybe I just simply carted and here in the first bracket area, I just simply pasted save all the freshet.
Yeah.
You can see it's not perfectly visible.
So now if you go to our home and I want to do all the parties this product because the aquacade.
Now go to al-Khadra, so that is a perfectly added so I want to do and take some the product that is
not least so I'm the good programming and work programming and what is not here.
So I just simply want to buy these products right under the tree or whatever.
I take another one year sequences automatically updated and also stencilling our message as this items
are added in your card.
Perfect.
That means our discard filter is now perfectly working.
And also if you click on Cart, so should be the key to our cart base.
So your next video I want to do on to work for our esteemable option.
That means if you want to remove this product from the discard area, how can remove it?
And after that, how can you update your quantity?
That means if you want to increase your quantity, you can increase it.
If you want to decrease the quantity, you can decrease it from here.
OK, so we can do that work in our next video.
I will show you that things with a live example.
So thanks for watching and I'll see you in the next video.