Quote Originally Posted by karimm View Post
Would it also be possible to add the text sold out to the dropdown list, when the stock is 0 ?
I tried the following changes in attributes.php and appears to get you part of what you want.

removed the following line:
and (pwas.quantity > 0 or pwas.quantity IS NULL)

Altered the else where setting the text output.
else
{
if($products_options->fields['quantity'] == 0) {$products_text_to_use = $products_options->fields['products_options_values_name'] . " (Sold Out)";} //improperly hard coded
else {$products_text_to_use = $products_options->fields['products_options_values_name'];}
}


Quote Originally Posted by karimm View Post
and if the customer selects a sold out product he/she will not get the checkout button of instead of the button the text wil appear that that option is unavaible !
Everything is possible, but this is beyond my ability. I would think this might need to be some JavaScript coding or something else browser side.