« first day  last day (15 days later) » 

10:32 AM
I did checked the code, removed the orginal exception part completely and added the function check slots.
but I am not getting any flash as also all classes are getting booked even if it is already booked in other user session.
May be I am missing something Omer.
 
10:54 AM
Hi Omer, actually I missed this part.
$allSlotsAvailable = $this->checkSlots($order_item);
if ($model->load(Yii::$app->request->post()) && $allSlotsAvailable ) {
but now I am stuck at check out sceen, when I click on checkout for the second user, when some slots are booked from the first user, the screen just looks like moving to top, but no flash. and order is also not placed for the second user(that is correct),
but I am not able to see the flash message.
 
11:52 AM
kartik
do I need to install kartik ext. you have given me in the link
 
12:16 PM
Hi Omer, little progress is there.
Like I have added - <?= Yii::$app->session->getFlash('error'); ?>
in the view file after that I am able to view the msg, but it is not prominent and not formatted well.
 
12:40 PM
Ok Done. I added <h4 style="color:red"> to the error string.
Now I am getting it like this.
Thanks Omer. I think it is resolved now.
 
12:53 PM
Hi Omer, it is not resolved fully, Though the error is showing properly.
but even when I removed the slots which were booked and proceed, those slots won't show, but the string of error still shows and I am not able to place the order.
I had ofcourse modified the code like
//if( sizeof($slots) ){
if( sizeof($slots > 0 )){
Ok. Resolved further modified it like in the answer you had given.
if( sizeof($slots) > 0 ){
so I brought the parenthesis before > and now it seems to be working fine.
 

« first day  last day (15 days later) »