thinking back i might have had problems with the link i sent you if an attribute didnt have any stock,
i actially use gjh42 stock icon module slightly altered for my attributes as i like that style
http://www.onyourbike.co.uk/index.php?main_page=product_info&cPath=1_413&products_id=1235
you could use the same idea to return the stock qty instead my version of sba is not the std so hopefully this might work for you
create a file called attribute_qty_functions.php
<?php
function attribute_qty_function($product_id,$attributes) {
global $db;
$get_sba_stock = $db->Execute('select quantity from '.TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK.' where products_id = "' . $product_id . '" and stock_attributes = "' . $attributes . '"');
//return $get_sba_stock->fields['quantity'];
$attribute_qty = $get_sba_stock->fields['quantity'];
if ($attribute_qty == '') {
return '';
} else {
return ' [ Qty ' . $attribute_qty . ' ]';
}
}
//EOF
upload to includes/funtions/extrafunctions/
then in your includes/modules/attributes.php
in around line 104 in my version you should see something like
$products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
'text' => $products_options->fields['products_options_values_name'];
change this to
$products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
'text' => $products_options->fields['products_options_values_name'] . $attribute_qty);
and directly before this add
$attribute_qty = attribute_qty_function($products_options->fields['products_id'],$products_options->fields['products_attributes_id']);
this should cover the drop downs
and look like this with stock
http://catchagrip.co.uk/index.php?main_page=product_info&cPath=1_478&products_id=1069
and without
http://catchagrip.co.uk/index.php?main_page=product_info&cPath=1_478&products_id=1068
then for radio buttons
at approx line 184
change
$products_options_details = $products_options->fields['products_options_values_name'];
to
$products_options_details = $products_options->fields['products_options_values_name'] . attribute_qty_function($products_options->fields['products_id'],$products_options->fields['products_attributes_id']);
and this will hopefully get you this
http://catchagrip.co.uk/index.php?main_page=product_info&cPath=1_413&products_id=1235
hopefully the professionals on here might let you know if this would cause any issues but this is similar to what i use and it seems fine, as i say i use the stock icons in my radio ones but if you download gjh42 stock icon module you will see how that works, not sure if the icons would work in dropdowns
hope this may be of help and backup
bn