<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<?php if ($shipping_methods) { ?>


    <?php foreach ($shipping_methods as $shipping_method) { ?>
    <div class="item-osc">
    <h2><?php echo $shipping_method['title']; ?></h2>
    <?php if (!$shipping_method['error']) { ?>
    <?php foreach ($shipping_method['quote'] as $quote) { ?>
        <?php if ($quote['code'] == $code || !$code) { ?>
        <div>
            <?php $code = $quote['code']; ?>
                <input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" checked="checked" />
            <?php } else { ?>
                <input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" />
            <?php } ?>
                <label for="<?php echo $quote['code']; ?>"><?php echo $quote['title']; ?> <?php echo $quote['text']; ?></label>
                <div class="clear"></div>
        </div>
    <?php } ?>
<?php } else { ?>
    <div class="error"><?php echo $shipping_method['error']; ?></div>
<?php } ?>
 
</div>
<?php } ?>

<?php } ?>
<script type="text/javascript"><!--
           $("#osc-shipping-data input").click(function(){
           update_three_block(2);
            });

//--></script>