I am using the module Order Total

When checking out an order of more than one product, the "payment details" box is not shown, not allowing the completion of the transaction.
Thank you

Comments

fxarte’s picture

Hi people
It seems to be related to the fact the function getTax() is not defined.

please have a look here:
file: uc_discounts.module
function: uc_discounts_line_item_calc

      $script = "set_line_item('discounts', '". t('Discounts') ."', $discount_total, -1)";
      drupal_add_js('$(document).ready( function() { 
        '. $script .' 
        getTax(); 
        render_line_items(); 
      });', 'inline');

to avoid this error I included a dummy function getTax. In the template.php file I included this code:

drupal_add_js('function getTax() { };', 'inline');

I guess some JavaScript is missing.

Also, shouldn't the code needs a semicolon after the call to the function "set_line_item"?

thanks