Closed (won't fix)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Nov 2009 at 17:39 UTC
Updated:
16 Apr 2013 at 08:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
tr commentedI think this is a good idea. Should probably also be done for shipping and payments ...
Comment #2
Island Usurper commentedI really like the check to make sure that the billing and delivery addresses have actually changed. It should probably also check the zone and country as well as the postal code, especially if we also use this for shipping quotes.
Unfortunately, I don't think we should check to make sure another request is still pending. In some cases, we actually want to display the later request because it was triggered by an address change. If we prevent that one from happening, we'll get inaccurate totals displayed in the payment pane. The line items display already makes sure that it's the last request that gets displayed, so I don't think we need to worry about that here.
Please indent with 2 spaces when submitting patches, per the Drupal coding standards.
Comment #3
damienmckennaAm having serious problems with this on a site - with Firefox (3.6) and Safari (5.0.1) it works fine but just stacks up thousands upon thousands of XHR requests, IE 8 on the other hand is completely unable to complete the order.
Comment #4
damienmckennaAm changing this to a bug report as the page just should not be doing this. Also, tagging it with the 'checkout' tag.
Comment #5
tr commented@DamienMcKenna: When you say "Am having serious problems with this ..." are you referring to the patch?
Comment #6
damienmckennaThe key issue is that the AJAX request should only happen when the form has been modified, rather than running on a constant loop.
Comment #7
damienmckenna@TR: sorry for being vague: the heavy AJAX calls appear to be causing major problems for IE users (#684552: Payment summary never loads in IE (Checkout) -- but in FF), I haven't tried the patch yet, am about to.
Comment #8
tr commented@DamienMcKenna: It doesn't run in a loop. If your site is looping, it indicates a problem on your site. You didn't answer my question in #5. If your issue is not with the patch you should open a new issue. The patch reduces Ajax calls, but there are *never* thousands of calls on that page.
Comment #9
damienmckennaPlease also review #646660: Javascript issue with getTax() in uc_taxes, which is related.
Comment #10
tr commentedSetting back to task. Comments #3 through #9 are unrelated and are being handled in #646660: Javascript issue with getTax() in uc_taxes.
The current status of the original patch is that it needs to be re-rolled taking into account Island Usurper's comments from #2.
Comment #11
damienmckennaHere's a version of the patch that follows the coding standards better but doesn't stop it if there's a pending request, as suggested in comment #2. I didn't add any logic to see if any of the address changed because that wouldn't work for pickup orders where an address is not required.
Comment #12
smptebars1 commentedThanks Noah, I will try this patch tomorrow.
Comment #14
smptebars1 commenteduse Noah's patch at the top of this page uc-taxes-patche.txt
Comment #15
longwaveNot worth changing this now in 6.x, unfortunately.