assign( 'org', $org ); $smarty -> assign( 'bank', $bank ); //получаем содержимое корзины $user_id=\core::checkMe(); //echo $user_id; $cart=\DB::getAll("SELECT * FROM `cart` WHERE `user_id`=? AND `order`=?", array($user_id, $_GET['id'])); for ($i=0; $i assign( 'tovar', $cart ); $smarty -> assign( 'itog_bez_nds', $itog_bez_nds ); $smarty -> assign( 'itog_nds', $itog_nds ); $smarty -> assign( 'itog_s_nds', $itog_s_nds ); $smarty -> assign( 'num', count($cart) ); //print_r($cart); //$userOption = \DB::getAll('SELECT * FROM `userOption` WHERE `user_id` = ' . $_SESSION['user_id'] . ' LIMIT 1'); //$smarty -> assign( 'userOption', $userOption ); ?>