Order Total discount does not show the payment details when checking out multiple products

fxarte - January 15, 2009 - 19:52
Project:UC Discounts
Version:5.x-1.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

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

#1

fxarte - January 15, 2009 - 21:22

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

 
 

Drupal is a registered trademark of Dries Buytaert.