Hello, friend.
We'll come back in a previous video, we successfully lowered our forms, that means our check out from
and also from here.
If you want to update any addresses and the post code and any other cities and countries, you can update
it.
So right now, I want to do and visible all the talk card product in the car.
You that have some the product and also there is a product quantity.
And now I want to do want to get all that our product name or the quantity.
And also if you want to show that our total amount that you have to pay before that, check out.
So here I want to look at it, OK.
So for the business here, I have already on the call three.
So in the country area, I want to display it.
So for doing this, we have to do we have to work, in our view, to now go to our view that we in our
opinion and our views.
Right.
So here so when this data will be saved and it should be sure that message and after this, I want to
do I want to pass all the tower, all the data.
So here in particular, that position I just take as all the queries that this order underscore is OK,
sort of queries here I want to do and to define our order model.
So for the results here, I have already loaded our order.
Right.
There is order and the cart.
So now with this order will get all that our order details.
So that is all the order information.
So I only find all this order.
I want to define all that our order object so all the lower order objects will be the filter and the
filter area.
Here we have to do we have to pass our user user is the to the user.
It's not that the requested user and also our order will be at the false right.
So I have already discussed about that.
Things with you that will be our order and order will will be as a false.
That means that is actually our unpaid all that order.
Right.
So our unpaid order is order feel that is are false.
I just simply defining it.
And after that I want to do I want to get all the our order items.
So if you want to get it.
So I just take all the variable as an order item, I can order items.
And now with this order, so here I have already get all that our pending product order.
So do the pending product orders.
I just take that thing with this variable.
Sit down here with this.
We have do we have to convert it with our object?
So that is our object.
And now I have to define our order items.
All that means if you go to our order, that is in our order.
If you go to that model and the model area, if you go to that, our order, that is our order items.
Right.
So with these other items I want to do and to get all that our order.
So for the reasons here, we have to do, we have to defining it.
So here I just have to define order items and then our all the total items that are simply defined as
all right.
Fit and then I don't want to also I get our total amount that we in our cart area.
That is our total amount for the total amount I have already created.
One of the function, I think you remember it, if you go to our model in the model area, I have already
created one of the function as a total stright.
So with these totals we will get our total order amount so no one to do to get it.
So in our views.
So after this, after this, I name it as an order total.
OK, name it is order total.
So with this order total, I want to display our all that order.
That means all that are pending order.
Sorry.
So all that our pending order that is are all the pending order and the spending order.
We have to define our object as a zero object.
And then I want to do and to get our all that order function.
That means all that our order function I have defined with the order totals.
That means our total order amount will be visible.
So no, I just simply defined our gate totals amount.
OK, and also now we have to do we have to pass it.
We have to pass our order item.
So after this OK, after this I just simply pass our order item to our checkout base.
And also I want to do and pass our total amount that the total amount.
So after this I want to pass our total amount.
So that is our total amount.
So now we can actually display all that our order item and also we can display our total amount.
Right.
So now we have to do have to work in our displays.
That means our checkout notice.
Tamalpais.
So now go to our check, Autodesk Tamalpais.
And here I have already created on the call MDT.
So here I want to visible it.
So for doing this, first of all, I take one of the div, I take all the Dave and here I define of
the class name as a card.
So here I define the card class and then our dev body.
That means the three card body guard and then body suit with the card for the area I want to do.
Display one of that you will, because heroes, we have to add on the for loop, so into the evil area.
I better be from the class for this one.
So class will be the least group, OK, at least.
And then group this group and then the last group plus.
Group and influence say they're simply defending that class and after that, here we have to define
all the for loop.
So here that will be as a four and then I have get all the other items right.
So from here, I get all the other items with the orders.
That means that our order items.
Right.
So now I just simply defining it.
That will be as orders item.
So here I name it as the order underscore item and and in our order items.
Right.
And also we have to do we have to finish it.
So I just simply finish our four loop.
That means that and for so just simply and this for and in particular that area be one of the L.A. and
the L.A. area, I define the class.
So class will be as a list of item.
So list to group.
OK, newsgroup item and to this class area.
I want to display our total things.
That means here I want to display our with this order item.
So with this order item, I want to display our product name.
That means that is in our product.
So if you go to our cart, so that is your card.
And then if you go to our app shop and that is our model into the product here, you can see that actually
our product name.
So no one to do and actually access out this name.
So if you want to access it, we have to access it with our item name.
That means here you can see that item through this item I have for I define that for any class as a
product, that means this will be elected to our this product and the product.
I want to display this name.
OK, so now we have to defining it.
So we have to defining it item.
So here so here I define as the order item will be our item and then our item name.
Right.
And also here I want to display that quantity.
So here I define as equal to and also with this order item.
So with this sort of item, I want to display our quantity.
So that is our quantity.
That is in our current area.
That is our quantity.
Right.
So now I just simply copy it.
And here our order item into the order.
I definitely have to define our quantity that this will be also showing our all the quantity so perfect.
Now, if you click the save all, I just need to save all.
No, refresh it.
Now go to our check out.
Yes, you can see now they have the two products and now our two product is visible, right?
That is our one product and also still showing as a quantity.
So there are two quantity and that is our product name and there is a quantity.
If we go to our cart, you can see the reservoir.
I am just a good programmer to this teacher as a two quantity for the reasons very consistent showing
as to quantity better.
I want to do after this, after this definitive quantity.
You do like that.
It will be better save all.
Refreshing to you, you can see the on quantity and now also on the visible, our total amount, that
means the total prize among the visible.
So that is our equals.
So that is our Bhave.
So after this date, OK, after this live here, I want to do undertake another day.
If I take another day and define that as a cartful to let down the middle class as a future.
And then here I'd be for the spin and the spin I defend the class and class will be as if not a float
left.
That means it be displayed.
On the left are the order order total.
So the total only visible.
And also after that I take another spin and with the spin area I define that class a class will be as
a float.
Flawed, right, and then here shall be displayed our total price, that means, in our view here from
here, I pass our total order.
That means actually with this order total.
So, no, I just simply pissed that our order total and also here refused to define that two decimal
correctly.
You can define it with the filter as a float float and the format.
So the simply defined as a float format will be added to decimal characters are just simply defined
as the two decimal character print and also that price get around to 200 different of the dollar sign
that it will be our dollar legal to save all.
Now, refreshing.
Yeah, with perfectly consistent, perfectly display our total aura, that means our order total and
with our order total, total is visible, right.
So better candidate to make the things as a bold.
That means here I take one of the bettag and the area I want to call it.
And here I passed it.
And also I take another V-Tech and into the beta area.
I just got it.
And here I just simply pissed it not only to save all and no, refresh it.
Yeah, it's not perfect.
So right now they have the two product in our cart, right, so that the two product is just a good
programmer and programmers thinking now if you go like this product, I want to take a look at the apple
cart now.
You can see our card is updated.
Go here right now and have the three product go to the check out here.
You can see so perfectly showing our this product and also showing our quantity filled up with this
quantity.
I just added this quantity wanted is updated for our best t shirt.
Go to the check out here.
You can see it's now updated that quantity.
So friend, here I am not focusing to create some of the design.
So if you already knew about the design function, then you can designing it as pretty much right.
So now here we successfully updated our all the shipping addresses and that is our all the product card
quantity and then the regular order total amount is also visible.
So now we have to do we have to add that payment possible.
Can do that work.
In our next video, I will show that things with a live example.
So thanks for watching and I will see you in the next video.