Hello, friend.
We'll come back, you know, previous video, we successfully complete our payment options, right?
So here we successfully complete some of the payment and also we successfully completed some of the
order.
So no one to do and visible all the total in our audit area so far, getting all the data we have to
do, have to create all the function.
So now go to our view better.
I just you the save also right now we don't need this.
I just simply remove everything from here.
OK, so I just simply remove everything that means that is in our app blocking the desired payment so
that the app payment and the view.
So here we have to work.
So after that, which I want to do and to create another function.
So here should be also the locking the card, OK, and there will be locking required and here the front
of the function name as a Dave order and risker view.
And under the default view here, we have to pass that request.
That means our request.
And also here is a statement I want to use that is to try and accept your statement.
So with this try and every statement that is also one of the Python Tomcat and handle exceptions.
So that is used for Python catch and handle exception.
So with this, we can actually do that work.
So here I want to do and define as a try.
So I just simply defined as a try.
So if you go to the documentation, you will get a lot of the resources with this as a try and accept.
OK, so now I we use that try and do the Tyria area.
First of all, I want to take all that our order.
So I just take another variable orders and then our order model.
Right.
Sorry.
From our order model I get that object so I get that objects and then filter.
So the filter that that user user, is that our request to do that or not?
So I think you understand it right now, that the user will be at the request of the user.
And also right now our order ID already becomes change.
Right.
So now I ordered that is ordered.
I have changed it.
So now I want to do to get our order will be as a true.
So now I just simply defend the truth.
OK, that is all that our true order is.
Shall we get right.
And then I want to define the context so that the context area and the data that I want to pass out,
these are the data which I take all the time, our complete order.
So that is all that are complete.
Or I take the things with this variable as it orders so no one to do and to pass it.
So here I just simply pass our order.
OK, that means the orders and then our orders.
Perfect.
And also to define another statement that is our accept.
So I just simply cannot accept this statement.
And here I want to do some of the message.
OK, so here I define that messages with the with the army.
OK, I just simply defined as orning and here we have to parse that request and then our message as
a Mm.
It you ok.
You do not ok.
You do not have an active.
Order, otherwise, it shall be displayed the step above the message and then it should be done is to
be done.
Redirect it should be done.
Redirect to our home base.
That means our app shop into the app shop.
That is our home route.
Right.
I just simply posit another that needs to be written that we return our render so redundant with this
request here.
I want to do all the policy to our app.
OK, and that machine, our app payment system, that app payment here I want to do to create another
piece because a new file and I just name it as order.
OK, order dot esteemable.
So here I am to do and the password in particular that position in our app payment here I want to do
and defined as the order or the dot SGML.
OK.
And also here define the context.
So that will be the context.
Perfect.
So right now we don't have any data.
So that is our context is empty.
So now we have to also do we have to create of the wall for access that our daughters HTML.
So that means, you know, our app payment here.
Go to that.
What else after this.
After the sound of create an adult world and I just name it as the orders, OK?
I just name it as orders and into the viewing area.
I have created the function name as an order view you, so just simply name it as an order of you.
And here I name it as the orders.
OK, so here I have defined that already.
Well so now we can actually use that you are in our disposition.
That means that is in our neighbour, that is our orders.
Right.
So now go to our neighbors.
That is our neighbours and the neighbour Syria.
I have defined that profile and that is our orders right now and want to take me one so it will be our
order.
So here I want to do that is in our app underscore payment with the app payment here I and I have created.
The appartement and the other orders are just simply defined, that name, it shall be as orders.
So now we have to work in our base.
That means in our order, Dodi's Tamalpais.
So here we have to designing it, Suheir, or whatever you want.
Right now, I want to, first of all, make our extend, OK, extends itself, extends our bases, html
such just simply as a base, not SDMI, and then also our body block will be needed.
So here I defend as a block.
OK, definitive blog will be as a body underscored block, body block, and also we have to do we have
to end this block.
So just simply defined as a block that is that and block.
OK, so the end block.
Perfect.
So here I have defining our template.
That is our best estimates.
Now in particular, that area is depends on your design.
So right now I want to create one of the basic design as a Dave.
And here I defined as a container, which is very much common.
I have always use it as a MDVIP.
So I just simply defined as a container and defined.
And here, here after this I take all the extra Retek and here I define the class.
So here I live in the class and here I define the class as it will be the that center.
OK, I to simplify the center and also I definitely strong into the strong core.
I defended your order.
OK, your orders to step up one of the things fully visible.
And after that I want to take one of them, Dave, for the class.
So here I take some of the role actually.
So I just take as a Dave class as a rule and the rule area, I defend another Dave and as a call D okay.
Call him the twelve.
Sorry, here at the end of the call and be twelve.
And then I want to do and define another Dave and here define the class will be as a card soon.
The card area I define as the empty five ok card empty five and then also on the left on the table.
So before that I want to define the responses.
So I just take another Dave.
Dave will say just simply define the table as possible.
OK, table.
Step up one of the class I want to use and then I take on what they will say on the table.
And for this table, I take one of the class as a table class.
And then also we need our P.H..
That means that he had this.
I just simply defined that he had.
And then I take one of the tier sorry, the R OK into the TR area.
I take one the t h sued the teacher.
I want to define the scope.
I think you already know about it, I make the call.
OK, so call and first of all, it will be as it has, that means a number wise.
And then all the talk page, that means that they will hear they want to define so that no one to define
our hearts.
It we display our order.
I'd like to order idee is still be displayed our product.
So I would say to somebody from the products and also our status.
So that is our status.
OK, it should be displayed this step up all the to our table head and that is our head.
After this head I want to do undertake take our Tebaldi so into the Tibaldi area.
So here we have to do we have to get all that our data through here.
I have already passed all the data with Disorder's.
Right.
So now we have to add all the for loop.
So here I define the for loop as far as the order in orders.
Right.
So that is our orders.
And also we have to do we have to finish it so better if I just finish our and for and here I want to
do I take one of that D-R Sabater on to do and the things that a bit in particular that area.
So that is altius into the tier area.
I define our all that name.
I just take as a t h with the scope, OK, I just simply defined the scope will be as a rule.
So here I define that role and that will be actually our counter.
That means of all the counters, I think you already know about it because of all that is first of all,
I have defined as a no ist.
Right?
So here you can define it, therefore loop and then the counter.
OK, I just simply defined the false counter then automatically should be added.
One, two, three.
The step up on the name.
And also after that I want to do undertake all the TD in the table that our table that are here.
I want to display our order id.
OK that means this order id so here our filename as already.
So now I have to do and the visible it's a bit around to define already as a one of the link that Mhairi.
OK, so here and display our link as in order.
So with this order I want to do because of all that is clearer, all the right.
So we decided we have to define our filename and here that is our rapporteurs into the app if we go
to that model.
So here that is a our order.
You can say that our order already.
So now on to display all that our order ID on here.
So better after that.
That is our order and the order ID and also to take another TV.
So into the area we have to display our all that products.
Right.
So all the products we have to display.
So here that means we have to display the raw items.
So I just simply define all the four Suheir defended for and under.
With this follow up, I want to define our item.
OK, that means if you go to our model, so that is our I here the lower order.
Right and right.
See, the order item means that that is all that our product.
Right.
So here I will have to defining if that means that is in our item and then we have to live in the added
that is in our order item.
So now first of all, I define our product name.
That is the item.
So item will be as in I name it with our order so we don't order here to have defined that name.
So have defined that name as the order item.
So no, I want to do and the display and define what this order item.
OK, and I want to tell all that our order items are what regions are defined as all OK.
And then also we have to do have to display our item name.
So that means here I define our these items, I just simply display our item name, that is all the
product name will be visible.
And also after that we have to do have to add a word for and for.
That means here I just simply define our and for OK, let me then for loop here, I just simply close
it so that all for our order OK.
That's all for our order.
And after that there is already status.
So for the status here I want to do want to define, make the things as a one of the spin class matter.
I just simply define the T and here I take one of the spin and they spin it.
Yeah, I define the class.
So to simplify and the classes should be as a bar de Medici and primary.
OK, but but the primary.
Sorry that will be as a part C but the primary.
OK, and then here in the to enter this place on my stage as a processing.
Your order, that means that is already complete, so now showing it will be sure as a processing your
order to the customer, right.
So here we have to defining it.
So now that's all our field.
Right.
So that's all.
So now if you check it like it is clear to save all.
Now go outside, refresh it now.
Go to that order.
Yes.
You can see it's a perfectly display our all the order ID.
And that is also showing all that, all that our product.
So that is our product.
That is our product.
And that is also showing our status.
So that is our strategy is perfectly reasonable.
Right.
So everything is now perfectly visible.
So now if you add any product, you can add it.
So right now I take only one product and I go to our cart called our process to check out.
Now go to our make Bement.
So right now, there is a 15 hour because and you can also define another one as a because you can see
there is also the success if you make that into a success.
Yeah, you can see it also showing as our payment completely successful and our car is empty.
Go to our orders.
Yeah, you can see there's also another one.
So that is actually our new one.
Perfect.
So, friend, we successfully complete our e-commerce site.
I hope you enjoy it very much.
And a lot of the things actually I shared.
But you have to practice it without practice.
Actually, you cannot remember every functionality.
So in knew back when you try to update it, then that is actually the process that you can develop your
skill.
So make sure you practice it rather than if you face any issues.
If you have any query, just let me know about it.
I'm here for help you as much as I can.
So thanks for watching.
I'll see you in the next video.