This IF has no purpose, at this time:
Code:
// check total weight
if (IS_ADMIN_FLAG == false) {
          $chk_weight = $_SESSION['cart']->in_cart_check('products_weight','0');
      }
global $cart; is needed in each function ... but just 1 time per function ...