Please note that is by no means the best method of how to do this, but it works for me.
In controller/product/product.php
On around line 246 find
Code: Select all
'name' => $option_value['name'],
Code: Select all
'quantity' => $option_value['quantity'],
(I use Radio boxes to select my option, but this will work with any method)
On around line 94 find
Code: Select all
<b><?php echo $option['name']; ?>:</b><br />
<?php foreach ($option['option_value'] as $option_value) { ?>
<input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
<label for="option-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>
Code: Select all
<?php echo $option_value['quantity']; ?></label>
(What I've done for example is set it so show in Red when the stock is less than 5, and Green when the stock is more than 5)
I'm sorry my 'fix' isn't as slick as others offered, but hopefully this helps someone out at some point.