1 00:00:00,920 --> 00:00:01,580 Welcome back. 2 00:00:02,000 --> 00:00:07,520 Now, what we need to do is that we need to work on a very important thing or actually two things. 3 00:00:07,850 --> 00:00:15,410 The first thing is that here in the payment that B2B, we need to replace this reserve statement above, 4 00:00:15,420 --> 00:00:17,420 we need to address if statement above decision. 5 00:00:17,780 --> 00:00:26,330 In other words, we want to give the priority to the orders that are inside the users account because 6 00:00:26,960 --> 00:00:34,190 if user clicks on a button from, from their account on the order, on the details of the or actually 7 00:00:34,190 --> 00:00:41,120 on the payment of the order from their account, and if they have something in the cart, the priority 8 00:00:41,120 --> 00:00:45,680 will be will be to the car, to the to the products in the card. 9 00:00:45,680 --> 00:00:52,760 And the order will not be the user will not be able to pay for the order that is waiting in their account. 10 00:00:53,570 --> 00:00:54,470 So this is a problem. 11 00:00:54,470 --> 00:01:02,960 And to fix it, we just need to copy this code and then added above the session and then here and instead 12 00:01:02,960 --> 00:01:07,790 of saying else, if we need to say if and for the session, we need to say. 13 00:01:11,070 --> 00:01:15,390 We need to close the Kaylie bracket and then else if that way it will be fixed. 14 00:01:16,000 --> 00:01:18,120 And there are so many ways to fix this. 15 00:01:18,480 --> 00:01:22,050 You can't even get a variable to decide whether the user came from. 16 00:01:22,320 --> 00:01:26,760 So you can decide whether the user came from their account or from this issue or from the card. 17 00:01:27,360 --> 00:01:32,880 But this is going to fix it, so you don't have to do that, but it depends upon how you want to do 18 00:01:32,880 --> 00:01:33,000 it. 19 00:01:33,010 --> 00:01:35,640 So let me use this method and show you that it will work. 20 00:01:36,210 --> 00:01:37,140 So if user. 21 00:01:38,490 --> 00:01:41,160 If I go to they can't let me go to their car. 22 00:01:41,850 --> 00:01:44,310 And if I click on, check out. 23 00:01:45,180 --> 00:01:46,800 And if I go to. 24 00:01:48,590 --> 00:01:50,330 My if I fill out this form. 25 00:01:51,970 --> 00:01:57,160 And if you click on place order, the order will be placed and here it's going to display the amount. 26 00:01:57,580 --> 00:02:03,220 And if I go to my account and click on one of the orders, for example, of the first order, click 27 00:02:03,220 --> 00:02:04,990 on details and then click on payment. 28 00:02:05,500 --> 00:02:07,060 The amount is 405. 29 00:02:07,060 --> 00:02:14,680 So we don't have a collision between the amount in the card and the amount in the. 30 00:02:16,110 --> 00:02:23,210 In the user's account, the products in the user's account, which is great, which is very important 31 00:02:23,220 --> 00:02:23,580 and great.