Hello, friend, welcome back.
In a previous video, we successfully aired our product in our car area.
If you go to our database, into the database in our car, so into the car area right now, they have
the three product.
And also for this car, it's automatically generated on the order so that your order object into the
order object.
You can see that is all that our product is now visible.
And this order actually the faults.
And also if you go to your card into the card area, our patches is no false.
Right?
So now I want to do I want to get all the talk product.
That means all the card product and the visible lead in our discussion here for the results here, I
want to do want to create one of the pays for this.
And here I want to view it right.
So if you want to do that work, you have to do you have to work in our order.
That means our app order, go to our view and into the video and want to create one of the functions.
So it should be also as a logging record.
So after this but this year, I want to define on the view that the logging declared and here of the
function, and I just named it function as a card view card, underscore, view a good friend.
And also here we have to do we have to pass all requests.
I just simply pass that request.
And now, first of all, we have to do we have to filter all the data.
Right.
So here I have already all the data in our card and also I have some of the data in our order.
So first of all, here we have to filter all that object.
So now I want to do that work.
So here I take one of the object name as a card, OK?
I just name it as a card.
And in the card area with our card that was in our card models, I have already loaded our model because
I have already loaded our current model and the order modules to this card will get all the card data
and also with this order we will get our all that data.
So right now I want to learn to define our card.
So with this card here, I define as objects, so objects and then I define the filter.
So I just simply define that filter.
And I it will be filtering this user, actually, the requested user or not.
So for the reasons here, I define the user would be as they are already existed, requested user.
Right.
And also if you go to your card into the card area, if you open it and into the purchase area by default,
I make that things as are false.
Right.
So here we have to defining it.
So after that here also defining the packages, that means the packages will be a default.
So I just simply defined as a false and also we have to define the same things for our order.
So I just send me the order and then with our order model.
So this order model, I define that our objects and then filter I to simplify the filter and also to
filter out our user.
That means our user is the requested user.
So it will be as requested user.
And also if you go to our order into the order, you can see that is also ordered.
So this order should be as if false because of all we need will be as a checkmark.
That means this is that order actually already complete.
Right.
So right now I have to also defending it.
So all that our pending order, we have to get right.
So for the reasons here, I want to define our ordered that is our ordered field will be a default.
So I just simply defined that as a false document.
And now I want to do I want to define on the condition if our card.
That means if our card area, if they have any product is exist and also in our order area, if any
orders exist, then I want to get all that our object data.
So for the reasons here, I want to do under the funnel the if condition, if our cards OK for cards
is exist.
So if our cards exist and also order so this order better able to make the things as a multiple as an
order orders.
OK, if this our cards exist and if our orders exist, they just simply cannot exist, exist.
So here I have to defining it so that this card is exist and also and our orders exist.
So if they have any card in Elkhart, Ind., if that have any order in our order area, then what exactly
should we do?
It should be get this data by the object.
So here I define that our disorder and then our order of the data.
So orders.
So these object that I want to get.
So that will be as a zero.
OK, so here I just converted it.
And after this, after this I have to do I have to define the return and it'll be done one of the base.
OK, that means here I want to display all the base, all the other card details.
So here I define the render so I just want to render and render will be with the request.
And here I don't want to pass on the base.
So that will be in our app.
And that means in our app order, so do the.
The area in our template played into the template that was in our airport area and to create the file,
I just name it.
I just don't have the file as a card, not estimates.
OK, so I just simply name it as a cartoonist.
So, no, I have to do find that link.
So that will be as a card dot as HTML.
Right.
And also here we have to pass our all that card data.
That means we have to pass it in the context.
So in this context, I want to do and pass our first of all, that will be our cards that we discuss
all the data.
And here I just simply pass it.
And also we have to do we have to pass our orders.
So I just simply pass that orders of a friend.
So if we get any data, then it shall be pass the data into the card area, that card or else that between
this hour, this condition will be not works.
Let me see if there have no cards that are rather than they have no other data, then I want to belong
to the front of the Ayles condition aless to be sure some of the message actually.
So I just simplify the messages.
And with these messages, you should be as a warning.
OK, I just named one of the tag on tag and the only tag area.
I just passed that request and it will be sure on the message as if you don't you don't have any item
in your card.
So this step of one of the messages will be displayed, OK, and after that I don't want to return it.
So I just simply done the return redirect return to our home page to be redacted.
So our home page I have defined in our app shop that within our app shop, our home.
So is simply defining it on here.
OK, so here if you get an existing data then it will be returned to our car totals.
Tamalpais Aless will be displayed this type of ball dorning message as if you don't have any sabater
any OK, you don't have any item in your card and then it will be rejected to our app shop homepage.
So now we have to do we have to create our displays that we see in our app order that you can do this.
So now go to our App Order and that map order that Elcano Distomo.
So yeah, now we have to do have to visible all that our product.
So first of all I think you already know about it here.
We have to do we have to edit our extended right that it extends.
So I just believe in the extent and it should be extend our which one basis tml say to simply defined
as a basis.
And also after that we need our body block.
So I just simply defined as a block and block will be our borders or block.
OK, just simply define the body block.
And also we have to and this body block.
So here I just simplified and block.
Perfect.
So now in particular that really I want to do and define sound that Dave.
So here I define another bootstrap glass as a container, OK, container and then my five.
So I just simply defending the container, my five and then I take another Dave and here I define the
classes in my file so that I declare on my file.
OK, and then I also want to define what the extra deck and here I define.
Is that your card.
So your card at least one of the tags on the visible.
And after this there look after this, Dave.
Here I take one of the table and the table area in the front of the bootstrap table plus table class
as a table and table table, however.
So just name it as a class on the table table will hover, OK?
And then we need our Chehade, so I just simplify the trade.
So that is all that XHTML called.
I think you already know about it, if you will, if you have any idea, e-mail and access.
So that is pretty much basically that code so that the already are defined as a DH.
OK, and in the area I define of the scope, ok, just simply define the scope is scope will be as cool.
And then also I make the things as a hash that will be actually our cereal, all that code.
OK, and Peter, I also want to do on the defense of the White for this one, because this will be very
small size.
So I just simply defined as a white and white will be as a I just make the 15 percent, OK, 15 percent.
These type of things are still visible.
And also after that, I take another page and also here the of the scope.
So the scope will be as cool.
And here I want to show some of the name better.
I copy it because here I want to display the product name.
The product quantity will be needed.
Right.
So I just name it as a product name, product name.
And also I want to show that quantity.
So just name it as a quantity and also the price.
OK, just name it as a price.
And also I want to undertake another one.
I take another one for our remove button.
So we have to also remove it.
If you want to remove that card from the card list, then you have to.
Defining each side is similar, different is removed.
So that define something as a remove them.
OK, and that is surprise.
Surprise.
I want to do want to make that align.
So a line I see in a line will be in our eye, make it the right.
OK, so it should be the right position.
That will be our prize.
And that is already Moombahton perfect.
And after this, you know, after that they hit OK, after this, did I take another Tibaldi into the
body area?
I want to visible our everything that was in our TIAR.
So before this year I wanted to take all that our data.
So here I have to do I have to defend the forage.
So I just simply define that for this data.
That is how far I name it from The View.
I have passed the cards.
Right.
So here I make it as a card, a card in cards.
So now with this card, we can actually visible all that our data.
Right.
So now also after that, we're here.
I want to end it.
So just simply and far so that is actually lower and for perfect.
So now I want to do the visible or all that name.
So here at the front of the D.H and the DHS, first of all, that is our hash has been sexually, we
automatically serialize that number.
So if you want to see lines that they have also on the function, so they have also the function and
Django that is are for loop, that means the for loop counter so that what the follow counters will
be automatically created one of the one, two, three in the step of of the serial number.
So now I just simply defining it and also here I define our scope.
OK, I just simply defined the scope will be as a rule.
So that is all the bootstrap class.
And also after this, I want to do an attack on the TV and the trio to do on the display our name.
That means our product name.
So if you want to display that product, then you have to define that things with this card.
Right.
So with this card here, we have to define what this item name if you go to our model.
That means if you go to our order airport, our models and the models here, that is actually our item
that is in our cart into the card.
That is our item.
Right.
So now I don't want to access our name.
That means our card area.
That is our item.
That is also Franchi with our products into the products area that is actually Ghneim.
So if you now go to our products, that means if you go to our app shop into the app shop if you go.
If you go to that model and here you can see our product name, I have defined as a name, right?
So now we have to do we have to do something like that where it should be.
First of all, a decorator item that was in our cart item.
And with the current item, I have already defined our foreign GI with our products.
So that will be our product name.
Right.
So now I just simply defining it.
It will be as a card and then our item and then our name.
That means our database will name as a name and also under to undertake another field.
So I want to take another field is still be e I want to take our quantity.
That means that is actually the quantity in our card area.
So with this card, so with this card I want to display our quantity field.
OK, so to simply define that filename perfect.
And for the quantity here, I also want to define that it shall be as a plus minus.
OK, so this step of one of the five I can only use if you go to the FA fa and here you go here and
I'll go to that icons.
And the comes I want to use that plus minus.
So here.
But I saw it, I saw two to the plus, OK, plus so that is all plus plus icon that is our icon.
There is a check mark icon gone.
So I.
Surjit.
So, Saajid, you consider rejected our class action, so that is like when I want to use and also for
the miners, I want to use these miners, OK, so I opened both of this that it will be our plus and
that will be our minocycline.
So now here I want to do to define both of these, that means in our area.
So, you know, this area I want to define, first of all, as a native into the area, I define the
class.
So class will be as a are to it is simply defined as to.
And here, here I want to define this spend.
OK.
The family's been under this penalty at the front of the class, so here at the front of the body,
that is actually the designing option, whatever you want.
So I just simply wanted the body parts.
And then also another one of the lights.
I just want to use it as a light.
OK, and here in our particular, that is area I want to do the visible hour, this plus and the minus.
So here there is our plaza here around the visible, first of all, in our left side, used to be as
a minus.
So I just simply copy it.
And here after this into this, I just simply passed it.
OK, so here, that will be our one.
And also we have to define the same things for all minus.
So better I just simply copy it.
So after that there is a quantity quantitatively visible in after this quantity I take another one and
it will be as our minus.
That means that plus.
So that means this plus I just simply copied and here in our area I just simply updated as a five hour
plus.
Perfect.
So now first of all, on the jacket like here, if you don't click the save all.
So that is all server is now running and now I want to do go here, refresh it, because I didn't find
any link.
So here also we have to do have to create one of the you Alfonso in our app order into the app ordered
the result.
You are allowed into the euro area and do want to create another model, which I just simply copied.
And here it is simply pasted.
It will be as a card.
OK, just name it as a card.
And then in our view area, I have already defined the function, our function name as a card view.
So here I define our function name as a card view and I just name it as a card, ok.
I just name it as a card.
So that is our app name as the app order and that is our cards.
And I wanted to put this link and put this link in our disinhibit area.
So now if you go to our neighbor, that means that is actually our neighbor.
And here there is a cloud cast into the card area.
You can see that is also on the head.
So here I want to do want to put it put this link.
So I just simply define sorry.
I just simply find out what you what you what will be in our app underscore order and the app order
I have created as a card.
Right.
I just simply defined that link so you can actually access it as a table because I have already saw
the data in our card.
Right.
So this data should be visible.
Now I just refresh it now.
Go to our card.
Yeah.
You can see it's not perfectly get all that our data from our database right now, the three product
and you can see it's also showing us the tree product and also still offering our perfect data.
That means this product.
I have added that quantity as a tool.
If you go to our database, that is a programming is thinking.
You can see there is a quantity field as a tool right now.
It's perfectly visible are going to be added to.
So now I want to do want to add it all that our price.
So that is actually surprisingly visible.
And here I also want to define all that, our grand total.
So how can this played be trying to do and to continue this process?
You know, next video, I will show that things with a live example.
So thanks for watching and I will see you in the next video.