I've been cracking my head open trying to figure out a way around this and every time I get either a blank page.

PHP Code:
<?php
if (!IS_ADMIN_FLAG) { 
    global 
$order$db;
      if ((
$order->info['total'] < MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN) && (substr_count($_SESSION['shipping']['id'], 'freeoptions') !=0)) { 
  
    echo 
'<div style="border: 3px solid #777777; padding: 10px 0;"><p style="text-align: center;"><strong>Your order no longer qualifies for Free Shipping.</strong></p>
    <p style="text-align: center;"><strong>The total for your order is below the minimum qualifying for Free Shipping.</strong></p>
    <p style="text-align: center;"><strong>Please head back to the - <a href="index.php?main_page=shopping_cart">SHOPPING BAG</a> - to increase the quantity of products in your bag, add more products or select 
    a different shipping option.</strong></p>'

    echo
'<span id="opc-order-confirm"></span>'
    
    } elseif {  ((
$order->info['total'] < MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN) && (substr_count($_SESSION['shipping']['id'], 'freeoptions') !=0) && ($_SESSION['cot_gv'] !=0)) { 
     echo 
'<div class="buttonRow">' TEXT_CONTINUE_CHECKOUT_PROCEDURE '</div>';
     echo 
'<div class="buttonRow confirm-order">' zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDERBUTTON_CONTINUE_CHECKOUT_CONFIRMATION_ALT'name="btn_submit" id="btn_submit"') . '</div>';
 
  } else {
?>
What am I not getting right?... Could someone help me figure this out?...