Oh, yes...
We removed the Company name and Name of purchaser from our po orders, so, no wonder this didn't come up! My function finds spaces, but not line returns. So here's a possible fix:
Try this function instead in your file
x-cart_root/include/func/func.db.php:
Code:
function getPONum($o_details) {
if (strpos($o_details, "PO Number") > -1) {
$po_number_arr = explode(' ',$o_details);
for ($int=0; $int<count($po_number_arr); $int++) {
if ((strpos($po_number_arr[$int], "PO") > -1)&&(strpos($po_number_arr[$int + 1], "Number") > -1)) {
$po_arr = explode('\n', $po_number_arr[$int + 2]);
$po_num = $po_arr[0];
break;
}
}
return $po_num;
} else {
return "";
}
}
Let me know if that one works!