I'm getting this debug error:
and it points to this in usps.phpPHP Warning: Invalid argument supplied for foreach()
Any ideas?PHP Code:
//Get value of package - used for insurance and cod.
$value=0;
foreach ($order->products as $p) {
$value+=$p['final_price']*$p['qty'];
}
$this->_setValue($value);
Bookmarks