
Originally Posted by
lat9
You're correct. The shipping module currently looks for an "order" (i.e. during the checkout process) to gather the subtotal to be submitted to UPS (otherwise defaulting to a 100.00 value).
I'll create an issue on the UPSXML GitHub (
https://github.com/lat9/upsxml) to track this change.
I've got this update staged for v1.7.6 of the shipping module. You can edit your copy (line 109), changing from:
Code:
$this->pkgvalue = (MODULE_SHIPPING_UPSXML_INSURE == 'False' || !isset($order)) ? 100 : ceil($order->info['subtotal']);
to
Code:
$this->pkgvalue = (MODULE_SHIPPING_UPSXML_INSURE == 'False' || !isset($order->info['subtotal'])) ? ceil($_SESSION['cart']->total) : ceil($order->info['subtotal']);
Bookmarks