Welcome back.
Now, what I'm going to do is that I'm going to get all products and display and activate the section.
So we have addresses, we have watches, we have shoes.
So we need to activate all of these.
And to do this, we need to open the index.
I'm going to open up the index.
So in the index here in the index we have here at the top I the header and we need we need to import,
we need to import.
Remember, we need to import the we need to create the file that's going to get these products.
So we need to create a file that that's going to get, which is costs and shoes.
So let me create these files.
I'm going to here in the server, I'm going to create a new file called Get Watches that Reach Me.
And another file called.
Get.
Courts that BHP and we already have the courts so we need to get the issues that BHP.
So we have the courts and we have the issues.
So let me copy because from the from the featured.
So let me here select all and copy and then let me hear pasted in the shoes and pasted also in the watches
and in the courts.
We already have the court here.
So now what I'm going to do is that I'm going to say in the watches, get select all from products and
then limit limits for.
But instead of saying select all from products, we need to add a condition here.
We need to say select all from products.
Where?
Where.
Product.
Category is equal to.
Exactly.
Like the cards here.
So.
Here, watch.
It's.
Watches and hears similarly in the showers.
We need to say where.
Where?
Product.
Category is equal to shoes.
And then, as we did here, we need to create a different variable here.
Let me say here watch is.
Watch, adjust or just watch it or watch it.
Let's let's say watches.
And here in the shoes I'm going to say should.
Shoes.
Now, what we need to do is that we need to save everything and the index.
We need to import these files.
So we need to import them in the correct section.
So we have here the watches.
So in the watches, what I'm going to do is that I'm going to remove all products and I'm going to leave
only one.
So here, starting from here, I'm going to leave this product.
This is the first product, and then I'm going to remove the second, the third and the fourth.
Similarly, with the shoes I'm going to remove, I'm going to keep only one product here.
This.
And then I'm going to remove the second.
The third.
And the last one.
And be very careful because you wouldn't want to do it to remove something you want to use.
Also in the courts.
Or actually, it's it's the clock.
So here we need to.
We already worked on this, so there's no need to do anything.
Now, let me refresh.
And now, as you can see, we have one watch and one shoes.
And here this we we have already worked on this earlier.
But for the gloves here, we need to activate the button.
We need to activate this button.
Right.
Adjust just just like we did here with the single product.
So I'm going to copy this line of good.
And then I'm going to sit here in the.
And the gloves.
And instead of this button.
And let me test.
So the clock should work now.
Click on Add to Cart.
It's going to it's going to go to the single product page.
Now let's work on the watches.
So for the watches or the watches here, I'm going to create a loop.
I'm going to say we.
BHP and then instead of creating the loop, maybe copy it from here.
I'm not I'm going to sit here and we're going to change the variable.
So the variable is here for watches is obviously watches.
Watches.
Fetch us await at the end.
We need to use the clause that BHP clearly bracket.
And in between we need to display the here, the product name, BHP and then echo.
Ra ra ra technique.
Project.
Name.
And then project Bryce.
Echo Ra.
Product.
Right.
And lastly, we need to display the baton.
So I'm going to hit the button from here.
We have this button.
I'm going.
I'm going to sit here.
For the image.
We already worked on the image.
So instead of repeating this, I'm going to get the image from here.
I'm going to copy this and then I'm going to paste it below.
Similarly for for for these shoes, we need to do the same.
So I'm going to copy most of the code.
I'm going to copy this, then I'm going to add it here.
And then I'm going to copy the image.
And then I'm going to sit here.
And lastly, I'm going to copy the three lines.
These three lines, actually.
Yes, these three lines.
I'm going to copy these three lines because the artist missing.
And then I'm going to paste base them here instead of these static lines.
And finally, don't forget to close here, the BHP curly brackets.
Finally, there is a problem that we need to work on, which is importing the files.
So you need to import the files right above the loop.
So here I'm going to say BHP and then for the shoes, for the watches.
First we need to say include include server server for us.
Let's get get watches here.
And for the above the shows we need also to say.
BHP.
Include server.
Server or slash get choose and let me save on let me refresh now I don't I, I don't have I don't think
that they have shoes and watches, therefore I'm going to get nothing.
So the next step is that I'm going to fill up my database with watches and choose before I test.
Because as you can see, there is nothing because I didn't add shows or what is in my database in my
products table.