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.
Cudos for this module, about time that we have something to assist users in having a rough idea about additional costs before getting deep within the order. I am running into an issue though that when I first run it the only thing that is coming back is "free shipping from a pickup location", if I run it again without a page reload I then also get the results from the UPS module.
Suggestions on where to start debugging?
Comments
Comment #2
rszrama CreditAttribution: rszrama commentedHmm, I'm not sure what might be going on here. I hadn't tried it with a 3rd party shipping method yet, just flat rate. You might dump out the form state and order to see what differs from the first attempt to the second. Could be there's some missing information the first go-round that accidentally gets saved to the order for use by the second request.
Comment #3
andyg5000I think this happens because there are ajax callbacks on the state and zip code form elements which cause the form to get submitted prematurely. We had a similar issue reported where the "no rates available" flashes before the actual rates because the form was submitted 2x.
I think removing those callbacks would provide for a better interface that's easier to maintain.