Edit Shipping Options At Checkout
Posted: Tue Sep 11, 2012 4:09 am
I've been thrashing around with this, on and off, for a number of days and I still can't seem to make any progress. I'm trying to display the shipping option in the checkout as a drop down menu (select) instead of radio buttons. The file I have been messing with is In particular this bit of code:
If anyone has any thoughts I'd be extremely grateful!
Code: Select all
catalog/view/theme/sellegance/template/checkout/shipping_method.tpl
Code: Select all
<?php if ($shipping_methods) { ?>
<p><?php echo $text_shipping_method; ?></p>
<div class="control-group">
<?php foreach ($shipping_methods as $shipping_method) { ?>
<p><b><?php echo $shipping_method['title']; ?></b></p>
<?php if (!$shipping_method['error']) { ?>
<?php foreach ($shipping_method['quote'] as $quote) { ?>
<label class="radio">
<?php if ($quote['code'] == $code || !$code) { ?>
<?php $code = $quote['code']; ?>
<input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" checked="checked" class="radio inline" />
<?php } else { ?>
<input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" class="radio inline" />
<?php } ?>
<?php echo $quote['title']; ?> (<b><?php echo $quote['text']; ?></b>)
</label>
<?php } ?>
<?php } else { ?>
<div class="error"><?php echo $shipping_method['error']; ?></div>
<?php } ?>
<?php } ?>
</div><br />
<?php } ?>