Welcome back.
Before publishing your e-commerce website, it's very important to make sure that everything is working
perfectly.
And you also need to know that the process of maintaining your e-commerce website is continuous.
So you'll always need to revise your code in case you want to add more features or in case you want
to add more features or in case you want to edit features.
But before, of course, before publishing it, you need to make sure that everything is working.
So one of the most important things that we need to fix before publishing the website is that in all
pages, in almost, almost all pages, I'm using a decision.
A decision is included in every single page like this.
Instead of including it like this.
I'm going to remove it from every single page.
I'm going to remove it from here, and I'm going to remove it from here.
Also from here, I'm going to remove it from here.
Also from here and from here.
Here.
I'm not using it.
And from here as well, we don't we don't have it.
And from here as well, we need to remove it from here.
And we need to remove it from here.
We don't have it here.
We don't have it here, so we don't have it here.
We don't have a decision to start here.
And here payment, we add it up, we have it.
So we need to remove it from here and from the registration.
We also need to remove it from from the top and here as well.
We need to remove it from the top.
And finally from this speech.
So now what I'm going to do is that.
In the end they remember in the header.
In the header already added the session here I said session starts and I'm going to include the header
in every single page because every single page already uses they are the header.
So what I'm going to do is that I'm going to move the header this.
I'm going to move the heather at the top.
I'm going to move to Heather at the top.
So in the head there.
Let me show you the header.
The header, we have the session start and we need to we need to include the other in every single page.
So I'm going to just I'm just, I'm just going to copy the header and then pass it at the top.
I'm going to displayed at the top rather than here.
So I'm going to remove it from here and then added add it up in every single page.
So here is going to be the the.
The weather is going to be here.
And also in the in all of these pages so here account.
I'm going to say.
Here.
They're at the top, and then I'm going to move it.
From.
From and make sure that you don't include the header twice.
You would only need to include the header once.
So let me also move it.
From here and added the top.
And in every single page.
So I'm going to pause and then I'm going to come back to you once I'm done.
So I have the header in every single page, as you can see at the top, either here and header here.
And header here and here.
There.
Here and here.
They're here.
And every single page of this up and they hear itself.
They hit their page itself.
This header has this action added up.
So this is how it works.
And let me now show you what is going to happen if I save and leave me here, then over to the browser.
So now in the browser let me refresh and.
As you can see if I go, for example, to the cart.
It's perfect.
If I go to the shop, it's perfect.
You can go to the account.
You can log in me.
Log in and check that everything is working.
Email account, a leeming log in and make sure that everything is working so it's working perfectly.
There is no problem here.
There is no problem.
So everything is perfect.
Even the payment page is perfect.
Everything is everything is just perfect.
And it's also important to it's also very important to know that you can create a separate file for
decision.
For example, instead of adding it in the header, you can create a separate file and include the session
in it if you want to do this.
But I recommend doing this because this is easier.
You just need to edit in the header and then the header is already is already there in every single
page we have.