ZC - 1.3.8a
Stamps.com - 9.0.2
Module - 2.0.0.47809
I have installed the files and have everything set up with the appropriate web address ( /store/ ) and token. When trying to refresh orders in Stamps.com, I get get this error message and associated code... Any clue?
Note line 360 is $number=$floats[0];
Unable to download orders from https://www.webstore.com/store/ShippingZZencart.php
ERROR: SHIPPINGZCLASSES Version:2.0.0.47809
Error Type: 8
File: /opt/apache-2.2.13/htdocs/store/ShippingZClasses.php
Line: 360
Message: Undefined offset: 0
PHP Code:####### Function FormatNumber #######
//Formats number to money format
function FormatNumber($number)
{
if($number!="")
{
$matches="";
$floats="";
preg_match_all('!\d+(?:\.\d+)?!', $number, $matches);
$floats = array_map('floatval', $matches[0]);
$number=$floats[0];
return number_format($number,2,'.','');
}
else
return "0.00";
}



Reply With Quote


Bookmarks