? port_d6.patch
Index: uc_discounts.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_discounts/uc_discounts.module,v
retrieving revision 1.1.2.6.2.9
diff -u -p -r1.1.2.6.2.9 uc_discounts.module
--- uc_discounts.module	20 Nov 2008 15:30:33 -0000	1.1.2.6.2.9
+++ uc_discounts.module	9 Apr 2010 23:09:10 -0000
@@ -32,6 +32,10 @@ function uc_discounts_theme() {
   return array(
     'uc_discounts_list' => array(
       'arguments' => array('form' => NULL),
+      'file' => 'uc_discounts_admin.inc',
+    ),
+    'uc_discounts_sell_price' => array(
+      'arguments' => array('sell_price' => NULL, 'discount' => NULL, 'teaser' => NULL)
     ),
   );
 }
@@ -206,13 +210,13 @@ function uc_discounts_nodeapi(&$node, $o
         // Alter the node display price
         if (variable_get('uc_discounts_product_discount_price', 0)) {
           $discounts_amount = 0;
-
+          
           foreach($node->discounts as $discount) {
             $discounts_amount += $discount['amount'];
           }
           $discounted_price = $node->sell_price - $discounts_amount;
-          $node->content['display_price']['#value'] = theme('uc_product_display_price', $discounted_price);
-          $node->content['sell_price']['#value'] = theme('uc_discounts_sell_price', $node->sell_price, $discounted_price);
+
+          $node->content['sell_price']['#value'] = theme('uc_discounts_sell_price', $node->sell_price, $discounted_price, false);
         }
         break;
     }
@@ -288,7 +292,7 @@ function theme_uc_discounts_sell_price($
     }
   }
   else {
-    $output = theme('uc_product_sell_price', $discount_price, $teaser);
+    $output = theme('uc_product_price', $discount_price, $teaser);
   }
   return $output;
 }
@@ -1052,4 +1056,4 @@ function _uc_discounts_get_comparisons($
       );
   }
   return $valid_compare_types;
-}
+}
\ No newline at end of file
