Code:
WHERE products_id = " . $product['id']
replace with:
Code:
WHERE products_id = " . (int)$product['id']
I also just replaced:
Code:
$data .= '116,"' . $this->num_pieces . '"'; // Total number of pieces
with
Code:
$data .= '116,"' . $shipping_num_boxes . '"'; // Total number of pieces
I'm still not sure if it's working right because I'm having issues accessing my client's account on the FedEx site. But at least it's giving me rates now that are closer to reality. (Before I did that second replace, I got a quote of $238.25 for shipping a half-pound box that happened to have 25 small items in it.)
Bookmarks