Welcome back.
Now, what we need to do is that we need to work on a very important thing or actually two things.
The first thing is that here in the payment that B2B, we need to replace this reserve statement above,
we need to address if statement above decision.
In other words, we want to give the priority to the orders that are inside the users account because
if user clicks on a button from, from their account on the order, on the details of the or actually
on the payment of the order from their account, and if they have something in the cart, the priority
will be will be to the car, to the to the products in the card.
And the order will not be the user will not be able to pay for the order that is waiting in their account.
So this is a problem.
And to fix it, we just need to copy this code and then added above the session and then here and instead
of saying else, if we need to say if and for the session, we need to say.
We need to close the Kaylie bracket and then else if that way it will be fixed.
And there are so many ways to fix this.
You can't even get a variable to decide whether the user came from.
So you can decide whether the user came from their account or from this issue or from the card.
But this is going to fix it, so you don't have to do that, but it depends upon how you want to do
it.
So let me use this method and show you that it will work.
So if user.
If I go to they can't let me go to their car.
And if I click on, check out.
And if I go to.
My if I fill out this form.
And if you click on place order, the order will be placed and here it's going to display the amount.
And if I go to my account and click on one of the orders, for example, of the first order, click
on details and then click on payment.
The amount is 405.
So we don't have a collision between the amount in the card and the amount in the.
In the user's account, the products in the user's account, which is great, which is very important
and great.