PluginProbe
MBE eShip / trunk
MBE eShip vtrunk
2.8.1 trunk 1.0.0 1.1.0 1.1.3 1.2.1 1.2.2 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.7.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.0 2.1.1 2.1.2 2.2.1 All 37 releases
mail-boxes-etc / lib / Helper / Tracking.php

Tracking.php in MBE eShip trunk, at lib/Helper/Tracking.php

29 lines 838 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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