And after that, we are going to take our studies and function for the second product in order to add
all this thing, and this is is this process, we OK for the second product now?
We are going to create we are going to create also an array for our products.
And we are going to ask now this question.
We are going to say if this items in this case, these items is not any more recruits because you give
already something to Ricard's and this condition is going to be equal to true.
And we are going to agree now in this if condition, in this if condition.
And we are going to call this function, this PSV function regular is OK.
We we're going to ask this question.
For example, the first products I took is a Strawbery, OK, I it's Robair.
And the second time I want to add something to please the Tumut DeFries product I want to add for example,
is too much and I want to add seven times and I'm going to click also and I click again through the
format.
OK, so I took to cut a single product by two times to quantity.
OK, so we are going to be asking this question here inside because while having a single product we
have, we must also have a single item.
But in that same can have several quantities or several quantities written where we are asking this
question, if every creek exists, if we have already a product idea with this product, which has been
already added.
OK, and here we have this item.
So we are going to say if areca exists, OK, if this item is already there, that means we have the
product price, which is the same, the product image.
And we want to say the storage item is going to be equal to these items.
OK, products.
OK, we're going to say all these products that we have already saved here, just here it is the same
product that we want also to add.
And we are going through all the right, OK, in order to in order to have a in order another array.
OK, the index, we have this a a decided OK, this value.
We are going just all the right to overwrite this in our story item.
So reasonable we can see here and we are going to increment the quantity is equal to two.
OK, we are going to get all this.
Take all this.
Can't take all this.
And we are going to come up here, say also this item we are is going to be equal to story item with
the same main item.
So I think that's it.
Can it can be it whether
it can be quite difficult, but you can make more exercise is going to be very simple.
So and here the thing we're going to do here is to make DG session gets cut in order to display what
I have was clicking, for example, on is this is your product.
You know, there two ladies show what you want to mean.
So let us click on this.
Click here.
Or is it?
Seishin.
OK, so here we can see are calling the session, we must also.
Say, U.S..
OK, U.S., so do not forget this, because we are calling this session plus your next year or so to.
Position there.
OK, so I click here.
OK, very good.
OK, so you're going to see you have this, OK, this is our items in pleura.
We have total quantity, which is equal to what, a total price, which is equal to a 100.
This is the first product that we have just added every item in our records.
OK, and if we try to make a record, the PSP you're going to see we have in these items.
OK, we have this this week idee.
We have eRate we have this index and we are going to have our story item about the tomato.
OK, and if we try to click here to see you're going to see we have an error here.
OK, if we try to click here, you're going to see we have this index which is equal to.
We have three, OK, because they can still have the products.
I mean, we can see here we have this 18 product, which is true to now.
It's free now.
OK, and this is the index of what we had here.
And if we try to open this array, is this Physick array, we are going to see the singular quantity
is going to be equal to one.
OK, and the product side is three products that we have.
All this we can see and we are close to items.
And here the total quantity is going to be one because we only want we have only one product in our.
We have only one product in our records, and the total price also is equal to two one, and I think
that's very simple.
So you can do the same thing with a strawberry, like you're going to see here, total quantity just
up in here, like you're going to see all the specific products.
OK, so I think that it is very useful to use these and then we are going to.
Comment is, OK, so we are going to say no here and it's time we are going to add something in our
records, OK, where the rate in our rate is going to be increased.
And here we have written read rates, too.
So here I'm going to need you to try first written back.
OK, we're back.
I'm going to I'm going to tell you written back like this.
OK, so let us back here.
It is a very simple just click here, a two cards, very good, OK?
So let us get noticed, because here, here Sition has court and session gates, we have this came close
here you have a session putes session Put's.
OK, so now we can easily get.
Here, consecutive session gets cut the cake and the decision gets cut.
We can't get the total quantity, OK?
We can't get the total quantity.
It is very simple and we are going to come in over.
Clients, layouts, clients, we're here with navigation bar, okay, we are going to look for our records,
which raised our records.
Yes, this is our records and in such, here will be a port, all OK and others.
So what are we to do here?
We're going to grab this.
We are going to be asking a question.
Are we going to say Seishin?
The card has cards so we can say the same thing.
OK, so do not forget or put in.
I call this like this.
Sishen session is Cartes.
It's here and we're going to say.
And just in such year, we secession.
Station gift cards.
Okay, and here we say to talk quantity, so you want to take the same thing with words you just put
in already cartloads.
We okay to talk quantity because you want to display the total quantity.
Let us wait to see what we're going to have, like a reaction that is okay.
Otherwise, we are going to get zero.
It is going to be equal to zero, so let us wait to see we have already something to cut.
Let us reload.
Where is it something terrible, total quantity, or is this sort of just big fists or hear you say.
Well, it looked like these.
I can't look this like a total quantity not to put the dollar sign.
Okay, so this is the problem.
That's what his letters were.
Zietz restring.
And the reason?
It is not this.
Were close, no doubt, pleaders Putri.
Those are just break its first session is called.
OK, so there's a reward for this.
To.
It's big.
OK, very good.
Okay, so you're going to see for years, once you're OK, so normally we must or have instead of the
square brackets.
So what we're going to do.
So let us grip all this and put it just in such here.
OK, sorry.
Just switch back here.
Reloads.
There it goes like this.
OK, so we must all put inside this square brackets, I can't you know, that's what this is all things
like this.
Yes.
And if we try to come here and shop aides, you know, their product.
Very good.
You can see we have to we can't.
If I come also true, this is the total quantity, we have three.
OK, we have to tell Quantitate, we have three, but for the Tohmatsu we have to quantity for so we
have only one quantity.
So we are going to do the same thing with our homepage.
OK, it is different products here.
Here we are going to put the same year.
So we are going to come here in open shop that bladers BHP.
I think this part is quite difficult, but the cut so we can learn how to customize your own car.
It does come here.
OK, you can take this year in which is the same year.
It does copy from our shop that BHP and we are going to put it in our bladers PSP.
So readers click on it.
You good luck.
We also have yes, because I is here, just passes here and here also if we try to reload this page.
So this is the importance of return if we try to come in or a glance controller, OK, Rittenberg allows
you to be in the same page after a clicking, OK, after clicking, for example, something like back,
you're going to return the same page.
OK, so if I were to add another click here and I'm going to return also to the home page.
OK, just click here.
You're going to see here the final product.
So in the next video, the thing we're going to do now is to view all these products in our records.