Does anyone know how to align the product options horizontally?
In the previous version of opencart i believe that you remove the <br> tags but in version 2 there are no <br> tags or <table> tags that i can see to adjust the alignment.
I am using the default template and would like my checkbox and radio options to be displayed 2 or 3 wide rather than in a large list.
The template that im looking at is catalog/view/theme/default/template/product/product.tpl
and the code im referring to is:
Code: Select all
<?php if ($option['type'] == 'radio') { ?>
<div class="form-group<?php echo ($option['required'] ? ' required' : ''); ?>">
<label class="control-label"><?php echo $option['name']; ?></label>
<div id="input-option<?php echo $option['product_option_id']; ?>">
<?php foreach ($option['product_option_value'] as $option_value) { ?>
<div class="radio">
<label>
<input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" />
<?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</label>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
Thanks
Katrina