--- uc_attribute.module
+++ (clipboard)
@@ -649,7 +649,7 @@
         $attribute = $node->attributes[$aid];
         $name = _uc_attribute_get_name($attribute);
         // Only discrete options can affect the price of an item.
-        if ($attribute->display && count($attribute->options)) {
+        if (in_array($attribute->display, array(1, 2, 3)) && count($attribute->options)) {
           // There may be many selected options, or just one.
           foreach ((array)$selected as $oid) {
             if ($oid > 0) {
@@ -660,7 +660,7 @@
           }
         }
         else {
-          // Handle textfield attributes.
+          // Handle textfield and textarea attributes.
           $options[$index] = array(
             'attribute' => $name,
             'aid' => $aid,
@@ -751,7 +751,7 @@
       $options[$option->oid] .= $display_price;
     }
 
-    if (count($attribute->options) && $attribute->display > 0) {
+    if (count($attribute->options) && in_array($attribute->display, array(1, 2, 3))) {
       if ($attribute->required) {
         if ($attribute->display == 1) {
           $options = array('' => t('Please select')) + $options;
@@ -779,7 +779,7 @@
     }
     else {
       $form_attributes[$attribute->aid] = array(
-        '#type' => 'textfield',
+        '#type' => $attribute->display == 0 ? 'textfield' : 'textarea',
         '#description' => check_markup($attribute->description),
         '#default_value' => $attribute->required == FALSE ? $attribute->options[$attribute->default_option]->name : '',
         '#required' => $attribute->required,
@@ -802,6 +802,7 @@
 function _uc_attribute_display_types() {
   return array(
     0 => t('Text field'),
+    4 => t('Text area (multiple rows)'),
     1 => t('Select box'),
     2 => t('Radio buttons'),
     3 => t('Checkboxes'),
@@ -817,7 +818,7 @@
  *   Array of attribute ids that have price affecting options.
  */
 function uc_attribute_priced_attributes($nid) {
-  $attributes = db_query("SELECT DISTINCT (pa.aid) FROM {uc_product_attributes} AS pa INNER JOIN {uc_attribute_options} AS ao ON ao.aid = pa.aid INNER JOIN {uc_product_options} AS po ON (po.oid = ao.oid AND po.nid = pa.nid) WHERE pa.nid = %d AND po.price <> 0 AND pa.display <> 0", $nid);
+  $attributes = db_query("SELECT DISTINCT (pa.aid) FROM {uc_product_attributes} AS pa INNER JOIN {uc_attribute_options} AS ao ON ao.aid = pa.aid INNER JOIN {uc_product_options} AS po ON (po.oid = ao.oid AND po.nid = pa.nid) WHERE pa.nid = %d AND po.price <> 0 AND pa.display IN (1,2,3)", $nid);
   $aids = array();
   while ($attribute = db_fetch_array($attributes)) {
     $aids[] = $attribute['aid'];

