--- uc_discounts.module.orig 2008-12-09 12:48:25.000000000 -0500 +++ uc_discounts.module 2008-12-09 12:49:45.000000000 -0500 @@ -335,9 +335,13 @@ function uc_discounts_line_item_calc($op $script = "set_line_item('discounts', '". t('Discounts') ."', $discount_total, -1)"; drupal_add_js('$(document).ready( function() { - '. $script .' + '. $script .' + if (window.getTax) { getTax(); + } + else if (window.render_line_items) { render_line_items(); + } });', 'inline'); break; }