Fix quotes for kits and other

spydor@drupal.org's picture
Offline
Joined: 01/20/2008
Juice: 50
Fix quotes for kits and other

This module is great. I'm testing it out on D5, UC1rc4.

The way it was set up, it was doing a node_load and then pulling the "sell_price" from the nodes. This didn't work for me as the total was off when kits were in the cart and thus shipping was off.

I changed some of the logic to just use the price * qty. This gives me the correct shipping quote on both kits and regular products.

I also moved the logic from PHP to SQL to get the rate within the min/max parameters. This seems to work for me, your feedback would be very welcomed.

Thanks,
Shane

AttachmentSize
uc_ratequote_fixkits.diff 1.51 KB
Rate Quote Shipping Module By: Guest (16 replies) Thu, 08/16/2007 - 18:21