Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After a lot of trouble I finally got a multi product discount to work and show up on the checkout page. However, the site will no longer calculate the shipping options and fees when their is a discount and the form to enter the credit card number is hidden.
Comments
Comment #1
Chad_Dupuis CreditAttribution: Chad_Dupuis commentedOut of curiousity, is your issue the same as mine? - http://drupal.org/node/344579 - Does the order total become a negative number (the total of the discounts, not total - discounts)?
In my case that is what is making the cc greyed out and stopping shipping from working (i.e. the negative total).
Comment #2
jdblank CreditAttribution: jdblank commentedI will confirm this later today but I believe in my case the order was a positive number and it seemed to some how be preventing the FedEx code to get the shipping costs (it does this in an ajax sorta way).
Comment #3
Chad_Dupuis CreditAttribution: Chad_Dupuis commentedI think I might have a fix for you if my assumption was even close to correct. It's in one of the patches for the 6.x branch that never got into the 5.x branch involving a call to getTax - if taxes are not applicable or you don't have it enabled at all the whole total price function fails. Correct the lines in uc_discounts.module around line 336 made everything work for me....... I'll try to write a patch and get it submitted, but for now you can change the code to match the following:
Comment #4
jdblank CreditAttribution: jdblank commentedThis appeared to do it! Thank you so much. I really appreciate it.