Shipcalc calls get_rates once per item and then passes the whole transaction. Not causing a problem. Looks like the current partners are just doing a fresh calculation the shipping rates each time. The risk would be a large shopping list with many many calls to UPS/USPS etc.
Comments
Comment #1
nedjoYes, this looks to be redundancy maybe left over from an early plan to fetch separate rates for each item.
Attached untested patch is an idea for how to address this.
Comment #2
simeYeah, I'm liking this new design. My latest patch attached, not much different. I took out $form parameter on the method call cos it was messing with me.
Comment #3
simeCommitted nedjo's patch at #1 to HEAD
http://drupal.org/cvs?commit=51238
4.7 maintainers might like to backport.
Patch at #2 might still be relevant, but I need to refresh my mind and I'll follow up here.
Comment #4
brmassa commentedComment #5
(not verified) commented