Allow specifying carrier in tracking code too
This commit is contained in:
parent
0993355a52
commit
ea0d7068de
@ -17,7 +17,7 @@ if (!empty($VARS["carrier"])) {
|
|||||||
if ($carrier == "") {
|
if ($carrier == "") {
|
||||||
$codeparts = explode(":", $code);
|
$codeparts = explode(":", $code);
|
||||||
if (count($codeparts) == 2) {
|
if (count($codeparts) == 2) {
|
||||||
switch (strtoupper(trim($codeparts[1]))) {
|
switch (strtoupper(trim($codeparts[0]))) {
|
||||||
case "FEDEX":
|
case "FEDEX":
|
||||||
$carrier = "fedex";
|
$carrier = "fedex";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user