| 1 |
<?php |
| 2 |
|
| 3 |
class Mbe_Shipping_Helper_Tracking |
| 4 |
{ |
| 5 |
const ITALIAN_URL = "https://www.mbe.it/it/tracking?c="; |
| 6 |
const SPAIN_URL = "https://www.mbe.es/es/tracking?c="; |
| 7 |
const GERMANY_URL = "https://www.mbe.de/de/tracking?c="; |
| 8 |
const FRANCE_URL = "https://www.mbefrance.fr/fr/suivi?c="; |
| 9 |
const POLSKA_URL = "https://www.mbe.pl/pl/tracking?c="; |
| 10 |
|
| 11 |
public function getTrackingUrlBySystem($system) |
| 12 |
{ |
| 13 |
$result = ""; |
| 14 |
if ($system == "IT") { |
| 15 |
$result = self::ITALIAN_URL; |
| 16 |
} elseif ($system == "ES") { |
| 17 |
$result = self::SPAIN_URL; |
| 18 |
} elseif ($system == "DE") { |
| 19 |
$result = self::GERMANY_URL; |
| 20 |
} elseif ($system == "AT") { |
| 21 |
$result = self::AUSTRIA_URL; |
| 22 |
} elseif ($system == "FR") { |
| 23 |
$result = self::FRANCE_URL; |
| 24 |
} |
| 25 |
return $result; |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
|