Page 1 of 1

Edit Shipping Options At Checkout

Posted: Tue Sep 11, 2012 4:09 am
by nagger2000
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

Code: Select all

catalog/view/theme/sellegance/template/checkout/shipping_method.tpl
In particular this bit of code:

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 } ?>
If anyone has any thoughts I'd be extremely grateful!

Re: Edit Shipping Options At Checkout

Posted: Tue Sep 11, 2012 8:25 pm
by nagger2000
Has anyone managed to anything like this?