LABELS in OPTIONS
Original idea from boldndare, nice work with you, thanks.
Hi, this is very fine and very simple:
1. You enter any text field you need in options, this can be use like labels.
2. In your product (options, select the text field you enter previously and put the word label in the field value).
3. In catalog\view\theme\default\template\product.tpl
change this part, to:
<?php if ($option['type'] == 'text') { ?>
<?php if ($option['option_value'] == 'label') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<b><?php echo $option['name']; ?>:</b>
<div style="display:none;">
<input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value=" " />
</div>
<br />
</div>
<?php } else { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>: </b>
<input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" />
</div>
<?php } ?>
<br />
<?php } ?>
You have all the labels you need
Who is online
Users browsing this forum: No registered users and 2 guests