Add module tntcarrier
35
www/modules/tntcarrier/!js/index.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||||
|
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||||
|
|
||||||
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||||
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
|
header("Pragma: no-cache");
|
||||||
|
|
||||||
|
header("Location: ../../../");
|
||||||
|
exit;
|
286
www/modules/tntcarrier/!js/jquery-ui.js
vendored
Normal file
32
www/modules/tntcarrier/!js/jquery.js
vendored
Normal file
581
www/modules/tntcarrier/!js/relais.js
Normal file
@ -0,0 +1,581 @@
|
|||||||
|
var tntRCcodePostal;
|
||||||
|
var tntRClisteRelais;
|
||||||
|
|
||||||
|
$("#form").submit(function()
|
||||||
|
{
|
||||||
|
if ($("#tntRCSelectedCode").val() == "")
|
||||||
|
{
|
||||||
|
alert("Vous n\'avez pas choisi de relais colis");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function postMobile(token)
|
||||||
|
{
|
||||||
|
var id = $("#id_cart").val();
|
||||||
|
var ph = $("#mobileTnt").val();
|
||||||
|
|
||||||
|
$.get(baseDir+"/modules/tntcarrier/relaisColis/postMobileData.php?id_cart="+id+"&phone="+ph+"&token="+token);
|
||||||
|
}
|
||||||
|
|
||||||
|
function resetMap() {
|
||||||
|
|
||||||
|
if (map) {
|
||||||
|
|
||||||
|
map.getStreetView().setVisible(false);
|
||||||
|
|
||||||
|
for (var i = 0; i < relaisMarkers.length; i++) {
|
||||||
|
relaisMarkers[i].setMap(null);
|
||||||
|
relaisMarkers[i] = null;
|
||||||
|
}
|
||||||
|
relaisMarkers = new Array();
|
||||||
|
if (infowindow) infowindow.close();
|
||||||
|
map.setZoom(defaultZoom);
|
||||||
|
map.setCenter(defaultCenter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function tntRCgetRelaisColis(commune)
|
||||||
|
{
|
||||||
|
if (!commune) {
|
||||||
|
// La commune du code postal correspond à la sélection du radio bouton tntRCchoixComm
|
||||||
|
tntRCCommune = $("input[type=radio][name=tntRCchoixComm][checked]").val();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Utilisation de la valeur fournie en paramètre
|
||||||
|
tntRCCommune = commune;
|
||||||
|
}
|
||||||
|
// Affichage message "chargement en cours"
|
||||||
|
//tntRCsetChargementEnCours();
|
||||||
|
|
||||||
|
var ajaxUrl;
|
||||||
|
var ajaxData;
|
||||||
|
|
||||||
|
ajaxUrl = "https://www.tnt.fr/public/b2c/relaisColis/loadJson.do?cp=" + tntRCcodePostal + "&commune=" + tntRCCommune;
|
||||||
|
ajaxData = "";
|
||||||
|
|
||||||
|
// Chargement de la liste de relais colis
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: ajaxUrl,
|
||||||
|
data: ajaxData,
|
||||||
|
dataType: "script"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function tntRCgetCommunes()
|
||||||
|
{
|
||||||
|
tntRCcodePostal = $('#tntRCInputCP').val();
|
||||||
|
|
||||||
|
// Code postal non renseigné, on ne fait rien
|
||||||
|
if (tntRCcodePostal=="") return;
|
||||||
|
|
||||||
|
if (mapDetected) resetMap();
|
||||||
|
// On ne fait rien si le code postal n'est pas un nombre de 5 chiffres
|
||||||
|
if (isNaN(parseInt(tntRCcodePostal)) || tntRCcodePostal.length != 5) {
|
||||||
|
$("#relaisColisResponse").html("Veuillez saisir un code postal sur 5 chiffres");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var ajaxUrl;
|
||||||
|
var ajaxData;
|
||||||
|
ajaxUrl = "https://www.tnt.fr/public/b2c/relaisColis/rechercheJson.do?code=" + tntRCcodePostal;
|
||||||
|
ajaxData = "";
|
||||||
|
$.ajax({type: "GET", url: ajaxUrl, data: ajaxData, dataType: "script", error:function(msg){$("#relaisColisResponse").html("Error !: " + msg );}});
|
||||||
|
}
|
||||||
|
|
||||||
|
function tntRCSetSelectedInfo(selectedIdx, noMarkerInfo)
|
||||||
|
{
|
||||||
|
if (!selectedIdx && selectedIdx != 0) {
|
||||||
|
// RAZ des infos sélectionnées
|
||||||
|
$("#tntRCSelectedCode").val("");
|
||||||
|
$("#tntRCSelectedNom").val("");
|
||||||
|
$("#tntRCSelectedAdresse").val("");
|
||||||
|
$("#tntRCSelectedCodePostal").val("");
|
||||||
|
$("#tntRCSelectedCommune").val("");
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var oRelais = tntRClisteRelais[selectedIdx];
|
||||||
|
|
||||||
|
$("#tntRCSelectedCode").val(oRelais[0]);
|
||||||
|
$("#tntRCSelectedNom").val(oRelais[1]);
|
||||||
|
$("#tntRCSelectedAdresse").val(oRelais[4]);
|
||||||
|
$("#tntRCSelectedCodePostal").val(oRelais[2]);
|
||||||
|
$("#tntRCSelectedCommune").val(oRelais[3]);
|
||||||
|
var id_cart = document.getElementById("cartRelaisColis").value;
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: baseDir+"/modules/tntcarrier/relaisColis/postRelaisData.php",
|
||||||
|
data: "id_cart="+id_cart+"&tntRCSelectedCode="+oRelais[0]+"&tntRCSelectedNom="+oRelais[1]+"&tntRCSelectedAdresse="+oRelais[4]+"&tntRCSelectedCodePostal="+oRelais[2]+"&tntRCSelectedCommune="+oRelais[3]
|
||||||
|
});
|
||||||
|
|
||||||
|
if (mapDetected && !noMarkerInfo) {
|
||||||
|
|
||||||
|
// Les noeuds dans le fichier XML ne sont pas forcément ordonnés pour l'affichage, on va donc d'abord récupérer leur valeur
|
||||||
|
var codeRelais = oRelais[0]
|
||||||
|
var nomRelais = oRelais[1];
|
||||||
|
var adresse = oRelais[4];
|
||||||
|
var codePostal = oRelais[2];
|
||||||
|
var commune = oRelais[3];
|
||||||
|
var heureFermeture = oRelais[21];
|
||||||
|
|
||||||
|
var messages = "";
|
||||||
|
var lundi_am = (oRelais[7] == "-")?",":oRelais[7]+",";
|
||||||
|
var lundi_pm = oRelais[8];
|
||||||
|
var mardi_am = (oRelais[9] == "-")?",":oRelais[9]+",";
|
||||||
|
var mardi_pm = oRelais[10];
|
||||||
|
var mercredi_am = (oRelais[11] == "-")?",":oRelais[11]+",";
|
||||||
|
var mercredi_pm = oRelais[12];
|
||||||
|
var jeudi_am = (oRelais[13] == "-")?",":oRelais[13]+",";
|
||||||
|
var jeudi_pm = oRelais[14];
|
||||||
|
var vendredi_am = (oRelais[15] == "-")?",":oRelais[15]+",";
|
||||||
|
var vendredi_pm = oRelais[16];
|
||||||
|
var samedi_am = (oRelais[17] == "-")?",":oRelais[17]+",";
|
||||||
|
var samedi_pm = oRelais[18];
|
||||||
|
var dimanche_am = (oRelais[19] == "-")?",":oRelais[19]+",";
|
||||||
|
var dimanche_pm = oRelais[20];
|
||||||
|
|
||||||
|
if (lundi_pm != "-") lundi_am = lundi_am + lundi_pm;
|
||||||
|
if (mardi_pm != "-") mardi_am = mardi_am + mardi_pm;
|
||||||
|
if (mercredi_pm != "-") mercredi_am = mercredi_am + mercredi_pm;
|
||||||
|
if (jeudi_pm != "-") jeudi_am = jeudi_am + jeudi_pm;
|
||||||
|
if (vendredi_pm != "-") vendredi_am = vendredi_am + vendredi_pm;
|
||||||
|
if (samedi_pm != "-") samedi_am = samedi_am + samedi_pm;
|
||||||
|
if (dimanche_pm != "-") dimanche_am = dimanche_am + dimanche_pm;
|
||||||
|
|
||||||
|
var horaires = new Array();
|
||||||
|
horaires['lundi'] = lundi_am + ",1";
|
||||||
|
horaires['mardi'] = mardi_am + ",2";
|
||||||
|
horaires['mercredi'] = mercredi_am + ",3";
|
||||||
|
horaires['jeudi'] = jeudi_am + ",4";
|
||||||
|
horaires['vendredi'] = vendredi_am + ",5";
|
||||||
|
horaires['samedi'] = samedi_am + ",6";
|
||||||
|
horaires['dimanche'] = dimanche_am + ",0";
|
||||||
|
|
||||||
|
var messages = "";
|
||||||
|
for (j=0; j < oRelais[24].length; j++) {
|
||||||
|
var ligne = oRelais[24][j];
|
||||||
|
if (ligne != "") messages = messages + ligne + "<br/>";
|
||||||
|
}
|
||||||
|
|
||||||
|
setInfoMarker(codeRelais, nomRelais, adresse, codePostal, commune, messages, selectedIdx, horaires, relaisMarkers[selectedIdx]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function afficheDetail(i)
|
||||||
|
{
|
||||||
|
if($('#tntRCDetail'+i).is(':visible'))
|
||||||
|
$('#tntRCDetail'+i).hide('slow');
|
||||||
|
else
|
||||||
|
$('#tntRCDetail'+i).show('slow');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function listeRelais(tabRelais)
|
||||||
|
{
|
||||||
|
var jData = tabRelais;
|
||||||
|
var jMessage = $('#relaisColisResponse');
|
||||||
|
var tntRCjTable = $("<table style='width:100%;border:1px solid gray;' cellpadding='2px' cellspacing='0'></table>");
|
||||||
|
|
||||||
|
jMessage.html("");
|
||||||
|
tntRCjTable.append("<tr style='background:#999;color:white;height:24px;padding:4px'><th class='tntRCblanc' width=''></th><th class='tntRCgris' colspan='2' width=''> Les différents Relais Colis®</th><th class='tntRCblanc' width=''></th><th class='tntRCgris' width=''> Mon choix</th><th class='tntRCblanc' width=''></th></tr>");
|
||||||
|
var i = 0;
|
||||||
|
tntRClisteRelais = jData;
|
||||||
|
for(i = 0; i < jData.length; i++) {
|
||||||
|
|
||||||
|
var oRelais = jData[i];
|
||||||
|
var codeRelais = oRelais[0];
|
||||||
|
var nomRelais = oRelais[1];
|
||||||
|
var adresse = oRelais[4];
|
||||||
|
var codePostal = oRelais[2];
|
||||||
|
var commune = oRelais[3];
|
||||||
|
var heureFermeture = oRelais[21];
|
||||||
|
|
||||||
|
var lundi_am = (oRelais[7] == "-")?"fermé":oRelais[7];
|
||||||
|
var lundi_pm = (oRelais[8] == "-")?"fermé":oRelais[8];
|
||||||
|
var mardi_am = (oRelais[9] == "-")?"fermé":oRelais[9];
|
||||||
|
var mardi_pm = (oRelais[10] == "-")?"fermé":oRelais[10];
|
||||||
|
var mercredi_am = (oRelais[11] == "-")?"fermé":oRelais[11];
|
||||||
|
var mercredi_pm = (oRelais[12] == "-")?"fermé":oRelais[12];
|
||||||
|
var jeudi_am = (oRelais[13] == "-")?"fermé":oRelais[13];
|
||||||
|
var jeudi_pm = (oRelais[14] == "-")?"fermé":oRelais[14];
|
||||||
|
var vendredi_am = (oRelais[15] == "-")?"fermé":oRelais[15];
|
||||||
|
var vendredi_pm = (oRelais[16] == "-")?"fermé":oRelais[16];
|
||||||
|
var samedi_am = (oRelais[17] == "-")?"fermé":oRelais[17];
|
||||||
|
var samedi_pm = (oRelais[18] == "-")?"fermé":oRelais[18];
|
||||||
|
var dimanche_am = (oRelais[19] == "-")?"fermé":oRelais[19];
|
||||||
|
var dimanche_pm = (oRelais[20] == "-")?"fermé":oRelais[20];
|
||||||
|
|
||||||
|
if (lundi_pm != "-") lundi_am = lundi_am + "<br/>" + lundi_pm;
|
||||||
|
if (mardi_pm != "-") mardi_am = mardi_am + "<br/>" + mardi_pm;
|
||||||
|
if (mercredi_pm != "-") mercredi_am = mercredi_am + "<br/>" + mercredi_pm;
|
||||||
|
if (jeudi_pm != "-") jeudi_am = jeudi_am + "<br/>" + jeudi_pm;
|
||||||
|
if (vendredi_pm != "-") vendredi_am = vendredi_am + "<br/>" + vendredi_pm;
|
||||||
|
if (samedi_pm != "-") samedi_am = samedi_am + "<br/>" + samedi_pm;
|
||||||
|
if (dimanche_pm != "-") dimanche_am = dimanche_am + "<br/>" + dimanche_pm;
|
||||||
|
|
||||||
|
var messages="";
|
||||||
|
var logo_point = "";
|
||||||
|
if (messages != "") logo_point = "<img src='"+baseDir+"/modules/tntcarrier/img/exception.gif' alt='Informations complémentaires' width='16px' height='16px'>";
|
||||||
|
|
||||||
|
tntRCjTable.append(
|
||||||
|
"<tr>"+
|
||||||
|
"<td class='tntRCblanc' width=''></td>"+
|
||||||
|
"<td class='tntRCblanc' width='' style='padding-left:5px'><img src='"+baseDir+"/modules/tntcarrier/img/logo-tnt-petit.jpg'> "+logo_point+"</td>"+
|
||||||
|
"<td style='font-size:10px; padding:0 0 3px' class='tntRCrelaisColis' width=''>"+nomRelais+" - "+adresse+" - "+codePostal+" - "+commune+"<BR> >> Ouvert jusqu'à "+heureFermeture+"</td>"+
|
||||||
|
"<td class='tntRCrelaisColis' width=''> </td>"+
|
||||||
|
"<td style='font-size:10px; padding: 0;' class='tntRCrelaisColis' valign='middle' align='center' width=''>"+
|
||||||
|
"<img onclick='afficheDetail(" + i + ");' style='vertical-align:middle;cursor:pointer' src='"+baseDir+"/modules/tntcarrier/img/loupe.gif' class='tntRCBoutonLoupe'> "+
|
||||||
|
"<input type='radio' style='vertical-align: middle;margin-left:0px' name='tntRCchoixRelais' value='"+codeRelais+"'"+(i==0 ? "checked" : "")+" onclick='tntRCSetSelectedInfo("+i+")'/>"+
|
||||||
|
"</td>"+
|
||||||
|
"<td class='tntRCblanc' width=''></td>"+
|
||||||
|
"</tr>"+
|
||||||
|
"<td colspan='6'><table style='display:none;' id='tntRCDetail"+i+"'><tr><td>lundi : "+lundi_am+"</td><td>mardi : "+mardi_am+"</td><td>mercredi : "+mercredi_am+"</td><td>jeudi : "+jeudi_am+"</td><td>vendredi : "+vendredi_am+"</td><td>samedi : "+samedi_am+"</td><td>dimanche : "+dimanche_am+"</td></tr></table></td>"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mémorisation des infos du relais sélectionné par défaut (c'est le premier)
|
||||||
|
tntRCSetSelectedInfo(0, true);
|
||||||
|
// Ajout du lien de retour sur la liste des communes si cette dernière a été mémorisée
|
||||||
|
|
||||||
|
jMessage.append(tntRCjTable);
|
||||||
|
if (mapDetected) init_marker(tabRelais);
|
||||||
|
}
|
||||||
|
|
||||||
|
function listeCommunes(tabCommunes)
|
||||||
|
{
|
||||||
|
// RAZ des infos sélectionnées
|
||||||
|
tntRCSetSelectedInfo();
|
||||||
|
if (mapDetected) resetMap();
|
||||||
|
|
||||||
|
var tntRCjTable = $("<table style='border:1px solid gray;' cellpadding='2px' cellspacing='0' width='100%'></table>");
|
||||||
|
tntRCjTable.append("<tr><td class='tntRCblanc' width=''></td><td class='tntRCgris' colspan='2' width=''> Les différents Relais Colis®</td><td class='tntRCblanc' width=''></td><td class='tntRCgris' width=''> Mon choix</td><td class='tntRCblanc' width=''></td></tr>");
|
||||||
|
|
||||||
|
var jData = tabCommunes;
|
||||||
|
var blocCodePostal = $('#relaisColisResponse');
|
||||||
|
|
||||||
|
var i = 1;
|
||||||
|
//var jCommunes = jData.find("VILLE");
|
||||||
|
for (var iIdx = 0; iIdx < jData.length; iIdx++) {
|
||||||
|
|
||||||
|
var commune = jData[iIdx];
|
||||||
|
|
||||||
|
//var jCommune = $(this);
|
||||||
|
var nomVille = commune[1]; // IE vs FF
|
||||||
|
|
||||||
|
tntRCjTable.append(
|
||||||
|
"<tr>"+
|
||||||
|
"<td class='tntRCblanc' width=''></td>"+
|
||||||
|
"<td class='tntRCblanc' width=''><img src='"+baseDir+"/modules/tntcarrier/img/logo-tnt-petit.jpg'></td>" +
|
||||||
|
"<td class='tntRCrelaisColis' width=''> " + nomVille + " (" + tntRCcodePostal + ") </td>" +
|
||||||
|
"<td class='tntRCrelaisColis' width=''> </td>"+
|
||||||
|
"<td class='tntRCrelaisColis' align='center' width=''>"+
|
||||||
|
"<input type='radio' name='tntRCchoixComm' value='" + nomVille + "' " + ( i ==1 ? "checked" : "") + ">"+
|
||||||
|
"</td>"+
|
||||||
|
"<td class='tntRCblanc' width=''></td>"+
|
||||||
|
"</tr>");
|
||||||
|
i = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
tntRCjTable.append(
|
||||||
|
"<tr>"+
|
||||||
|
"<td class='tntRCblanc' width=''></td>"+
|
||||||
|
"<td class='tntRCblanc' colspan='2' width=''></td>"+
|
||||||
|
"<td class='tntRCblanc' width=''></td>"+
|
||||||
|
"<td class='tntRCblanc' align='center' width=''>"+
|
||||||
|
"<a href='javascript:tntRCgetRelaisColis();'><img class='tntRCButton' src='"+baseDir+"/modules/tntcarrier/img/bt-Continuer-2.jpg' onmouseover='this.src=\""+baseDir+"/modules/tntcarrier/img/bt-Continuer-1.jpg\"' onmouseout='this.src=\""+baseDir+"/modules/tntcarrier/img/bt-Continuer-2.jpg\"'></a>" +
|
||||||
|
"</td>"+
|
||||||
|
"<td class='tntRCblanc' width=''></td>"+
|
||||||
|
"</tr>");
|
||||||
|
|
||||||
|
blocCodePostal.html(tntRCjTable);
|
||||||
|
|
||||||
|
// Bloc de saisie d'un nouveau code postal
|
||||||
|
//blocCodePostal.append(tntRCchangerCodePostal());
|
||||||
|
}
|
||||||
|
|
||||||
|
function erreurListeCommunes() {
|
||||||
|
$("#relaisColisResponse").html("Erreur sur le code postal");
|
||||||
|
}
|
||||||
|
|
||||||
|
function erreurListeRelais() {
|
||||||
|
$("#relaisColisResponse").html("Erreur");
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************************************************************************
|
||||||
|
* Partie Google Map
|
||||||
|
***********************************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
var map;
|
||||||
|
var adresse_pointclic;
|
||||||
|
var zone_chalandise;
|
||||||
|
var zoomZoneChalandiseDefault;
|
||||||
|
var centerZoneChalandiseDefault;
|
||||||
|
var init_streetview = false;
|
||||||
|
|
||||||
|
var contentTo = [
|
||||||
|
'<br/><div>',
|
||||||
|
'Itinéraire : <b>Vers ce lieu</b> - <a href="javascript:fromhere(0)">A partir de ce lieu</a><br/>',
|
||||||
|
'Lieu de départ<br/>',
|
||||||
|
'<input type="text" id="saisie" name="saisie" value="" maxlength="500" size="30">',
|
||||||
|
'<input type="hidden" id="mode" name="mode" value="toPoint">',
|
||||||
|
'<input type="hidden" id="point_choisi" name="point_choisi" value="">',
|
||||||
|
'<input type="submit" onclick="return popup_roadmap();" value="Ok">',
|
||||||
|
'<br/>Ex: 58 avenue Leclerc 69007 Lyon',
|
||||||
|
'</div>'].join('');
|
||||||
|
|
||||||
|
var contentFrom = [
|
||||||
|
'<br/><div>',
|
||||||
|
'Itinéraire : <a href="javascript:tohere(0)">Vers ce lieu</a> - <b>A partir de ce lieu</b><br/>',
|
||||||
|
'Lieu d\'arrivée<br/>',
|
||||||
|
'<input type="text" id="saisie" name="saisie" value="" maxlength="500" size="30">',
|
||||||
|
'<input type="hidden" id="mode" name="mode" value="fromPoint">',
|
||||||
|
'<input type="hidden" id="point_choisi" name="point_choisi" value="">',
|
||||||
|
'<input type="button" onclick="return popup_roadmap();" value="Ok">',
|
||||||
|
'<br/>Ex: 58 avenue Leclerc 69007 Lyon',
|
||||||
|
'</div>'].join('');
|
||||||
|
|
||||||
|
var infowindow;
|
||||||
|
|
||||||
|
var relaisMarkers = [];
|
||||||
|
var iconRelais = new google.maps.MarkerImage(
|
||||||
|
baseDir+"/modules/tntcarrier/img/google/relaisColis.png",
|
||||||
|
new google.maps.Size(40, 30),
|
||||||
|
new google.maps.Point(0, 0),
|
||||||
|
new google.maps.Point(20, 30))
|
||||||
|
|
||||||
|
//Limites de la France
|
||||||
|
var allowedBounds = new google.maps.LatLngBounds(
|
||||||
|
new google.maps.LatLng(39.56533418570851, -7.41426946590909),
|
||||||
|
new google.maps.LatLng(52.88994181429149, 11.84176746590909));
|
||||||
|
|
||||||
|
var defaultCenter = new google.maps.LatLng(46.2276380, 2.2137490); // the center ???
|
||||||
|
var defaultZoom = 5; // default zoom level
|
||||||
|
var aberration = 0.2; // this value is a good choice for france (?!)
|
||||||
|
var minMapScale = 5;
|
||||||
|
//var maxMapScale = 20;
|
||||||
|
|
||||||
|
var mapDetected = false;
|
||||||
|
var callbackLinkMarker = "";
|
||||||
|
|
||||||
|
// fonction appellé après saisie du code postal de recherche
|
||||||
|
function init_marker(json) {
|
||||||
|
|
||||||
|
zone_chalandise = new google.maps.LatLngBounds();
|
||||||
|
|
||||||
|
for (var i = 0; i < relaisMarkers.length; i++) {
|
||||||
|
relaisMarkers[i].setMap(null);
|
||||||
|
relaisMarkers[i] = null;
|
||||||
|
}
|
||||||
|
relaisMarkers = new Array();
|
||||||
|
|
||||||
|
if (infowindow) infowindow.close();
|
||||||
|
|
||||||
|
var markers = json;
|
||||||
|
|
||||||
|
for (var i = 0; i < markers.length; i++) {
|
||||||
|
createMarker(markers[i], i);
|
||||||
|
}
|
||||||
|
|
||||||
|
zoomZoneChalandiseDefault = zone_chalandise.getCenter();
|
||||||
|
centerZoneChalandiseDefault = zone_chalandise;
|
||||||
|
|
||||||
|
retourZoomChalandise();
|
||||||
|
}
|
||||||
|
|
||||||
|
function setInfoMarker(codeRelais, nomRelais, adresse, codePostal, commune, messages, indice, horaires, marker) {
|
||||||
|
|
||||||
|
var htmlInfo = [
|
||||||
|
"<div>",
|
||||||
|
"<div class='rc'>",
|
||||||
|
"<b>RELAIS COLIS N\260 ", codeRelais, "</b><br/>",
|
||||||
|
"<b>", nomRelais, "</b><br/>",
|
||||||
|
adresse, "<br/>",
|
||||||
|
codePostal, " ", commune,
|
||||||
|
"</div>",
|
||||||
|
"<div><br/>", messages, "</div>",
|
||||||
|
callbackLinkMarker,
|
||||||
|
"</div>",
|
||||||
|
"<div id='trajet'>" + contentTo + "</div>"
|
||||||
|
].join('');
|
||||||
|
|
||||||
|
// Création du contenu de l'onglet horaire
|
||||||
|
var htmlHoraires = "<table class='horairesRCPopup'>";
|
||||||
|
var jourSemaine = (new Date()).getDay();
|
||||||
|
for (jour in horaires) {
|
||||||
|
var heures = (horaires[jour]).split(",");
|
||||||
|
if (heures[0] == '' && heures[1] == '') heures[0] = "fermé";
|
||||||
|
htmlHoraires = htmlHoraires + "<tr" + (jourSemaine == parseInt(heures[2]) ? " class='selected'" : "") + "><td class='horairesRCJourPopup'> " + jour + "</td><td class='horaireRCPopup'>" + heures[0] + " " + heures[1] + "</td></tr>";
|
||||||
|
}
|
||||||
|
htmlHoraires = htmlHoraires + "</table>";
|
||||||
|
|
||||||
|
adresse_pointclic = [adresse, "|", codePostal, " ", commune].join('');
|
||||||
|
|
||||||
|
var contentString = [
|
||||||
|
'<div id="tabs" style="width:340px;">',
|
||||||
|
'<ul>',
|
||||||
|
'<li><a href="#tabInfos"><span>Infos</span></a></li>',
|
||||||
|
'<li><a href="#tabHoraires"><span>Horaires</span></a></li>',
|
||||||
|
'</ul>',
|
||||||
|
'<div id="tabInfos">',
|
||||||
|
htmlInfo,
|
||||||
|
'</div>',
|
||||||
|
'<div id="tabHoraires">',
|
||||||
|
htmlHoraires,
|
||||||
|
'</div>',
|
||||||
|
'</div>'
|
||||||
|
].join('');
|
||||||
|
|
||||||
|
if (infowindow) infowindow.close();
|
||||||
|
infowindow = new google.maps.InfoWindow({content: contentString});
|
||||||
|
|
||||||
|
google.maps.event.addListener(infowindow, "domready", function() {
|
||||||
|
$("#point_choisi").attr("value", adresse_pointclic);
|
||||||
|
$("#tabs").tabs();
|
||||||
|
$("#tabs").parent().removeAttr("style");
|
||||||
|
});
|
||||||
|
|
||||||
|
infowindow.open(map, marker);
|
||||||
|
}
|
||||||
|
|
||||||
|
function createMarker(markerData, indice) {
|
||||||
|
|
||||||
|
var marker = new google.maps.Marker({
|
||||||
|
icon: iconRelais,
|
||||||
|
position: new google.maps.LatLng(markerData[5], markerData[6]),
|
||||||
|
map: map,
|
||||||
|
title:markerData[1]
|
||||||
|
});
|
||||||
|
|
||||||
|
google.maps.event.addListener(marker, "click", function() {
|
||||||
|
// Sélectionne le relais correspondant dans la liste
|
||||||
|
$("input[type=radio][name=tntRCchoixRelais]:eq("+ indice + ")").attr("checked", true);
|
||||||
|
tntRCSetSelectedInfo(indice);
|
||||||
|
});
|
||||||
|
|
||||||
|
relaisMarkers.push(marker);
|
||||||
|
zone_chalandise.extend(marker.getPosition());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function tntRCInitMap()
|
||||||
|
{
|
||||||
|
// Si la carte n'est pas présente, fin de l'initialisation
|
||||||
|
if (!document.getElementById("map_canvas")) return;
|
||||||
|
mapDetected = true;
|
||||||
|
|
||||||
|
// Si une fonction de callback a été définie, un lien est ajouté
|
||||||
|
// dans la popup d'info du marqueur de relais colis
|
||||||
|
if (window.callbackSelectionRelais) callbackLinkMarker = "<a onclick='callbackSelectionRelais();' href='#' style='color:#FF6600'>Choisir ce relais</a>";
|
||||||
|
|
||||||
|
//Ajout du lien pour retour en zoom zone de chalandise
|
||||||
|
var jMapCanvas = $("#map_canvas");
|
||||||
|
jMapCanvas.wrap("<div></div>");
|
||||||
|
|
||||||
|
var mapClass = jMapCanvas.attr("class");
|
||||||
|
if (mapClass && mapClass != "") {
|
||||||
|
jMapCanvas.attr("class", "");
|
||||||
|
jMapCanvas.parent().attr("class", mapClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
var myOptions = {
|
||||||
|
zoom: defaultZoom,
|
||||||
|
center: defaultCenter,
|
||||||
|
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||||
|
navigationControl: true,
|
||||||
|
scaleControl: true,
|
||||||
|
mapTypeControl: true,
|
||||||
|
streetViewControl: true
|
||||||
|
};
|
||||||
|
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
|
||||||
|
|
||||||
|
// If the map position is out of range, move it back
|
||||||
|
function checkBounds() {
|
||||||
|
|
||||||
|
// Perform the check and return if OK
|
||||||
|
var currentBounds = map.getBounds();
|
||||||
|
var cSpan = currentBounds.toSpan(); // width and height of the bounds
|
||||||
|
var offsetX = cSpan.lng() / (2+aberration); // we need a little border
|
||||||
|
var offsetY = cSpan.lat() / (2+aberration);
|
||||||
|
var C = map.getCenter(); // current center coords
|
||||||
|
var X = C.lng();
|
||||||
|
var Y = C.lat();
|
||||||
|
|
||||||
|
// now check if the current rectangle in the allowed area
|
||||||
|
var checkSW = new google.maps.LatLng(C.lat()-offsetY,C.lng()-offsetX);
|
||||||
|
var checkNE = new google.maps.LatLng(C.lat()+offsetY,C.lng()+offsetX);
|
||||||
|
|
||||||
|
if (allowedBounds.contains(checkSW) &&
|
||||||
|
allowedBounds.contains(checkNE)) {
|
||||||
|
return; // nothing to do
|
||||||
|
}
|
||||||
|
|
||||||
|
var AmaxX = allowedBounds.getNorthEast().lng();
|
||||||
|
var AmaxY = allowedBounds.getNorthEast().lat();
|
||||||
|
var AminX = allowedBounds.getSouthWest().lng();
|
||||||
|
var AminY = allowedBounds.getSouthWest().lat();
|
||||||
|
|
||||||
|
if (X < (AminX+offsetX)) {X = AminX + offsetX;}
|
||||||
|
if (X > (AmaxX-offsetX)) {X = AmaxX - offsetX;}
|
||||||
|
if (Y < (AminY+offsetY)) {Y = AminY + offsetY;}
|
||||||
|
if (Y > (AmaxY-offsetY)) {Y = AmaxY - offsetY;}
|
||||||
|
|
||||||
|
map.setCenter(new google.maps.LatLng(Y,X));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
google.maps.event.addListener(map, "drag", function() {
|
||||||
|
checkBounds();
|
||||||
|
});
|
||||||
|
|
||||||
|
google.maps.event.addListener(map, "zoom_changed", function() {
|
||||||
|
if (map.getZoom() < minMapScale) {
|
||||||
|
map.setZoom(minMapScale);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
google.maps.event.addListener(map.getStreetView(), "visible_changed", function() {
|
||||||
|
//premier accès lors du chargement de la page, il ne faut pas cacher les markers
|
||||||
|
if (init_streetview == true) {
|
||||||
|
if(map.getStreetView().getVisible() == true) {
|
||||||
|
for (var k = 0; k < relaisMarkers.length; k++) {
|
||||||
|
relaisMarkers[k].setVisible(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for (var k = 0; k < relaisMarkers.length; k++) {
|
||||||
|
relaisMarkers[k].setVisible(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else init_streetview = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function retourZoomChalandise() {
|
||||||
|
if(zoomZoneChalandiseDefault){
|
||||||
|
map.setCenter(zoomZoneChalandiseDefault);
|
||||||
|
map.fitBounds(centerZoneChalandiseDefault);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function fromhere() {
|
||||||
|
switchFromTo(contentFrom);
|
||||||
|
}
|
||||||
|
|
||||||
|
function tohere() {
|
||||||
|
switchFromTo(contentTo);
|
||||||
|
}
|
||||||
|
|
||||||
|
function switchFromTo(htmlContent) {
|
||||||
|
var adresse_saisie = $("#saisie").val();
|
||||||
|
$("#trajet").html(htmlContent);
|
||||||
|
$("#point_choisi").attr('value', adresse_pointclic);
|
||||||
|
$("#saisie").val(adresse_saisie);
|
||||||
|
}
|
||||||
|
|
||||||
|
function popup_roadmap() {
|
||||||
|
if($("#saisie").val() == "") return false;
|
||||||
|
window.open("https://www.tnt.fr/public/geolocalisation/print_roadmap.do?mode="+ $("#mode").val() +"&point_choisi="+ $("#point_choisi").val() +"&saisie="+ $("#saisie").val());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*$().ready(tntRCInitMap);*/
|
15
www/modules/tntcarrier/!js/service.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
function changeActive(img, id, token)
|
||||||
|
{
|
||||||
|
var deleted;
|
||||||
|
if (img.src.indexOf('/img/admin/disabled.gif') >= 0)
|
||||||
|
{
|
||||||
|
img.src = '../img/admin/enabled.gif';
|
||||||
|
deleted = '0';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
img.src = '../img/admin/disabled.gif';
|
||||||
|
deleted = '1'
|
||||||
|
}
|
||||||
|
$.get('../modules/tntcarrier/changeActiveService.php?id='+id+'&deleted='+deleted+'&token='+token);
|
||||||
|
}
|
118
www/modules/tntcarrier/!js/shipping.js
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
function tntRCgetDepot()
|
||||||
|
{
|
||||||
|
$("#tntRCError").hide();
|
||||||
|
tntRCcodePostal = $("#tntRCInputCP").val();
|
||||||
|
if (tntRCcodePostal=="") return;
|
||||||
|
if (isNaN(parseInt(tntRCcodePostal))) {
|
||||||
|
tntRCgetRelaisColis("Veuillez saisir un code départemental correct");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
tntRCsetChargementEnCours();
|
||||||
|
$.get(
|
||||||
|
"../modules/tntcarrier/tntGetDepot.php?code="+tntRCcodePostal,
|
||||||
|
function(response, status, xhr)
|
||||||
|
{
|
||||||
|
if (status == "error")
|
||||||
|
$("#tntRCLoading").html(xhr.status + " " + xhr.statusText);
|
||||||
|
if (response == "The field 'department' is not a valid french department code.\n")
|
||||||
|
$("#tntRCLoading").html("Vous n'avez pas saisi un code correct départemental français\n");
|
||||||
|
else if (response.indexOf("The security token could not be authenticated or authorized") >= 0)
|
||||||
|
$("#tntRCLoading").html("Vos identifiants sont incorrects\n");
|
||||||
|
else
|
||||||
|
$("#tntRCLoading").html(response);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function depositButtonClick()
|
||||||
|
{
|
||||||
|
$("#googleMapTnt").css("display", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
function collectButtonClick()
|
||||||
|
{
|
||||||
|
$("#googleMapTnt").css("display", "none");
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
var transport1 = $("#tnt_carrier_collect_yes");
|
||||||
|
var transport2 = $("#tnt_carrier_collect_no");
|
||||||
|
transport1.click(function() {
|
||||||
|
$("#divPex").css("display", "none");
|
||||||
|
$("#divClosing").css("display", "");
|
||||||
|
$("#tnt_exp_names").css("display", "");
|
||||||
|
});
|
||||||
|
transport2.click(function() {
|
||||||
|
$("#divPex").css("display", "");
|
||||||
|
$("#divClosing").css("display", "none");
|
||||||
|
$("#tnt_exp_names").css("display", "none");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function callbackSelectionRelais()
|
||||||
|
{
|
||||||
|
var code = document.getElementById("tntRCSelectedCode").value;
|
||||||
|
var lastname = document.getElementById("tntRCSelectedNom").value;
|
||||||
|
var address = document.getElementById("tntRCSelectedAdresse").value;
|
||||||
|
var address2 = document.getElementById("tntRCSelectedAdresse2").value;
|
||||||
|
var zipcode = document.getElementById("tntRCSelectedCodePostal").value;
|
||||||
|
var city = document.getElementById("tntRCSelectedCommune").value;
|
||||||
|
|
||||||
|
if (!code || code == "")
|
||||||
|
alert("Aucune agence d\351pot selectionn\351e");
|
||||||
|
else
|
||||||
|
{
|
||||||
|
document.getElementById("tnt_carrier_shipping_pex").value = code;
|
||||||
|
document.getElementById("tnt_carrier_shipping_company").value = lastname;
|
||||||
|
var s = lastname.length - lastname.indexOf(" ");
|
||||||
|
|
||||||
|
document.getElementById("tnt_carrier_shipping_last_name").value = "";
|
||||||
|
document.getElementById("tnt_carrier_shipping_first_name").value = "";
|
||||||
|
document.getElementById("tnt_carrier_shipping_address1").value = address;
|
||||||
|
document.getElementById("tnt_carrier_shipping_address2").value = address2;
|
||||||
|
document.getElementById("tnt_carrier_shipping_postal_code").value = zipcode;
|
||||||
|
document.getElementById("tnt_carrier_shipping_city").value = city;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeValueTntRC(code, name, address1, address2, zipcode, city)
|
||||||
|
{
|
||||||
|
document.getElementById("tntRCSelectedCode").value = code;
|
||||||
|
document.getElementById("tntRCSelectedNom").value = name;
|
||||||
|
document.getElementById("tntRCSelectedAdresse").value = address1;
|
||||||
|
document.getElementById("tntRCSelectedAdresse2").value = address2;
|
||||||
|
document.getElementById("tntRCSelectedCodePostal").value = zipcode;
|
||||||
|
document.getElementById("tntRCSelectedCommune").value = city;
|
||||||
|
}
|
||||||
|
|
||||||
|
function displayCity(id_shop)
|
||||||
|
{
|
||||||
|
var postal = $("#tnt_carrier_shipping_postal_code").val();
|
||||||
|
if (postal.length == 5)
|
||||||
|
{
|
||||||
|
$("#resultCity").html("");
|
||||||
|
$.get(
|
||||||
|
"../modules/tntcarrier/tntGetCity.php?code="+postal+"&id_shop="+id_shop,
|
||||||
|
function(response, status, xhr)
|
||||||
|
{
|
||||||
|
if (status == "error")
|
||||||
|
$("#resultCity").html("Erreur. Réessayer plus tard.");
|
||||||
|
else if (response == "account")
|
||||||
|
$("#resultCity").html("Veuillez-vous identifier dans l'onglet Paramètres de compte");
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$("#tnt_carrier_shipping_city").removeAttr('disabled');
|
||||||
|
$("#tnt_carrier_shipping_city").html(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$("#resultCity").html("Le code postal doit etre de 5 chiffres");
|
||||||
|
}
|
||||||
|
|
||||||
|
function enableSelect()
|
||||||
|
{
|
||||||
|
$("#tnt_carrier_shipping_city").removeAttr('disabled');
|
||||||
|
}
|
BIN
www/modules/tntcarrier/Prestashop - Module TNT - Avril 2013.pdf
Normal file
0
www/modules/tntcarrier/br.php
Normal file
BIN
www/modules/tntcarrier/carrier.jpg
Normal file
After Width: | Height: | Size: 9.7 KiB |
37
www/modules/tntcarrier/changeActiveService.php
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
include('../../config/config.inc.php');
|
||||||
|
include(dirname(__FILE__).'/tntcarrier.php');
|
||||||
|
|
||||||
|
$tnt = new TntCarrier();
|
||||||
|
if ($tnt->active)
|
||||||
|
{
|
||||||
|
if (Tools::getValue('token') == '' || Tools::getValue('token') != Configuration::get('TNT_CARRIER_TOKEN'))
|
||||||
|
die('Invalid Token');
|
||||||
|
|
||||||
|
Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'carrier` SET `deleted` = "'.(int)Tools::getValue('deleted').'" WHERE `id_carrier` = '.(int)Tools::getValue('id'));
|
||||||
|
}
|
47
www/modules/tntcarrier/changeCity.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
require('./../../config/config.inc.php');
|
||||||
|
|
||||||
|
$id_cart = pSQL(Tools::getValue('id'));
|
||||||
|
$city = pSQL(Tools::getValue('city'));
|
||||||
|
|
||||||
|
if (Tools::getValue('token') == '' || Tools::getValue('token') != Configuration::get('TNT_CARRIER_TOKEN'))
|
||||||
|
die('Invalid Token');
|
||||||
|
|
||||||
|
$cart = new Cart($id_cart);
|
||||||
|
$address = new Address($cart->id_address_delivery);
|
||||||
|
$address->city = $city;
|
||||||
|
|
||||||
|
if (strpos($city, 'PARIS') === 0 || strpos($city, 'MARSEILLE') === 0 || strpos($city, 'LYON') === 0)
|
||||||
|
{
|
||||||
|
$code = substr($city, -2);
|
||||||
|
$address->postcode = substr($address->postcode, 0, 3).$code;
|
||||||
|
}
|
||||||
|
if ($address->save())
|
||||||
|
echo "ok";
|
||||||
|
else
|
||||||
|
echo "null";
|
47
www/modules/tntcarrier/classes/CodePostal.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
class CodePostal
|
||||||
|
{
|
||||||
|
private $_postal;
|
||||||
|
|
||||||
|
public function __construct($code)
|
||||||
|
{
|
||||||
|
$this->_postal = $code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCity($city)
|
||||||
|
{
|
||||||
|
if (strpos($this->_postal, '75') === 0 && (int)$this->_postal > 75000 && strpos($city, 'PARIS') === 0)
|
||||||
|
return ('PARIS '.substr($this->_postal, -2));
|
||||||
|
else if (strpos($this->_postal, '13') === 0 && (int)$this->_postal > 13000 && strpos($city, 'MARSEILLE') === 0)
|
||||||
|
return ('MARSEILLE '.substr($this->_postal, -2));
|
||||||
|
else if (strpos($this->_postal, '69') === 0 && (int)$this->_postal > 69000 && strpos($city, 'LYON') === 0)
|
||||||
|
return ('LYON '.substr($this->_postal, -2));
|
||||||
|
else
|
||||||
|
return $city;
|
||||||
|
}
|
||||||
|
}
|
169
www/modules/tntcarrier/classes/OrderInfoTnt.php
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
class OrderInfoTnt
|
||||||
|
{
|
||||||
|
private $_idOrder;
|
||||||
|
|
||||||
|
public function __construct($id_order)
|
||||||
|
{
|
||||||
|
$this->_idOrder = $id_order;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getInfo()
|
||||||
|
{
|
||||||
|
$info = Db::getInstance()->ExecuteS('SELECT o.shipping_number, a.lastname, a.firstname, a.address1, a.address2, a.postcode, a.city, a.phone, a.phone_mobile, c.email, c.id_customer, a.company
|
||||||
|
FROM `'._DB_PREFIX_.'orders` as o, `'._DB_PREFIX_.'address` as a, `'._DB_PREFIX_.'customer` as c
|
||||||
|
WHERE o.id_order = "'.(int)$this->_idOrder.'" AND a.id_address = o.id_address_delivery AND c.id_customer = o.id_customer');
|
||||||
|
|
||||||
|
if (!$info)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
$weight = Db::getInstance()->ExecuteS('SELECT p.weight, o.product_quantity
|
||||||
|
FROM `'._DB_PREFIX_.'order_detail` as o, `'._DB_PREFIX_.'product` as p
|
||||||
|
WHERE o.id_order = "'.(int)$this->_idOrder.'" AND p.id_product = o.product_id');
|
||||||
|
|
||||||
|
$option = Db::getInstance()->getRow('SELECT t.option
|
||||||
|
FROM `'._DB_PREFIX_.'tnt_carrier_option` as t , `'._DB_PREFIX_.'orders` as o
|
||||||
|
WHERE t.id_carrier = o.id_carrier AND o.id_order = "'.(int)$this->_idOrder.'"');
|
||||||
|
|
||||||
|
if ($option != null && strpos($option['option'], "D") !== false)
|
||||||
|
$drop_off = Db::getInstance()->getRow('SELECT d.code, d.name, d.address, d.zipcode, d.city, d.due_date
|
||||||
|
FROM `'._DB_PREFIX_.'tnt_carrier_drop_off` as d , `'._DB_PREFIX_.'orders` as o
|
||||||
|
WHERE d.id_cart = o.id_cart AND o.id_order = "'.(int)$this->_idOrder.'"');
|
||||||
|
|
||||||
|
$drop_date = Db::getInstance()->getValue('SELECT d.due_date FROM `'._DB_PREFIX_.'tnt_carrier_drop_off` as d, `'._DB_PREFIX_.'orders` as o WHERE o.id_order = "'.(int)$this->_idOrder.'" AND d.id_cart = o.id_cart');
|
||||||
|
$w = 0;
|
||||||
|
$tooBig = false;
|
||||||
|
foreach ($weight as $key => $val)
|
||||||
|
{
|
||||||
|
while ($val['product_quantity'] > 0)
|
||||||
|
{
|
||||||
|
if ((int)($val['weight']) > 20)
|
||||||
|
return "Un ou plusieurs articles sont supérieurs à 20 Kg<br/>Vous devez contacter votre commercial TNT";
|
||||||
|
if ($w + $val['weight'] > 20)
|
||||||
|
{
|
||||||
|
$info[1]['weight'][] = (string)($w);
|
||||||
|
$w = $val['weight'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$w += $val['weight'];
|
||||||
|
$val['product_quantity']--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$info[1]['weight'][] = (string)($w);
|
||||||
|
|
||||||
|
$info[5] = array('saturday' => false);
|
||||||
|
|
||||||
|
if ($drop_date != null)
|
||||||
|
{
|
||||||
|
if (date("w", strtotime($drop_date)) == 6 && date('w', strtotime('now')) == 5)
|
||||||
|
$next_day = date("Y-m-d", strtotime('now'));
|
||||||
|
else if (date("w", strtotime($drop_date)) == 6)
|
||||||
|
$next_day = date("Y-m-d", strtotime($drop_date.' + 2 days'));
|
||||||
|
else if (date("w", strtotime($drop_date)) == 0)
|
||||||
|
$next_day = date("Y-m-d", strtotime($drop_date.' + 1 day'));
|
||||||
|
else
|
||||||
|
$next_day = date("Y-m-d", strtotime($drop_date));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$next_day = '';
|
||||||
|
$newDate = Tools::getValue('dateErrorOrder');
|
||||||
|
$info[2] = array('delivery_date' => ($newDate != '' ? $newDate : $next_day));
|
||||||
|
|
||||||
|
|
||||||
|
if ($option)
|
||||||
|
{
|
||||||
|
if (strpos($option['option'], 'S') !== false)
|
||||||
|
$info[3] = array('option' => str_replace('S', '', $option['option']));
|
||||||
|
else
|
||||||
|
$info[3] = array('option' => $option['option']);
|
||||||
|
}
|
||||||
|
if (isset($drop_off) && !empty($drop_off))
|
||||||
|
$info[4] = $drop_off;
|
||||||
|
else
|
||||||
|
$info[4] = null;
|
||||||
|
|
||||||
|
$info[0]['id_customer'] = $this->_idOrder;
|
||||||
|
$info[0]['phone'] = str_replace('.', '', $info[0]['phone']);
|
||||||
|
$info[0]['phone_mobile'] = str_replace('.', '', $info[0]['phone_mobile']);
|
||||||
|
return $info;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isFirstPackage()
|
||||||
|
{
|
||||||
|
$id_order = Db::getInstance()->getValue('SELECT `id_order` FROM `'._DB_PREFIX_.'tnt_package_history` WHERE `pickup_date` = NOW()');
|
||||||
|
if ($id_order)
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDeleveryDate($idOrder, &$info)
|
||||||
|
{
|
||||||
|
|
||||||
|
$option = Db::getInstance()->getRow('SELECT t.option
|
||||||
|
FROM `'._DB_PREFIX_.'tnt_carrier_option` as t , `'._DB_PREFIX_.'orders` as o
|
||||||
|
WHERE t.id_carrier = o.id_carrier AND o.id_order = "'.(int)$idOrder.'"');
|
||||||
|
|
||||||
|
if (Configuration::get('TNT_CARRIER_SHIPPING_COLLECT') == 1)
|
||||||
|
{
|
||||||
|
if (date('w') == 5)
|
||||||
|
{
|
||||||
|
if ((date('H') < date('H', strtotime(Configuration::get('TNT_CARRIER_SHIPPING_CLOSING'))) && !$this->isFirstPackage()) || (date('H') < 15 && $this->isFirstPackage()))
|
||||||
|
{
|
||||||
|
$delivery_day = date("Y-m-d");
|
||||||
|
if ($option['option'] == 'JS')
|
||||||
|
$info[5] = array('saturday' => true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
date("Y-m-d", strtotime(' + 2 days'));
|
||||||
|
}
|
||||||
|
else if (date("w") == 6)
|
||||||
|
$delivery_day = date("Y-m-d", strtotime(' + 2 days'));
|
||||||
|
else if ((date('H') < date('H', strtotime(Configuration::get('TNT_CARRIER_SHIPPING_CLOSING'))) && !$this->isFirstPackage() && date('H') >= 15) || date('H') < 15)
|
||||||
|
$delivery_day = date("Y-m-d");
|
||||||
|
else
|
||||||
|
$delivery_day = date("Y-m-d", strtotime(' + 1 day'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (date('w') == 5 && date('H') < date('H', strtotime(Configuration::get('TNT_CARRIER_SHIPPING_CLOSING'))))
|
||||||
|
{
|
||||||
|
$delivery_day = date("Y-m-d");
|
||||||
|
if ($option['option'] == 'JS')
|
||||||
|
$info[5] = array('saturday' => true);
|
||||||
|
}
|
||||||
|
else if ((date('w') == 5 && date('H') >= date('H', strtotime(Configuration::get('TNT_CARRIER_SHIPPING_CLOSING')))) || date("w") == 6)
|
||||||
|
$delivery_day = date("Y-m-d", strtotime(' + 2 days'));
|
||||||
|
else if (date('H') < date('H', strtotime(Configuration::get('TNT_CARRIER_SHIPPING_CLOSING'))))
|
||||||
|
$delivery_day = date("Y-m-d");
|
||||||
|
else
|
||||||
|
$delivery_day = date("Y-m-d", strtotime(' + 1 day'));
|
||||||
|
}
|
||||||
|
$info[2] = array('delivery_date' => $delivery_day);
|
||||||
|
}
|
||||||
|
}
|
64
www/modules/tntcarrier/classes/PackageTnt.php
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
class PackageTnt
|
||||||
|
{
|
||||||
|
private $_idOrder;
|
||||||
|
private $_order;
|
||||||
|
|
||||||
|
public function __construct($id_order)
|
||||||
|
{
|
||||||
|
$this->_idOrder = $id_order;
|
||||||
|
$this->_order = new Order((int)($this->_idOrder));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setShippingNumber($number)
|
||||||
|
{
|
||||||
|
if ($this->_order->shipping_number == '')
|
||||||
|
{
|
||||||
|
$this->_order->shipping_number = $number;
|
||||||
|
$this->_order->update();
|
||||||
|
}
|
||||||
|
$this->insertSql($number);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getShippingNumber()
|
||||||
|
{
|
||||||
|
$tab = Db::getInstance()->ExecuteS('SELECT `shipping_number` FROM `'._DB_PREFIX_.'tnt_carrier_shipping_number` WHERE `id_order` = "'.(int)($this->_idOrder).'"');
|
||||||
|
return ($tab);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function insertSql($number)
|
||||||
|
{
|
||||||
|
Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'tnt_carrier_shipping_number` (`id_order`, `shipping_number`)
|
||||||
|
VALUES ("'.(int)($this->_idOrder).'", "'.pSQL($number).'")');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getOrder()
|
||||||
|
{
|
||||||
|
return ($this->_order);
|
||||||
|
}
|
||||||
|
}
|
327
www/modules/tntcarrier/classes/TntWebService.php
Normal file
@ -0,0 +1,327 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
class TntWebService
|
||||||
|
{
|
||||||
|
private $_login;
|
||||||
|
private $_password;
|
||||||
|
private $_account;
|
||||||
|
private $authheader;
|
||||||
|
private $authvars;
|
||||||
|
private $header;
|
||||||
|
private $file;
|
||||||
|
|
||||||
|
public function __construct($id_shop = null)
|
||||||
|
{
|
||||||
|
if (_PS_VERSION_ >= 1.5)
|
||||||
|
{
|
||||||
|
$this->_login = Configuration::get('TNT_CARRIER_LOGIN', null, null, $id_shop);
|
||||||
|
$this->_password = Configuration::get('TNT_CARRIER_PASSWORD', null, null, $id_shop);
|
||||||
|
$this->_account = Configuration::get('TNT_CARRIER_NUMBER_ACCOUNT', null, null, $id_shop);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->_login = Configuration::get('TNT_CARRIER_LOGIN');
|
||||||
|
$this->_password = Configuration::get('TNT_CARRIER_PASSWORD');
|
||||||
|
$this->_account = Configuration::get('TNT_CARRIER_NUMBER_ACCOUNT');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->_authheader = $this->genAuth();
|
||||||
|
$this->_authvars = new SoapVar($this->_authheader, XSD_ANYXML);
|
||||||
|
$this->_header = new SoapHeader("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "Security", $this->_authvars);
|
||||||
|
$this->_file = "http://www.tnt.fr/service/?wsdl";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSoapClient()
|
||||||
|
{
|
||||||
|
$soapclient = new SoapClient($this->_file, array('trace'=> 1));
|
||||||
|
return $soapclient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function genAuth()
|
||||||
|
{
|
||||||
|
return sprintf('
|
||||||
|
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
||||||
|
<wsse:UsernameToken>
|
||||||
|
<wsse:Username>%s</wsse:Username>
|
||||||
|
<wsse:Password>%s</wsse:Password>
|
||||||
|
</wsse:UsernameToken>
|
||||||
|
</wsse:Security>', htmlspecialchars($this->_login), htmlspecialchars($this->_password));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCity($postal)
|
||||||
|
{
|
||||||
|
$soapclient = $this->getSoapClient();
|
||||||
|
$soapclient->__setSOAPHeaders(array($this->_header));
|
||||||
|
|
||||||
|
$cities = $soapclient->citiesGuide(array('zipCode' => $postal));
|
||||||
|
return ($cities);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function verifCity($postal, $city)
|
||||||
|
{
|
||||||
|
$soapclient = $this->getSoapClient();
|
||||||
|
$soapclient->__setSOAPHeaders(array($this->_header));
|
||||||
|
$cities = $soapclient->citiesGuide(array('zipCode' => $postal));
|
||||||
|
|
||||||
|
if (!isset($cities->City))
|
||||||
|
return false;
|
||||||
|
if (is_array($cities->City))
|
||||||
|
{
|
||||||
|
foreach ($cities->City as $v)
|
||||||
|
if (Tools::strtoupper($v->name) == Tools::strtoupper($city))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
elseif (Tools::strtoupper($city) == Tools::strtoupper($cities->City->name))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFaisability($dest, $postcode, $city, $date_exp)
|
||||||
|
{
|
||||||
|
$service = array();
|
||||||
|
foreach ($dest as $key => $val)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$faisability = $this->faisabilite($date_exp, Configuration::get('TNT_CARRIER_SHIPPING_ZIPCODE'), Configuration::get('TNT_CARRIER_SHIPPING_CITY'), $postcode, $city, $val);
|
||||||
|
$service[] = $faisability;
|
||||||
|
}
|
||||||
|
catch (SoapFault $e)
|
||||||
|
{
|
||||||
|
if (strrpos($e->faultstring, "shippingDate") != false)
|
||||||
|
$service = $this->getFaisability($dest, $postcode, $city, date("Y-m-d", strtotime($date_exp.' + 1 day')));
|
||||||
|
elseif (strrpos($e->faultstring, "(zip code / city)") === 0)
|
||||||
|
return $e->faultstring;
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $service;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function faisabilite($dateExpedition, $codePostalDepart, $communeDepart, $codePostalArrivee, $communeArrivee, $typeDestinataire)
|
||||||
|
{
|
||||||
|
$soapclient = $this->getSoapClient();
|
||||||
|
$soapclient->__setSOAPHeaders(array($this->_header));
|
||||||
|
|
||||||
|
$sender = array("zipCode" => $codePostalDepart, "city" => $communeDepart);
|
||||||
|
$receiver = array("zipCode" => $codePostalArrivee, "city" => $communeArrivee, "type" => $typeDestinataire);
|
||||||
|
$parameters = array("accountNumber" => $this->_account, "shippingDate" => $dateExpedition, "sender" => $sender, "receiver" => $receiver);
|
||||||
|
$services = $soapclient->feasibility(array('parameters' => $parameters));
|
||||||
|
|
||||||
|
return ($services);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPackage($info)
|
||||||
|
{
|
||||||
|
$soapclient = $this->getSoapClient();
|
||||||
|
$soapclient->__setSOAPHeaders(array($this->_header));
|
||||||
|
$tntcarrier = new TntCarrier();
|
||||||
|
|
||||||
|
$sender = array(
|
||||||
|
'type' => "ENTERPRISE",//(Configuration::get('TNT_CARRIER_SHIPPING_COLLECT') ? "ENTERPRISE" : "DEPOT"), //ENTREPRISE OR DEPOT
|
||||||
|
'typeId' => "",//(Configuration::get('TNT_CARRIER_SHIPPING_COLLECT') ? "" : Configuration::get('TNT_CARRIER_SHIPPING_PEX')) , // code PEX if DEPOT is ON
|
||||||
|
'name' => (strlen(Configuration::get('TNT_CARRIER_SHIPPING_COMPANY')) > 32 ? substr(Configuration::get('TNT_CARRIER_SHIPPING_COMPANY'), 0, 32) : Configuration::get('TNT_CARRIER_SHIPPING_COMPANY')), // raison social
|
||||||
|
'address1' => (strlen(Configuration::get('TNT_CARRIER_SHIPPING_ADDRESS1')) > 32 ? substr(Configuration::get('TNT_CARRIER_SHIPPING_ADDRESS1'), 0, 32) : Configuration::get('TNT_CARRIER_SHIPPING_ADDRESS1')),
|
||||||
|
'address2' => (strlen(Configuration::get('TNT_CARRIER_SHIPPING_ADDRESS2')) > 32 ? substr(Configuration::get('TNT_CARRIER_SHIPPING_ADDRESS2'), 0, 32) : Configuration::get('TNT_CARRIER_SHIPPING_ADDRESS2')),
|
||||||
|
'zipCode' => Configuration::get('TNT_CARRIER_SHIPPING_ZIPCODE'),
|
||||||
|
'city' => $tntcarrier->putCityInNormeTnt(Configuration::get('TNT_CARRIER_SHIPPING_CITY')),
|
||||||
|
'contactLastName' => (strlen(Configuration::get('TNT_CARRIER_SHIPPING_LASTNAME')) > 19 ? substr(Configuration::get('TNT_CARRIER_SHIPPING_LASTNAME'), 0, 19) : Configuration::get('TNT_CARRIER_SHIPPING_LASTNAME')),
|
||||||
|
'contactFirstName' => (strlen(Configuration::get('TNT_CARRIER_SHIPPING_FIRSTNAME')) > 12 ? substr(Configuration::get('TNT_CARRIER_SHIPPING_FIRSTNAME'), 0, 12) : Configuration::get('TNT_CARRIER_SHIPPING_FIRSTNAME')),
|
||||||
|
'emailAddress' => Configuration::get('TNT_CARRIER_SHIPPING_EMAIL'),
|
||||||
|
'phoneNumber' => str_replace(' ', '', Configuration::get('TNT_CARRIER_SHIPPING_PHONE')),
|
||||||
|
'faxNumber' => '' //may be later
|
||||||
|
);
|
||||||
|
|
||||||
|
$phone = (isset($info[0]['phone_mobile']) && $info[0]['phone_mobile'] != '' ? str_replace(' ', '', $info[0]['phone_mobile']) : str_replace(' ', '', $info[0]['phone']));
|
||||||
|
|
||||||
|
if (substr($phone, 0, 3) == '+33')
|
||||||
|
$phone = str_replace('+33', '0', $phone);
|
||||||
|
else if (substr($phone, 0, 4) == '0033')
|
||||||
|
{
|
||||||
|
$number = substr($phone, 4);
|
||||||
|
$phone = '0'.$number;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (strlen($phone) > 16)
|
||||||
|
$phone = substr($phone, 0, 16);
|
||||||
|
|
||||||
|
if ($info[4] == null)
|
||||||
|
$receiver = array(
|
||||||
|
'type' => ($info[0]['company'] != '' && (strlen($info[3]['option']) == 1 || substr($info[3]['option'], 1, 1) == 'S') ? "ENTERPRISE" : 'INDIVIDUAL'), // ENTREPRISE DEPOT DROPOFFPOINT INDIVIDUAL
|
||||||
|
'typeId' => '', // IF DEPOT => code PEX else if DROPOFFPOINT => XETT
|
||||||
|
'name' => ($info[0]['company'] != '' ? $info[0]['company'] : ''),
|
||||||
|
'address1' => (strlen($info[0]['address1']) > 32 ? substr($info[0]['address1'], 0, 32) : $info[0]['address1']),
|
||||||
|
'address2' => (strlen($info[0]['address2']) > 32 ? substr($info[0]['address2'], 0, 32) : $info[0]['address2']),
|
||||||
|
'zipCode' => $info[0]['postcode'],
|
||||||
|
'city' => $tntcarrier->putCityInNormeTnt((strlen($info[0]['city']) > 27 ? substr($info[0]['city'], 0, 27) : $info[0]['city'])),
|
||||||
|
'instructions' => '',
|
||||||
|
'contactLastName' => (strlen($info[0]['lastname']) > 19 ? substr($info[0]['lastname'], 0, 19) : $info[0]['lastname']),
|
||||||
|
'contactFirstName' => (strlen($info[0]['firstname']) > 12 ? substr($info[0]['firstname'], 0, 12) : $info[0]['firstname']),
|
||||||
|
'emailAddress' => $info[0]['email'],
|
||||||
|
'phoneNumber' => $phone,
|
||||||
|
'accessCode' => '',
|
||||||
|
'floorNumber' => '',
|
||||||
|
'buildingId' => '',
|
||||||
|
'sendNotification' => ''
|
||||||
|
);
|
||||||
|
else
|
||||||
|
$receiver = array(
|
||||||
|
'type' => 'DROPOFFPOINT', // ENTREPRISE DEPOT DROPOFFPOINT INDIVIDUAL
|
||||||
|
'typeId' => $info[4]['code'], // IF DEPOT => code PEX else if DROPOFFPOINT => XETT
|
||||||
|
'zipCode' => $info[4]['zipcode'],
|
||||||
|
'city' => $tntcarrier->putCityInNormeTnt((strlen($info[4]['city']) > 27 ? substr($info[4]['city'], 0, 27) : $info[4]['city'])),
|
||||||
|
'instructions' => '',
|
||||||
|
'contactLastName' => (strlen($info[0]['lastname']) > 19 ? substr($info[0]['lastname'], 0, 19) : $info[0]['lastname']),
|
||||||
|
'contactFirstName' => (strlen($info[0]['firstname']) > 12 ? substr($info[0]['firstname'], 0, 12) : $info[0]['firstname']),
|
||||||
|
'emailAddress' => $info[0]['email'],
|
||||||
|
'phoneNumber' => $phone,
|
||||||
|
'accessCode' => '',
|
||||||
|
'floorNumber' => '',
|
||||||
|
'buildingId' => '',
|
||||||
|
'sendNotification' => ''
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach ($info[1]['weight'] as $k => $v)
|
||||||
|
{
|
||||||
|
$parcelRequest[$k] = array(
|
||||||
|
'sequenceNumber' => $k + 1, // package number, there's only one at this moment
|
||||||
|
'customerReference' => $info[0]['id_customer'], // customer ref
|
||||||
|
'weight' => $v,
|
||||||
|
'insuranceAmount' => '',
|
||||||
|
'priorityGuarantee' => '',
|
||||||
|
'comment' => ''
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$parcelsRequest = array('parcelRequest' => $parcelRequest);
|
||||||
|
|
||||||
|
$pickUpRequest = array(
|
||||||
|
'media' => "EMAIL",
|
||||||
|
'faxNumber' => "",
|
||||||
|
'emailAddress' => Configuration::get('TNT_CARRIER_SHIPPING_EMAIL'),
|
||||||
|
'notifySuccess' => "1",
|
||||||
|
'service' => "",
|
||||||
|
'lastName' => "",
|
||||||
|
'firstName' => "",
|
||||||
|
'phoneNumber' => Configuration::get('TNT_CARRIER_SHIPPING_PHONE'),
|
||||||
|
'closingTime' => Configuration::get('TNT_CARRIER_SHIPPING_CLOSING'),
|
||||||
|
'instructions' => ""
|
||||||
|
);
|
||||||
|
|
||||||
|
$firstRequest = Db::getInstance()->getValue('SELECT `id_order` FROM `'._DB_PREFIX_.'tnt_package_history` WHERE `pickup_date` = NOW()');
|
||||||
|
|
||||||
|
if (Configuration::get('TNT_CARRIER_SHIPPING_COLLECT') == 1 && !$firstRequest)
|
||||||
|
{
|
||||||
|
$paremeters = array(
|
||||||
|
'pickUpRequest' => $pickUpRequest,
|
||||||
|
'shippingDate' => $info[2]['delivery_date'],
|
||||||
|
'accountNumber' => Configuration::get('TNT_CARRIER_NUMBER_ACCOUNT'),
|
||||||
|
'sender' => $sender,
|
||||||
|
'receiver' => $receiver,
|
||||||
|
'serviceCode' => $info[3]['option'],
|
||||||
|
'quantity' => count($info[1]['weight']), //number of package; count($parcelsRequest)
|
||||||
|
'parcelsRequest' => $parcelsRequest,
|
||||||
|
'saturdayDelivery' => ($info[5]['saturday'] ? '1' : '0'),
|
||||||
|
'labelFormat' => (!Configuration::get('TNT_CARRIER_PRINT_STICKER') ? "STDA4" : Configuration::get('TNT_CARRIER_PRINT_STICKER'))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$paremeters = array(
|
||||||
|
'shippingDate' => $info[2]['delivery_date'],
|
||||||
|
'accountNumber' => Configuration::get('TNT_CARRIER_NUMBER_ACCOUNT'),
|
||||||
|
'sender' => $sender,
|
||||||
|
'receiver' => $receiver,
|
||||||
|
'serviceCode' => $info[3]['option'],
|
||||||
|
'quantity' => count($info[1]['weight']), //number of package; count($parcelsRequest)
|
||||||
|
'parcelsRequest' => $parcelsRequest,
|
||||||
|
'saturdayDelivery' => ($info[5]['saturday'] ? '1' : '0'),
|
||||||
|
'labelFormat' => (!Configuration::get('TNT_CARRIER_PRINT_STICKER') ? "STDA4" : Configuration::get('TNT_CARRIER_PRINT_STICKER'))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
$package = $soapclient->expeditionCreation(array('parameters' => $paremeters));
|
||||||
|
return $package;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function followPackage($transport)
|
||||||
|
{
|
||||||
|
$soapclient = $this->getSoapClient();
|
||||||
|
$soapclient->__setSOAPHeaders(array($this->_header));
|
||||||
|
|
||||||
|
$reponse = $soapclient->trackingByConsignment(array('parcelNumber' => $transport));
|
||||||
|
|
||||||
|
if (isset($reponse->Parcel) && $reponse->Parcel)
|
||||||
|
{
|
||||||
|
$colis = $reponse->Parcel;
|
||||||
|
$expediteur = $colis->sender;
|
||||||
|
$destinataire = $colis->receiver;
|
||||||
|
$evenements = $colis->events;
|
||||||
|
|
||||||
|
$requestDate = new DateTime($evenements->requestDate);
|
||||||
|
$processDate = new DateTime($evenements->processDate);
|
||||||
|
$arrivalDate = new DateTime($evenements->arrivalDate);
|
||||||
|
$deliveryDepartureDate = new DateTime($evenements->deliveryDepartureDate);
|
||||||
|
$deliveryDate = new DateTime($evenements->deliveryDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'number' => (isset($colis->consignmentNumber) ? $colis->consignmentNumber : ''),
|
||||||
|
'status' => (isset($colis->shortStatus) ? $colis->shortStatus : ''),
|
||||||
|
'account_number' => (isset($colis->accountNumber) ? $colis->accountNumber : ''),
|
||||||
|
'service' => (isset($colis->service) ? $colis->service : ''),
|
||||||
|
'reference' => (isset($colis->reference) ? $colis->reference : ''),
|
||||||
|
'weight' => (isset($colis->weight) ? $colis->weight : ''),
|
||||||
|
'expediteur_name' => (isset($expediteur->name) ? $expediteur->name : ''),
|
||||||
|
'expediteur_addr1' => (isset($expediteur->address1) ? $expediteur->address1 : ''),
|
||||||
|
'expediteur_addr2' => (isset($expediteur->address2) ? $expediteur->address2 : ''),
|
||||||
|
'expediteur_zipcode' => (isset($expediteur->zipCode) ? $expediteur->zipCode : ''),
|
||||||
|
'expediteur_city' => (isset($expediteur->city) ? $expediteur->city : ''),
|
||||||
|
'destinataire_name' => (isset($destinataire->name) ? $destinataire->name : ''),
|
||||||
|
'destinataire_addr1' => (isset($destinataire->address1) ? $destinataire->address1 : ''),
|
||||||
|
'destinataire_addr2' => (isset($destinataire->address2) ? $destinataire->address2 : ''),
|
||||||
|
'destinataire_zipcode' => (isset($destinataire->zipCode) ? $destinataire->zipCode : ''),
|
||||||
|
'destinataire_city' => (isset($destinataire->city) ? $destinataire->city : ''),
|
||||||
|
'request' => (isset($evenements->requestDate) ? $evenements->requestDate : ''),
|
||||||
|
'requestDate' => (isset($requestDate) && isset($evenements->requestDate) ? $requestDate : ''),
|
||||||
|
'process' => (isset($evenements->processDate) ? $evenements->processDate : ''),
|
||||||
|
'process_date' => (isset($processDate) && isset($evenements->processDate) ? $processDate : ''),
|
||||||
|
'process_center' => (isset($evenements->processCenter) ? $evenements->processCenter : ''),
|
||||||
|
'arrival' => (isset($evenements->arrivalDepartureDate) ? $evenements->arrivalDepartureDate : ''),
|
||||||
|
'arrival_date' => (isset($arrivalDate) ? $arrivalDate : ''),
|
||||||
|
'arrival_center' => (isset($evenements->arrivalCenter) ? $evenements->arrivalCenter : ''),
|
||||||
|
'delivery_departure' => (isset($evenements->deliveryDepartureDate) ? $evenements->deliveryDepartureDate : ''),
|
||||||
|
'delivery_departure_date' => (isset($deliveryDepartureDate) ? $deliveryDepartureDate : ''),
|
||||||
|
'delivery_departure_center' => (isset($evenements->deliveryDepartureCenter) ? $evenements->deliveryDepartureCenter : ''),
|
||||||
|
'delivery' => (isset($evenements->deliveryDate) ? $evenements->deliveryDate : ''),
|
||||||
|
'delivery_date' => (isset($deliveryDate) ? $deliveryDate : ''),
|
||||||
|
'long_status' => (isset($colis->longStatus) ? $colis->longStatus : ''),
|
||||||
|
'linkPicture' => (isset($colis->primaryPODUrl) ? $colis->primaryPODUrl : '')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
35
www/modules/tntcarrier/classes/index.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||||
|
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||||
|
|
||||||
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||||
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
|
header("Pragma: no-cache");
|
||||||
|
|
||||||
|
header("Location: ../../../");
|
||||||
|
exit;
|
141
www/modules/tntcarrier/classes/serviceCache.php
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
class serviceCache
|
||||||
|
{
|
||||||
|
private $_dateBefore;
|
||||||
|
private $_dateNow;
|
||||||
|
private $_idCard;
|
||||||
|
private $_zipCode;
|
||||||
|
private $_company;
|
||||||
|
private $_shipZipCode;
|
||||||
|
private $_city;
|
||||||
|
private $_companyCity;
|
||||||
|
|
||||||
|
public function __construct($id_card, $zipcode, $city, $company, $shipZipCode, $companyCity)
|
||||||
|
{
|
||||||
|
$this->_dateBefore = date("Y-m-d H:i:s", mktime(date("H"), date("i") - 10, date("s"), date("m") , date("d"), date("Y")));
|
||||||
|
$this->_dateNow = date('Y-m-d H:i:s');
|
||||||
|
$this->_idCard = (int)$id_card;
|
||||||
|
$this->_zipCode = pSQL($zipcode);
|
||||||
|
$this->_city = pSQL($city);
|
||||||
|
$this->_company = pSQL($company);
|
||||||
|
$this->_shipZipCode = pSQL($shipZipCode);
|
||||||
|
$this->_companyCity = pSQL($companyCity);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFaisabilityAtThisTime()
|
||||||
|
{
|
||||||
|
if (Db::getInstance()->getValue('SELECT * FROM `'._DB_PREFIX_.'tnt_carrier_cache_service`
|
||||||
|
WHERE `date` >= "'.$this->_dateBefore.'" AND `date` <= "'.$this->_dateNow.'"
|
||||||
|
AND id_card = "'.$this->_idCard.'"
|
||||||
|
AND zipcode = "'.$this->_zipCode.'"
|
||||||
|
AND city = "'.$this->_city.'"
|
||||||
|
AND company = "'.$this->_company.'"
|
||||||
|
AND company_city = "'.$this->_companyCity.'"
|
||||||
|
AND ship_zip_code = "'.$this->_shipZipCode.'"'))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function deletePreviousServices()
|
||||||
|
{
|
||||||
|
Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE `id_card` = "'.(int)($this->_idCard).'"');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function clean()
|
||||||
|
{
|
||||||
|
Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE `date` <= "'.$this->_dateBefore.'" ');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static function deleteServices($idCard)
|
||||||
|
{
|
||||||
|
Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE `id_card` = "'.(int)($idCard).'"');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function errorCodePostal()
|
||||||
|
{
|
||||||
|
Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'tnt_carrier_cache_service` (`id_card`, `date`, `zipcode`, `city`, `company`, `company_city`, `ship_zip_code`, `error`)
|
||||||
|
VALUES ("'.(int)($this->_idCard).'", "'.$this->_dateNow.'", "'.$this->_zipCode.'", "'.$this->_city.'", "'.$this->_company.'", "'.$this->_companyCity.'","'.$this->_shipZipCode.'", "1")');
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getError($idCart)
|
||||||
|
{
|
||||||
|
return (Db::getInstance()->getValue('SELECT error FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE `id_card` = "'.(int)($idCart).'"'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getDueDate($idCart, $services)
|
||||||
|
{
|
||||||
|
$duedate = array();
|
||||||
|
foreach ($services as $key => $val)
|
||||||
|
{
|
||||||
|
$date = Db::getInstance()->getValue('SELECT due_date FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE `code` = "'.pSQL($val['option']).'"');
|
||||||
|
$dateSaturday = Db::getInstance()->getValue('SELECT due_date FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE `code` = "'.pSQL($val['option']).'S"');
|
||||||
|
if ($dateSaturday == null)
|
||||||
|
$duedate[$val['id_carrier']] = date("d/m/Y", strtotime($date));
|
||||||
|
else
|
||||||
|
$duedate[$val['id_carrier']] = date("d/m/Y", strtotime($dateSaturday));
|
||||||
|
}
|
||||||
|
return $duedate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function putInCache($s)
|
||||||
|
{
|
||||||
|
foreach ($s as $key => $val)
|
||||||
|
{
|
||||||
|
if (isset($val->Service) && is_array($val->Service))
|
||||||
|
foreach ($val->Service as $k => $v)
|
||||||
|
{
|
||||||
|
if ($v->saturdayDelivery == '0')
|
||||||
|
$serviceCode = $v->serviceCode;
|
||||||
|
else
|
||||||
|
$serviceCode = $v->serviceCode.'S';
|
||||||
|
Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'tnt_carrier_cache_service` (`id_card`, `code`, `date`, `zipcode`, `city`, `company`, `company_city`, `ship_zip_code`, `due_date`)
|
||||||
|
VALUES ("'.(int)($this->_idCard).'", "'.pSQL($serviceCode).'","'.$this->_dateNow.'", "'.$this->_zipCode.'", "'.$this->_city.'", "'.$this->_company.'", "'.$this->_companyCity.'","'.$this->_shipZipCode.'", "'.$v->dueDate.'")');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ($val->Service->saturdayDelivery == '0')
|
||||||
|
$serviceCode = $val->Service->serviceCode;
|
||||||
|
else
|
||||||
|
$serviceCode = $val->Service->serviceCode.'S';
|
||||||
|
Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'tnt_carrier_cache_service` (`id_card`, `code`, `date`, `zipcode`, `city`, `company`, `company_city`, `ship_zip_code`, `due_date`)
|
||||||
|
VALUES ("'.(int)($this->_idCard).'", "'.pSQL($serviceCode).'","'.$this->_dateNow.'", "'.$this->_zipCode.'", "'.$this->_city.'", "'.$this->_company.'", "'.$this->_companyCity.'", "'.$this->_shipZipCode.'", "'.$val->Service->dueDate.'")');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getServices()
|
||||||
|
{
|
||||||
|
return (Db::getInstance()->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE id_card = "'.(int)($this->_idCard).'"'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getServicesCart($idCard)
|
||||||
|
{
|
||||||
|
return (Db::getInstance()->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'tnt_carrier_cache_service` WHERE id_card = "'.(int)($idCard).'"'));
|
||||||
|
}
|
||||||
|
}
|
35
www/modules/tntcarrier/css/index.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||||
|
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||||
|
|
||||||
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||||
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
|
header("Pragma: no-cache");
|
||||||
|
|
||||||
|
header("Location: ../../../");
|
||||||
|
exit;
|
371
www/modules/tntcarrier/css/tntB2CRelaisColis.css
Normal file
@ -0,0 +1,371 @@
|
|||||||
|
.tntRCHeader {
|
||||||
|
background-color: #ffffff;
|
||||||
|
background-image: url(../img/logo_24_relaiscolis.jpg);
|
||||||
|
background-position: 10px center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
border-color: gray;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
color: #a0a0a0;
|
||||||
|
display: bloc;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 30pt;
|
||||||
|
font-style: italic;
|
||||||
|
height: 75px;
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-top: 25px;
|
||||||
|
text-align: right;
|
||||||
|
width: 490px
|
||||||
|
}
|
||||||
|
|
||||||
|
#tntRCdetailRelaisEntete .tntRCHeader
|
||||||
|
{
|
||||||
|
width:590px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCSubHeader {
|
||||||
|
//background-color: #ffffff;
|
||||||
|
border-width: 0px;
|
||||||
|
color: #a0a0a0;
|
||||||
|
display: bloc;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 16pt;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
padding-top: 3px;
|
||||||
|
width: 500px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCBody {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-color: gray;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
color: #000000;
|
||||||
|
display: bloc;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12pt;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
|
width: 490px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCBodySearch {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-color: gray;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
color: #a0a0a0;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 10pt;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-left: 3px;
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
width: 497px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCError {
|
||||||
|
background-color: #ff6600;
|
||||||
|
color: #ffffff;
|
||||||
|
display: bloc;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12pt;
|
||||||
|
font-weight: bold;
|
||||||
|
width: 480px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCGray {
|
||||||
|
background-color: #a0a0a0;
|
||||||
|
border-width: 0px;
|
||||||
|
display: bloc;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 10pt;
|
||||||
|
heigth: 12px;
|
||||||
|
width: 480px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCInput {
|
||||||
|
background-color: #ffffff;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 10pt;
|
||||||
|
font-weight: normal;
|
||||||
|
text-align: center;
|
||||||
|
width: 50px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCWhite {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-width: 0px;
|
||||||
|
display: bloc;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 14pt;
|
||||||
|
width: 500px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCrelaisColis {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #000000;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
border-bottom-color: #a0a0a0;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
background-color: #ffffff;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
vertical-align: middle
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCtitreMode {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 28px;
|
||||||
|
color: #a0a0a0;
|
||||||
|
font-style: italic;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCchoix {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #a0a0a0;
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: #ffffff
|
||||||
|
}
|
||||||
|
.tntRCdetailGros {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 14pt;
|
||||||
|
color: #a0a0a0;
|
||||||
|
background-color: #ffffff
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCnoirPetit {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12pt;
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffffff
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCdetailPetit {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12pt;
|
||||||
|
color: #a0a0a0;
|
||||||
|
background-color: #ffffff;
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCentree {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12pt;
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffffff;
|
||||||
|
vertical-align: middle
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCgris {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 10pt;
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #a0a0a0;
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
table.tntRCHoraire td {
|
||||||
|
border: 1px solid gray;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 10pt;
|
||||||
|
vertical-align: middle
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCHoraireJour{
|
||||||
|
color: #a0a0a0;
|
||||||
|
text-align: right;
|
||||||
|
padding-right: 10px;
|
||||||
|
height: 36px;
|
||||||
|
width: 79px;
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCHoraireHeure {
|
||||||
|
color: #000000;
|
||||||
|
padding-left: 10px;
|
||||||
|
width: 84px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCblanc {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffffff;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
.tntRCblancpetit {
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffffff;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
.tntRCfermeture {
|
||||||
|
padding-left: 585px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCBack2Communes {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #a0a0a0;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 11pt;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-top: 18px;
|
||||||
|
text-align: right
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCBack2Communes a {
|
||||||
|
color: #a0a0a0;
|
||||||
|
text-decoration: none;
|
||||||
|
padding-right: 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCBack2Communes a img{
|
||||||
|
border: 0;
|
||||||
|
padding-right: 5px;
|
||||||
|
vertical-align: text-bottom
|
||||||
|
}
|
||||||
|
|
||||||
|
.tntRCBoutonLoupe {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border: 0px;
|
||||||
|
color: #000000;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-size: 12px;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
text-decoration: none;
|
||||||
|
vertical-align: middle
|
||||||
|
}
|
||||||
|
.jqmWindow {
|
||||||
|
background-color: #FFF;
|
||||||
|
border: 1px solid black;
|
||||||
|
color: #333;
|
||||||
|
display: none;
|
||||||
|
padding: 12px;
|
||||||
|
position: fixed;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -300px;
|
||||||
|
margin-top: -240px;
|
||||||
|
width: 500px
|
||||||
|
}
|
||||||
|
|
||||||
|
div.tntRCfermeture .jqmClose em{display:none;}
|
||||||
|
div.tntRCfermeture .jqmClose {
|
||||||
|
background: transparent url(../modules/tntcarrier/img/close_icon_double.png) 0 0 no-repeat;
|
||||||
|
display: block;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px
|
||||||
|
}
|
||||||
|
|
||||||
|
div.tntRCfermeture a.jqmClose:hover{ background-position: 0 -20px; }
|
||||||
|
|
||||||
|
.jqmOverlay {
|
||||||
|
background-color: #000;
|
||||||
|
overflow: hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .jqmWindow {
|
||||||
|
position: absolute;
|
||||||
|
top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px')
|
||||||
|
}
|
||||||
|
|
||||||
|
img.tntRCButton {
|
||||||
|
border: 0px;
|
||||||
|
vertical-align: middle;
|
||||||
|
text-decoration: none
|
||||||
|
}
|
||||||
|
|
||||||
|
sup.tntRCSup {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
table.horairesRC td {
|
||||||
|
width : 100%;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.horairesRCPopup {
|
||||||
|
width : 100%;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.horairesRCPopup tr.selected td {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
color: #ff6600;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.horaireRCPopup {
|
||||||
|
width : 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.horairesRCJourPopup {
|
||||||
|
width : 40%;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #808080;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.horairesRCJour {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #808080;
|
||||||
|
}
|
||||||
|
table.horairesRC tr.selected td {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
color: #ff6600;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.ag {
|
||||||
|
background-image: url(/img/google/agenceTnt.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding-left:60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.rc {
|
||||||
|
background-image: url(/img/google/relaisColis.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding-left:50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#googleMapTnt .lien_reset {
|
||||||
|
color : #ff6600;
|
||||||
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size : 15px;
|
||||||
|
text-decoration:none
|
||||||
|
}
|
||||||
|
|
||||||
|
#googleMapTnt a {
|
||||||
|
color: #f60;
|
||||||
|
outline-color: #f60 !important;
|
||||||
|
outline: none
|
||||||
|
}
|
||||||
|
|
||||||
|
#googleMapTnt a:hover {
|
||||||
|
text-decoration: none
|
||||||
|
}
|
||||||
|
|
||||||
|
#googleMapTnt .exemplePresentation {
|
||||||
|
display: inline;
|
||||||
|
margin-top: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
#tntB2CRelaisColis {
|
||||||
|
width: 610px
|
||||||
|
}
|
||||||
|
|
||||||
|
.detailRelais
|
||||||
|
{
|
||||||
|
background: url("../img/ui-dialog/fcfdfd_40x100_textures_06_inset_hard_100.png") repeat-x scroll 0 bottom #FCFDFD;
|
||||||
|
height:400px
|
||||||
|
}
|
158
www/modules/tntcarrier/css/ui.dialog.css
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
/*
|
||||||
|
* jQuery UI screen structure and presentation
|
||||||
|
* This CSS file was generated by ThemeRoller, a Filament Group Project for jQuery UI
|
||||||
|
* Author: Scott Jehl, scott@filamentgroup.com, http://www.filamentgroup.com
|
||||||
|
* Visit ThemeRoller.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Note: If your ThemeRoller settings have a font size set in ems, your components will scale according to their parent element's font size.
|
||||||
|
* As a rule of thumb, set your body's font size to 62.5% to make 1em = 10px.
|
||||||
|
* body {font-size: 62.5%;}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*dialog*/
|
||||||
|
#googleMapTnt .ui-dialog {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||||
|
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
|
||||||
|
font-size: 11px;
|
||||||
|
background: #fcfdfd url(../img/ui-dialog/fcfdfd_40x100_textures_06_inset_hard_100.png) 0 bottom repeat-x;
|
||||||
|
color: #222222;
|
||||||
|
border: 3px solid #808080;
|
||||||
|
position: relative
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-handle {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 0.1px;
|
||||||
|
z-index: 99999
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable .ui-resizable-handle {
|
||||||
|
display: block
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
|
||||||
|
#googleMapTnt .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
|
||||||
|
#googleMapTnt .ui-resizable-n {
|
||||||
|
cursor: n-resize;
|
||||||
|
height: 7px;
|
||||||
|
width: 100%;
|
||||||
|
top: -5px;
|
||||||
|
left: 0px
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-s {
|
||||||
|
cursor: s-resize;
|
||||||
|
height: 7px;
|
||||||
|
width: 100%;
|
||||||
|
bottom: -5px;
|
||||||
|
left: 0px
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-e {
|
||||||
|
cursor: e-resize;
|
||||||
|
width: 7px;
|
||||||
|
right: -5px;
|
||||||
|
top: 0px;
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-w {
|
||||||
|
cursor: w-resize;
|
||||||
|
width: 7px;
|
||||||
|
left: -5px;
|
||||||
|
top: 0px;
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-se {
|
||||||
|
cursor: se-resize;
|
||||||
|
width: 13px;
|
||||||
|
height: 13px;
|
||||||
|
right: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
background: url(../img/ui-dialog/469bdd_11x11_icon_resize_se.gif) no-repeat 0 0
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-sw {
|
||||||
|
cursor: sw-resize;
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
left: 0px;
|
||||||
|
bottom: 0px
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-nw {
|
||||||
|
cursor: nw-resize;
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-resizable-ne {
|
||||||
|
cursor: ne-resize;
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
right: 0px;
|
||||||
|
top: 0px
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-titlebar {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||||
|
padding: 5px 15px 5px 10px;
|
||||||
|
color: #2e6e9e;
|
||||||
|
border-bottom: 1px solid #c5dbec;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
position: relative
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-title {}
|
||||||
|
#googleMapTnt .ui-dialog-titlebar-close {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||||
|
background: url(../img/ui-dialog/6da8d5_11x11_icon_close.gif) 0 0 no-repeat;
|
||||||
|
position: absolute;
|
||||||
|
right: 8px;
|
||||||
|
top: 7px;
|
||||||
|
width: 11px;
|
||||||
|
height: 11px;
|
||||||
|
z-index: 100
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-titlebar-close-hover, .ui-dialog-titlebar-close:hover {
|
||||||
|
background: url(../img/ui-dialog/217bc0_11x11_icon_close.gif) 0 0 no-repeat
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-titlebar-close:active {
|
||||||
|
background: url(../img/ui-dialog/f9bd01_11x11_icon_close.gif) 0 0 no-repeat
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-titlebar-close span {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-content {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||||
|
color: #222222;
|
||||||
|
padding: 15px 17px;
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-buttonpane {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
|
border-top: 1px solid #a6c9e2;
|
||||||
|
background: #fcfdfd
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-buttonpane button {
|
||||||
|
margin: 5px 0 5px 8px;
|
||||||
|
color: #2e6e9e;
|
||||||
|
background: #dfeffc url(../img/ui-dialog/dfeffc_40x100_textures_02_glass_85.png) 0 50% repeat-x;
|
||||||
|
font-size: 1;
|
||||||
|
border: 10px solid #c5dbec;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 2px 6px 3px 6px;
|
||||||
|
line-height: 14px
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-buttonpane button:hover {
|
||||||
|
color: #1d5987;
|
||||||
|
background: #d0e5f5 url(../img/ui-dialog/d0e5f5_40x100_textures_02_glass_75.png) 0 50% repeat-x;
|
||||||
|
border: 1px solid #79b7e7
|
||||||
|
}
|
||||||
|
#googleMapTnt .ui-dialog-buttonpane button:active {
|
||||||
|
color: #e17009;
|
||||||
|
background: #f5f8f9 url(../img/ui-dialog/f5f8f9_40x100_textures_06_inset_hard_100.png) 0 50% repeat-x;
|
||||||
|
border: 1px solid #79b7e7
|
||||||
|
}
|
||||||
|
/* This file skins dialog */
|
||||||
|
#googleMapTnt .ui-dialog.ui-draggable .ui-dialog-titlebar,
|
||||||
|
#googleMapTnt .ui-dialog.ui-draggable .ui-dialog-titlebar {
|
||||||
|
cursor: move
|
||||||
|
}
|
62
www/modules/tntcarrier/css/ui.tabs.css
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
/*UI tabs*/
|
||||||
|
.ui-tabs-nav {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||||
|
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
|
||||||
|
font-size: 10px;
|
||||||
|
float: left;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
/*border-right: 1px solid #c5dbec;*/
|
||||||
|
bottom: -1px
|
||||||
|
}
|
||||||
|
.ui-tabs-nav ul {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs-nav li {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||||
|
float: left;
|
||||||
|
border: 1px solid #c5dbec;
|
||||||
|
border-right: none
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs-nav li a {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||||
|
float: left;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: .2em 1em;
|
||||||
|
color: #2e6e9e;
|
||||||
|
background: #dfeffc url(../img/ui-dialog/dfeffc_40x100_textures_02_glass_85.png) 0 50% repeat-x
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs-nav li a:hover {
|
||||||
|
background: #d0e5f5 url(../img/ui-dialog/d0e5f5_40x100_textures_02_glass_75.png) 0 50% repeat-x;
|
||||||
|
color: #1d5987
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs-nav li.ui-tabs-selected {
|
||||||
|
border-bottom-color: #f5f8f9
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs-nav li.ui-tabs-selected a, .ui-tabs-nav li.ui-tabs-selected a:hover {
|
||||||
|
background: #f5f8f9 url(../img/ui-dialog/f5f8f9_40x100_textures_06_inset_hard_100.png) 0 50% repeat-x;
|
||||||
|
color: #e17009
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs-panel {
|
||||||
|
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||||
|
/*font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;*/
|
||||||
|
clear:left;
|
||||||
|
border: 1px solid #c5dbec;
|
||||||
|
background: #fcfdfd url(../img/ui-dialog/fcfdfd_40x100_textures_06_inset_hard_100.png) 0 bottom repeat-x;
|
||||||
|
/*color: #222222;*/
|
||||||
|
padding: 1em 1em;
|
||||||
|
width: 315px;
|
||||||
|
font-size: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs-hide {
|
||||||
|
display: none;/* for accessible hiding: position: absolute; left: -99999999px*/
|
||||||
|
}
|
75
www/modules/tntcarrier/de.php
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
global $_MODULE;
|
||||||
|
$_MODULE = array();
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_416900392875e9effb318da8648fbdcb'] = 'muss konfiguriert sein, um dieses Modul richtig zu nutzen';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e2236d4f47edb104d62eaa4168b298f0'] = 'muss konfiguriert sein, um dieses Modul richtig zu nutzen';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b718adec73e04ce3ec720dd11a06a308'] = 'ID';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_7dce122004969d56ae2e0245cb754d35'] = 'Bearbeiten';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_f2a6c498fb90ee345d997f888fce3b18'] = 'Löschen';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_43781db5c40ecc39fd718685594f0956'] = 'Speichern';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_af7c2efe81330e4c9089f2c90781282e'] = 'Falls Sie noch nicht registriert sind, klicken Sie';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_6c92285fa6d3e827b198d120ea3ac674'] = 'hier';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_99dea78007133396a7b8ed70578ac6ae'] = 'Kennung';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_dc647eb65e6711e155375218212b3964'] = 'Kennwort';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_43781db5c40ecc39fd718685594f0956'] = 'Speichern';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>country_de95b43bceeb4b998aed4aed5cef1ae7'] = 'Bearbeiten';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>countryform_43781db5c40ecc39fd718685594f0956'] = 'Speichern';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_1a315e32fa4a411ea6a2ea8bd8ccc622'] = 'Package Information';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_910d956cb2615e5739ac06c7f08fba26'] = 'shipping number';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_63d5049791d9d79d86e9a108b0a999ca'] = 'Artikel-Nr.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_c2ba7e785c49050f48da9aacc45c2b85'] = 'Service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_8c489d0946f66d17d73f26366a4bf620'] = 'Artikel-Nr.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_44749712dbec183e983dcd78a7736c41'] = 'Datum';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_6a7e73161603d87b26a8eac49dab0a9c'] = 'Lokalzeit';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_c3f15ecc6da0827a8da712cb43a0b596'] = 'Informationen zum Lieferanten';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_44749712dbec183e983dcd78a7736c41'] = 'Datum';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c3f15ecc6da0827a8da712cb43a0b596'] = 'Informationen zum Lieferanten';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_a2ae6cc9a7acfff494422585a43459c2'] = 'Empfänger';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_a1fa27779242b4902f7ae3bdd5c6d508'] = 'Typ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2e21e83375deefc4a3620ab667157e27'] = 'Adresse 2';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_57d056ed0984166336b7879c2af3657f'] = 'Stadt';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e7b47c58815acf1d3afa59a84b5db7fb'] = 'Firmenname:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'E-Mail';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_bcc254b55c4a1babdf1dcb82c207506b'] = 'Telefonnr.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_8aace3ec18d83874d22850b7eee93c7d'] = 'Absender';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_9810aa2b9f44401be4bf73188ef2b67d'] = 'Faxnr.:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_f38e9081d395bb971dd1bf81f65f22e6'] = 'Parcel';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_8c489d0946f66d17d73f26366a4bf620'] = 'Gewicht';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_0be8406951cdfda82f00f79328cf4efc'] = 'Kommentieren';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c2ba7e785c49050f48da9aacc45c2b85'] = 'Service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_77587239bf4c54ea493c7033e1dbf636'] = 'Nachname';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_bc910f8bdf70f29374f496f05be0330c'] = 'Vorname';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_3225a10b07f1580f10dee4abc3779e6c'] = 'Parameter';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_ec03d3b301ba9b151bc36b4811158dc7'] = 'Absendedatum:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Kontonummer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_694e8d1f2ee056f98ee488bdc4982d73'] = 'Menge';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_cf67059a7bd51c3543def1ee4bdc4fe1'] = 'Samstagslieferung';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>main_927e079056c2709236d4167bbb96e799'] = 'Versandeinstellungen';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_d3d2e617335f08df83599665eef8a418'] = 'Schließen';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_961f2247a2070bedff9f9cd8d64e2650'] = 'Wählen';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_490aa6e856ccf208a054389e47ce0d06'] = 'ID';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_49ee3087348e8d44e1feda1917443987'] = 'Name';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Beschreibung';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_c13367945d5d4c91047b3b50234aa7ab'] = 'Code';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_cb456215c3333db0551bd0788bc258c7'] = 'Aktiviert';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_de95b43bceeb4b998aed4aed5cef1ae7'] = 'Bearbeiten';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_099af53f601532dbd31e0ea99ffdeb64'] = 'Löschen';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_49ee3087348e8d44e1feda1917443987'] = 'Name';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Beschreibung';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_c13367945d5d4c91047b3b50234aa7ab'] = 'Code';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_cb456215c3333db0551bd0788bc258c7'] = 'Aktiviert';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_43781db5c40ecc39fd718685594f0956'] = 'Speichern';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_ea9cf7e47ff33b2be14e6dd07cbcefc6'] = 'Transport';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_e7b47c58815acf1d3afa59a84b5db7fb'] = 'Firmenname:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_e9f79aa2b1f455a52497a126d9442582'] = 'Adresse Zeile 1:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_3d4d4cac03e194ab20154382cd544e0f'] = 'Adresse Zeile 2:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_57d056ed0984166336b7879c2af3657f'] = 'Stadt';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_43781db5c40ecc39fd718685594f0956'] = 'Speichern';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_70397c4b252a5168c5ec003931cea215'] = 'Pflichtfelder';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_c3f15ecc6da0827a8da712cb43a0b596'] = 'Informationen zum Lieferanten';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_0c458988127eb2150776881e2ef3f0c4'] = 'Lieferadresse:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_e19726b466603bc3e444dd26fbcde074'] = 'Kundenadresse';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_c3f15ecc6da0827a8da712cb43a0b596'] = 'Informationen zum Lieferanten';
|
||||||
|
|
||||||
|
?>
|
0
www/modules/tntcarrier/en.php
Normal file
184
www/modules/tntcarrier/es.php
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
global $_MODULE;
|
||||||
|
$_MODULE = array();
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_58ec6a48b4720ef0aa2adfded1ccf8a3'] = 'TNT Express';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_9b7637001f5d2bcb42efb4ab6b3e93da'] = 'Ofrezca a sus clientes, diferentes métodos de entrega con TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_416900392875e9effb318da8648fbdcb'] = 'debe estar configurado para funcionar correctamente';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e2236d4f47edb104d62eaa4168b298f0'] = 'tiene que ser configurado para usar este módulo correctamente.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_632cae5cf3af08786414932a8e6f96a0'] = 'TNT Login';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_3b4f51300711a1eb61770d1696702402'] = 'TNT Contraseña';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_0e3b102c1a4938889716cea423a95001'] = 'Número de cuenta TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e81d9f25acf7fa457ab32527a882ed50'] = 'Transportista TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b06cdf3c0c75a1a58b82761f87f458e4'] = 'Estado del transportista TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_1fc73713174ad5eb03c739919ac430e0'] = 'Los siguientes parámetros están configurados correctamente y activado en su tienda online:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_a26e3a6c254d271fc27418f8b70359b8'] = 'CuentaTNT . (Ficha Cuenta de ajuste)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_6ffb536c94a6c31c53bf5dff30e9279e'] = 'Dirección de envío. (Gastos de envío parámetros de ajuste)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b691e01572a1a26f81b45a59485eeef0'] = 'Elección del modo específico de entrega de TNT que desea ofrecer a sus clientes.(Servicio de parámetros de ajuste)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_4491a628c11792d8ebcbd5baeff483da'] = 'SOAP está disponible';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_a37a7157334806e3c62eea1592bd71e5'] = 'Los siguientes parámetros tienen que ser configurado para poder utilizar correctamente el módulo de TNT:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_29f8a1938b0e043c2b82d3a96a943b4d'] = 'SOAP esta desactivado';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_3bdbda3bf0eaeb6d537e8e71831ccd51'] = 'Añadir los cargos adicionales en función del peso del paquete';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b718adec73e04ce3ec720dd11a06a308'] = 'ID';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_02f6a536789c7b8399ddbd1652d85d9c'] = 'Peso mínimo';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_03b4258831663af9e7f48bc6bc574e6c'] = 'Peso máximo';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_7ec0def44906b0cd2848459349eea638'] = 'Cargo adicional (Euros)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_7dce122004969d56ae2e0245cb754d35'] = 'Editar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_f2a6c498fb90ee345d997f888fce3b18'] = 'Borrar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_0619bef93192e574f288fe2e55c3a7f7'] = 'Peso min';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_d57c218ba8993f897e7d0d607cb0919b'] = 'Peso máximo (puede estar vacía)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_508ccf43328cac4c93d1de242d2ddffb'] = 'Cargo additionnal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_43781db5c40ecc39fd718685594f0956'] = 'Guardar ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_31233b21c141d4a9d6aa01a02d1122ae'] = 'Todos los campos son necesarios';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_2245cf8e0cb7a6e9534df5f1a945a7f2'] = 'Usted necesita una cuenta de TNT para completar su dirección de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_7671f3696ad03d80261fb2bbcf333b0e'] = 'El código pex falta';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_6c36e3aa5d481ea03198c06efc1d234d'] = 'No se encuentra el nombre de la empresa ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b3db99c8dc8b213354be277cf4ddb154'] = 'Apellido de contacto no seencuentra';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_c60d17239c011f35a9676ff44ae01111'] = 'Primer nombre de contacto no se encuentra';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_bf0e6239fc4516cff7baf75b93326725'] = 'Falta dirección';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_955c00725d761c9a588fc28ebe27f0e2'] = 'Dirección línea 2 debe ser menor de 32 caracteres';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_4a91c15e73f1a22615882f7abf71be7c'] = 'Falta código postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e7cac4ccbcb0f12c54b145b5900ef8ac'] = 'No se encuentra dirección de correo electrónico de contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_57a6a3f27119fc2f8af8e923b9be3de1'] = 'No se cuenentra teléfono de contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_83b5db62e8c7e3f85da58cdf158a484d'] = 'No se encuentra hora de cierre de la empresa';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_9bb8de9eec753fcbf4d14b7ecc7043da'] = 'La ciudad no es compatible con el dódigo postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_69d865b41dc0e6611be76776c4a9456d'] = 'Usted tiene que dar un nombre de servicio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e71361626c48f42620b92cc81fd41ba2'] = 'Usted tiene que dar un código de servicio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_d2f2575c30fa33e53905ae05bc02f281'] = 'Usted tiene que dar una descripción del servicio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b2afc87cbd5395d19bb469820e1b7b8f'] = 'El código de servicio ya se asigna a uno de sus servicios';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_4a015051e9e879952cf4215d344ec101'] = 'Servicio de actualización';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_bef36fffa9fb82dcc73c1b55539f6898'] = 'El código postal introducido no se corresponde con la ciudad.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_a8902236aba1133fdf18a5fa229422bb'] = 'Por favor, confirme la ciudad a continuación:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_d968787921c136e1cf9f766562aec8bc'] = 'Los siguientes parámetros fueron proporcionados a usted por TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_af7c2efe81330e4c9089f2c90781282e'] = 'Si no está registrado aún, haga clic en';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_6c92285fa6d3e827b198d120ea3ac674'] = 'aquí';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_91396a85cdff74c571ec0bdc5a9bc136'] = '(guía de configuración adjuntada)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_160f61d02d22b76b47b4305094bf36a6'] = 'Cuenta TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_99dea78007133396a7b8ed70578ac6ae'] = 'Login';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_dc647eb65e6711e155375218212b3964'] = 'Contraseña:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_05e642d027a22d12780ccf91bf9d7d34'] = 'Número de cuenta';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_43781db5c40ecc39fd718685594f0956'] = 'Guardar ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>country_7b9cf007806ed854cd12ab800c8a982b'] = 'Lugar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>country_4dd77960e89b80d1b11e7c095e47d8e0'] = 'Cargo adicional (eur)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>country_de95b43bceeb4b998aed4aed5cef1ae7'] = 'Editar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>countryform_43781db5c40ecc39fd718685594f0956'] = 'Guardar ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_1a315e32fa4a411ea6a2ea8bd8ccc622'] = 'Información de paquete';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_910d956cb2615e5739ac06c7f08fba26'] = 'Número de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_b858b5e76fea1f971f69c7395e6e2235'] = 'Estado de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_63d5049791d9d79d86e9a108b0a999ca'] = 'Referencia';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_c2ba7e785c49050f48da9aacc45c2b85'] = 'Servicio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_8c489d0946f66d17d73f26366a4bf620'] = 'Peso';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_a4ecfc70574394990cf17bd83df499f7'] = 'Evento';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_44749712dbec183e983dcd78a7736c41'] = 'Fecha';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_6a7e73161603d87b26a8eac49dab0a9c'] = 'Horas:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_84246e5b819bd9afe465dc44eec0d528'] = 'Nombre del centro';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_1ae95b5bddf2cd6f78250fd967953739'] = 'Paquete o solicitud';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_06d714e70e6393de4707c87f780f491a'] = 'Paquete en camino';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_16328b440b4698eae30df60adc198623'] = 'Salida del depósito';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_ff0aa49d3eeadb46b41cf22eeaf41fb5'] = 'presentador del conductor';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_e2560f1841797910acf77fee40e3715d'] = 'prueba de la firma';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_c3f15ecc6da0827a8da712cb43a0b596'] = 'Información de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_44749712dbec183e983dcd78a7736c41'] = 'Fecha';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_7f090bbab1cc7f9c08bf4e54d932d3c0'] = 'Modificar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c3f15ecc6da0827a8da712cb43a0b596'] = 'Información de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_3a04391fb189758b50815b3105bc0049'] = 'Cada envase debe estar en';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2ce124d87604bed00f310d4585d26ea7'] = 'Kg.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_d71ce4b053fcbf3816ffd7e789bb86f6'] = 'modificar la información';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_a2ae6cc9a7acfff494422585a43459c2'] = 'receptor';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_a1fa27779242b4902f7ae3bdd5c6d508'] = 'Tipo:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2c33e4548ecd359e58a26208700f310e'] = 'ID de tipo';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e4fa642109d420d04a8bb93fc0796ec2'] = 'Nombre de la empresa';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_956205f0d2c8352f3d92aa3438f1b646'] = 'Dirección 1';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2e21e83375deefc4a3620ab667157e27'] = 'Dirección 2';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_25f75488c91cb6c3bab92672e479619f'] = 'Código postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_57d056ed0984166336b7879c2af3657f'] = 'Ciudad:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e7b47c58815acf1d3afa59a84b5db7fb'] = 'Nombre de la empresa:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c742c5a36b6307267bb709355feb2c41'] = 'Instrucción';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_713ab3d18388965a186bcfa506632b31'] = 'Apellido del contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_38f427ffad1f1bb51933699e88ed0324'] = 'Nombre del contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'Email';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_bcc254b55c4a1babdf1dcb82c207506b'] = 'Teléfono:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_1bf6207b04c0a60f6bbaa1a7dedcc5b8'] = 'Código de acceso';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_719b600f3cf6e78d57a4be684575e013'] = 'Número de piso';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_94f7ff6d7ebf7bc3980d8bbbc0c4bfb9'] = 'ID de edificio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_6b3ecaab7f7d3cc9b7f1e411561572c9'] = 'Enviar notificación';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_8aace3ec18d83874d22850b7eee93c7d'] = 'Enviador';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_34978197d2de6a5eae6e32afd5b4a613'] = 'Apellido del contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_9810aa2b9f44401be4bf73188ef2b67d'] = 'Fax:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_81f3ad4b3dda7db49cac0e37da0f80d4'] = 'Solicitud de paquetes';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_f38e9081d395bb971dd1bf81f65f22e6'] = 'parcela';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_48e0285a1f6416463c02737b0e2242d5'] = 'Referencia del cliente';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_8c489d0946f66d17d73f26366a4bf620'] = 'Peso';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_fcf65892351515c85895c2fc63f6728a'] = 'Cantidad de Seguros';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_711cf5dfc77105e9917eab576cdc1c68'] = 'prioridad de Garantía';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_0be8406951cdfda82f00f79328cf4efc'] = 'Comentario:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_9868be19fe539924f12f2407d58c1715'] = 'Solicitud de retiro';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_3b563524fdb17b4a86590470d40bef74'] = 'Medio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_9f91cb5feb7b8af53716017b15812a0a'] = 'Número de Fax';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e19998a4f539cb7665830e166714ec78'] = 'Notifiqueme éxito';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c2ba7e785c49050f48da9aacc45c2b85'] = 'Servicio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_77587239bf4c54ea493c7033e1dbf636'] = 'Apellidos';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_bc910f8bdf70f29374f496f05be0330c'] = 'Nombre';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_1e4dbc7eaa78468a3bc1448a3d68d906'] = 'Numero de teléfono';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_3225a10b07f1580f10dee4abc3779e6c'] = 'Parámetros';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_ec03d3b301ba9b151bc36b4811158dc7'] = 'Dato de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Número de cuenta';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_473b9b7e8964ab5f193d282f8b4b527c'] = 'Código de servicio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_694e8d1f2ee056f98ee488bdc4982d73'] = 'Cantidad';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_cf67059a7bd51c3543def1ee4bdc4fe1'] = 'Entrega los sábados';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_282cbe74a7682ee95d754c3d4cf14bc5'] = 'Formato de etiqueta';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e076401daebf67f431c1cfb9b2d08492'] = 'obtener un número de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>main_8af703b2bf59cc9742883ae7f4cb0e5b'] = 'Configuración de la cuenta';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>main_927e079056c2709236d4167bbb96e799'] = 'Configuración de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>main_82fe86ee1a21af1c1db5c8c4c5e5a188'] = 'Configuración del servicio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_d3d2e617335f08df83599665eef8a418'] = 'Cerrar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_25f75488c91cb6c3bab92672e479619f'] = 'Código postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_961f2247a2070bedff9f9cd8d64e2650'] = '--Elija--';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_7e0de5b1122d90d8bfb6ee3ffc5f96d1'] = 'Añadir un servicio de TNT a través de su código específico';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_91396a85cdff74c571ec0bdc5a9bc136'] = '(cf. guía de configuración anexada)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_490aa6e856ccf208a054389e47ce0d06'] = 'ID';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_49ee3087348e8d44e1feda1917443987'] = 'Nombre';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Descripción';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_c13367945d5d4c91047b3b50234aa7ab'] = 'Código:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_ce0022ab4f29f07dcc5f63ac1ed92bfa'] = 'Cargo adicional (eur)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_cb456215c3333db0551bd0788bc258c7'] = 'Activado';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_de95b43bceeb4b998aed4aed5cef1ae7'] = 'Editar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_099af53f601532dbd31e0ea99ffdeb64'] = 'Borrar';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_49ee3087348e8d44e1feda1917443987'] = 'Nombre';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Descripción';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_c13367945d5d4c91047b3b50234aa7ab'] = 'Código:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_51866de17fcc83e505a2a43fa054082d'] = 'Cargo adicional (eur)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_cb456215c3333db0551bd0788bc258c7'] = 'Activado';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_43781db5c40ecc39fd718685594f0956'] = 'Guardar ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_ea9cf7e47ff33b2be14e6dd07cbcefc6'] = 'Envio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_e7b47c58815acf1d3afa59a84b5db7fb'] = 'Nombre de la empresa:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_e9f79aa2b1f455a52497a126d9442582'] = 'Dirección Linea 1';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_3d4d4cac03e194ab20154382cd544e0f'] = 'Dirección Línea 2';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_25f75488c91cb6c3bab92672e479619f'] = 'Código postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_57d056ed0984166336b7879c2af3657f'] = 'Ciudad:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_aebdb4c64006c8addc403e43b787ef3a'] = 'Hora de cierre de la empresa';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_957ed71874c1481df52fd2141dc6e6b7'] = 'Apellido del contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_251a7b59d516d8335d81a4e3ab930f76'] = 'Nombre del contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_c019e2e64906ee18ab5628981c2c9e41'] = 'Email del contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_789511c3c50cc84ffd48cd496ce3f128'] = 'Teléfono del contacto';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_7ac2964ba0a2e00142b66d2564878c2c'] = 'Marque esta casilla si usted está en la carta de recogida';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_dc86b23a40568ae3ece2d3008ca61442'] = 'Etiqueta Formato para la impresión (Esta etiqueta tendrá que ser pegada en el envase)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_2976cd63d00184e3f0a45c1337cd31f0'] = 'Impresión A4';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_2f95a5450ee306f7faca792e379ccb34'] = 'sin necesidad de imprimir el logotipo de TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_44fca4829aecbdf69a2200ea0a10a8aa'] = 'con una impresión inversa';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_a67ee8b3121d0ceb601e9f0600db9692'] = 'sin imprimir el logotipo de TNT y con una impresión inversa';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_43781db5c40ecc39fd718685594f0956'] = 'Guardar ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_70397c4b252a5168c5ec003931cea215'] = 'Campos obligatorios';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_c3f15ecc6da0827a8da712cb43a0b596'] = 'Información de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_3a04391fb189758b50815b3105bc0049'] = 'Cada envase debe estar en';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_2ce124d87604bed00f310d4585d26ea7'] = 'Kg';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_337d01bac642ef65f5c694d91a78551c'] = 'Numerodeenvio';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_0b77915df34c7873750ea67e88c88451'] = 'Etiqueta';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_d5aad80114d8aa47f31a6f5050ef6835'] = 'Expedición';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_0c458988127eb2150776881e2ef3f0c4'] = 'Dirección de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_e19726b466603bc3e444dd26fbcde074'] = 'Dirección del cliente';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_25364beb50b7a39331177a65760e18f7'] = 'Dirección del paquete';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_c3f15ecc6da0827a8da712cb43a0b596'] = 'Información de envío';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_7f090bbab1cc7f9c08bf4e54d932d3c0'] = 'Modificar';
|
||||||
|
|
||||||
|
?>
|
53
www/modules/tntcarrier/follow.php
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
require(dirname(__FILE__).'/../../config/config.inc.php');
|
||||||
|
require_once(_PS_MODULE_DIR_."/tntcarrier/classes/TntWebService.php");
|
||||||
|
|
||||||
|
global $smarty, $cookie;
|
||||||
|
$cookie->id_lang = (int)Language::getIdByIso('fr');
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$tntWebService = new TntWebService();
|
||||||
|
$follow[] = $tntWebService->followPackage(Tools::getValue('code'));
|
||||||
|
}
|
||||||
|
catch(SoapFault $e)
|
||||||
|
{
|
||||||
|
$error = $e->faultstring;
|
||||||
|
echo $error;
|
||||||
|
}
|
||||||
|
catch(Exception $e)
|
||||||
|
{
|
||||||
|
$error = "Problem : follow failed";
|
||||||
|
}
|
||||||
|
|
||||||
|
$config['date'] = '%d/%m/%y';
|
||||||
|
$config['time'] = '%I:%M %p';
|
||||||
|
|
||||||
|
$smarty->assign('config', $config);
|
||||||
|
$smarty->assign('follow', $follow);
|
||||||
|
$smarty->display(dirname(__FILE__).'/tpl/follow.tpl');
|
194
www/modules/tntcarrier/fr.php
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
global $_MODULE;
|
||||||
|
$_MODULE = array();
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_58ec6a48b4720ef0aa2adfded1ccf8a3'] = 'TNT Express';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_9b7637001f5d2bcb42efb4ab6b3e93da'] = 'La livraison express 24h partout en France avant 13h';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_416900392875e9effb318da8648fbdcb'] = 'doivent etre configurés pour utiliser le module correctement';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e2236d4f47edb104d62eaa4168b298f0'] = 'doit être configuré pour utiliser le module correctement.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_632cae5cf3af08786414932a8e6f96a0'] = 'Identifiant TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_3b4f51300711a1eb61770d1696702402'] = 'Mot de passe TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_0e3b102c1a4938889716cea423a95001'] = 'Numéro de compte TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e81d9f25acf7fa457ab32527a882ed50'] = 'Transporteur TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b06cdf3c0c75a1a58b82761f87f458e4'] = 'Etat du module transporteur TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_1fc73713174ad5eb03c739919ac430e0'] = 'Les paramètres suivants sont correctement configurés et activés sur votre boutique :';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_a26e3a6c254d271fc27418f8b70359b8'] = 'Compte TNT. (Onglet Paramètres de compte)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_6ffb536c94a6c31c53bf5dff30e9279e'] = 'Adresse d\'expédition. (Onglet adresse d\'expédition)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b691e01572a1a26f81b45a59485eeef0'] = 'Choix du mode de livraison spécifique TNT que vous voulez offrir à vos clients. (Onglet Mode de livraison)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_4491a628c11792d8ebcbd5baeff483da'] = 'Soap est activé';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_a37a7157334806e3c62eea1592bd71e5'] = 'Les paramètres suivants doivent être configurés pour être en mesure d\'utiliser correctement le module TNT:';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_29f8a1938b0e043c2b82d3a96a943b4d'] = 'Soap est désactivé';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_3bdbda3bf0eaeb6d537e8e71831ccd51'] = 'Ajouter des frais supplémentaires en fonction du poids du colis';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b718adec73e04ce3ec720dd11a06a308'] = 'ID';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_02f6a536789c7b8399ddbd1652d85d9c'] = 'Poids Min (Kg)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_03b4258831663af9e7f48bc6bc574e6c'] = 'Poids Max (Kg)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_7ec0def44906b0cd2848459349eea638'] = 'Frais additionnels ()';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_7dce122004969d56ae2e0245cb754d35'] = 'Modifier';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_f2a6c498fb90ee345d997f888fce3b18'] = 'Supprimer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_0619bef93192e574f288fe2e55c3a7f7'] = 'Poids min';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_d57c218ba8993f897e7d0d607cb0919b'] = 'Poids max (peut être vide)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_508ccf43328cac4c93d1de242d2ddffb'] = 'Frais additionnels';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_43781db5c40ecc39fd718685594f0956'] = 'Enregistrer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_31233b21c141d4a9d6aa01a02d1122ae'] = 'Tous les champs sont obligatoires';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_2245cf8e0cb7a6e9534df5f1a945a7f2'] = 'Vous devez posséder un compte TNT pour compléter votre adresse d\'expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_7671f3696ad03d80261fb2bbcf333b0e'] = 'Le code de pex est manquant';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_6c36e3aa5d481ea03198c06efc1d234d'] = 'Le nom de l\'entreprise est manquant';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b3db99c8dc8b213354be277cf4ddb154'] = 'Le nom du contact est manquant';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_c60d17239c011f35a9676ff44ae01111'] = 'Le prenom de contact est manquant';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_bf0e6239fc4516cff7baf75b93326725'] = 'L\'adresse est manquante';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_955c00725d761c9a588fc28ebe27f0e2'] = 'L\'adresse ligne 2 doit être inférieur à 32 caractères';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_4a91c15e73f1a22615882f7abf71be7c'] = 'Le code postal est manquant';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e7cac4ccbcb0f12c54b145b5900ef8ac'] = 'L\'adresse email de contact est manquante';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_57a6a3f27119fc2f8af8e923b9be3de1'] = 'Le numéro de téléphone de contact est manquant';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_83b5db62e8c7e3f85da58cdf158a484d'] = 'L\'heure de fermeture de la société est manquante';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_ce4f1f28b2704ebd19a8a3b53a56a3c8'] = 'Vérifiez vos identifiants';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_9bb8de9eec753fcbf4d14b7ecc7043da'] = 'La ville n\'est pas compatible avec le code postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_69d865b41dc0e6611be76776c4a9456d'] = 'Vous devez donner un nom au service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_e71361626c48f42620b92cc81fd41ba2'] = 'Vous devez donner un code au service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_d2f2575c30fa33e53905ae05bc02f281'] = 'Vous devez donner une description au service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b2afc87cbd5395d19bb469820e1b7b8f'] = 'Le code du service est déjà attribué à un de vos services';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_4a015051e9e879952cf4215d344ec101'] = 'Service enregistré';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_bef36fffa9fb82dcc73c1b55539f6898'] = 'Le code postal saisi ne correspond pas à la ville.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_a8902236aba1133fdf18a5fa229422bb'] = 'Choisisser une des villes suivantes :';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_5a55814ea2a5efd195b6e0dc338f1962'] = 'Le code postal de votre adresse de livraison n\'est pas correct.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_b0a69455a720e7aee38c69c11335255a'] = 'Merci de modifier le champ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_f491268900a525fd4a6396e2419efff8'] = 'dans le cadre \\\"Adresse de livraison\\\"';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>tntcarrier_a75e89fe8027552b64e93022b676e313'] = 'dans la configuration de votre module TNT.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_d968787921c136e1cf9f766562aec8bc'] = 'Les paramètres suivants vous ont été fournis par TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_af7c2efe81330e4c9089f2c90781282e'] = 'Si vous n\'êtes pas encore inscrit, cliquez ';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_6c92285fa6d3e827b198d120ea3ac674'] = 'ici';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_91396a85cdff74c571ec0bdc5a9bc136'] = '(Cf. guide de configuration ci-joint)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_160f61d02d22b76b47b4305094bf36a6'] = 'Compte TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_99dea78007133396a7b8ed70578ac6ae'] = 'Identifiant';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_dc647eb65e6711e155375218212b3964'] = 'Mot de passe';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_05e642d027a22d12780ccf91bf9d7d34'] = 'Numéro de compte';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>accountform_43781db5c40ecc39fd718685594f0956'] = 'Enregistrer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>country_7b9cf007806ed854cd12ab800c8a982b'] = 'Lieu';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>country_4dd77960e89b80d1b11e7c095e47d8e0'] = 'Frais additionnels ()';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>country_de95b43bceeb4b998aed4aed5cef1ae7'] = 'modifier';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>countryform_43781db5c40ecc39fd718685594f0956'] = 'Enregistrer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_1a315e32fa4a411ea6a2ea8bd8ccc622'] = 'Information sur le Colis';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_910d956cb2615e5739ac06c7f08fba26'] = 'Numéro d\'expedition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_b858b5e76fea1f971f69c7395e6e2235'] = 'État d\'expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_63d5049791d9d79d86e9a108b0a999ca'] = 'Référence';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_c2ba7e785c49050f48da9aacc45c2b85'] = 'Service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_8c489d0946f66d17d73f26366a4bf620'] = 'Poids';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_a4ecfc70574394990cf17bd83df499f7'] = 'Evénement';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_44749712dbec183e983dcd78a7736c41'] = 'Date';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_6a7e73161603d87b26a8eac49dab0a9c'] = 'Heures';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_84246e5b819bd9afe465dc44eec0d528'] = 'Nom du centre';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_1ae95b5bddf2cd6f78250fd967953739'] = 'Colis en préparation';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_06d714e70e6393de4707c87f780f491a'] = 'Colis en cours d\'acheminement';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_16328b440b4698eae30df60adc198623'] = 'Départ en livraison';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_ff0aa49d3eeadb46b41cf22eeaf41fb5'] = 'Présentation du chauffeur';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_9289d7f17418f50d82077b6470221646'] = 'Statut du colis';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>follow_e2560f1841797910acf77fee40e3715d'] = 'la signature';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_c3f15ecc6da0827a8da712cb43a0b596'] = 'Informations d\'expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_500a14745b4fa3331d7e3fab997cd6ad'] = 'Merci de saisir une nouvelle date d’expédition et de ne pas choisir de jours fériés.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_44749712dbec183e983dcd78a7736c41'] = 'Date';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>formerror_7f090bbab1cc7f9c08bf4e54d932d3c0'] = 'Modifier';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c3f15ecc6da0827a8da712cb43a0b596'] = 'Information de livraison';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_3a04391fb189758b50815b3105bc0049'] = 'Chaque paquet doit faire';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2ce124d87604bed00f310d4585d26ea7'] = 'Kg';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_d71ce4b053fcbf3816ffd7e789bb86f6'] = 'modifier l\'information';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_a2ae6cc9a7acfff494422585a43459c2'] = 'destinataire';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_a1fa27779242b4902f7ae3bdd5c6d508'] = 'Type';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2c33e4548ecd359e58a26208700f310e'] = 'ID Type';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e4fa642109d420d04a8bb93fc0796ec2'] = 'Nom société';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_956205f0d2c8352f3d92aa3438f1b646'] = 'Adresse 1';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2e21e83375deefc4a3620ab667157e27'] = 'Adresse 2';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_25f75488c91cb6c3bab92672e479619f'] = 'Code postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_57d056ed0984166336b7879c2af3657f'] = 'Ville';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e7b47c58815acf1d3afa59a84b5db7fb'] = 'Nom société';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c742c5a36b6307267bb709355feb2c41'] = 'Instruction';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_713ab3d18388965a186bcfa506632b31'] = 'Nom du contact';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_38f427ffad1f1bb51933699e88ed0324'] = 'Prénom du contact';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'E-mail';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_bcc254b55c4a1babdf1dcb82c207506b'] = 'Téléphone';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_1bf6207b04c0a60f6bbaa1a7dedcc5b8'] = 'Code d\'accès';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_719b600f3cf6e78d57a4be684575e013'] = 'Etage';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_94f7ff6d7ebf7bc3980d8bbbc0c4bfb9'] = 'Numéro de batiment';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_6b3ecaab7f7d3cc9b7f1e411561572c9'] = 'Envoi de notification';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_8aace3ec18d83874d22850b7eee93c7d'] = 'Emetteur';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_34978197d2de6a5eae6e32afd5b4a613'] = 'Nom du contact';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_9810aa2b9f44401be4bf73188ef2b67d'] = 'Fax';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_81f3ad4b3dda7db49cac0e37da0f80d4'] = 'Parcel Request';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_f38e9081d395bb971dd1bf81f65f22e6'] = 'Parcel';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_48e0285a1f6416463c02737b0e2242d5'] = 'Référence client';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_8c489d0946f66d17d73f26366a4bf620'] = 'Poids';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_fcf65892351515c85895c2fc63f6728a'] = 'Montant de l\'assurance';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_711cf5dfc77105e9917eab576cdc1c68'] = 'Priorité garantie';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_0be8406951cdfda82f00f79328cf4efc'] = 'Commentaire';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_9868be19fe539924f12f2407d58c1715'] = 'Demande de ramassage';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_3b563524fdb17b4a86590470d40bef74'] = 'Media';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_9f91cb5feb7b8af53716017b15812a0a'] = 'Numéro de fax';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e19998a4f539cb7665830e166714ec78'] = 'Notification de succès';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_c2ba7e785c49050f48da9aacc45c2b85'] = 'Service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_77587239bf4c54ea493c7033e1dbf636'] = 'Nom';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_bc910f8bdf70f29374f496f05be0330c'] = 'Prénom';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_1e4dbc7eaa78468a3bc1448a3d68d906'] = 'Numéro de téléphone';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_3225a10b07f1580f10dee4abc3779e6c'] = 'Paramètres';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_ec03d3b301ba9b151bc36b4811158dc7'] = 'Date de livraison';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Numéro de compte';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_473b9b7e8964ab5f193d282f8b4b527c'] = 'Code du service';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_694e8d1f2ee056f98ee488bdc4982d73'] = 'Quantité';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_cf67059a7bd51c3543def1ee4bdc4fe1'] = 'Livraison samedi';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_282cbe74a7682ee95d754c3d4cf14bc5'] = 'Format du label';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>getshippingnumber_e076401daebf67f431c1cfb9b2d08492'] = 'récupérer un tracking de livraison';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>main_8af703b2bf59cc9742883ae7f4cb0e5b'] = 'Paramètres du compte';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>main_927e079056c2709236d4167bbb96e799'] = 'Adresse d\'expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>main_82fe86ee1a21af1c1db5c8c4c5e5a188'] = 'Mode de livraison';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_d3d2e617335f08df83599665eef8a418'] = 'Fermer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_25f75488c91cb6c3bab92672e479619f'] = 'Code postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>relaiscolis_961f2247a2070bedff9f9cd8d64e2650'] = 'Choisir';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_f2017ef516e79969cc5d7950da6b1237'] = 'Vous pouvez facturer vos clients des frais supplémentaires par rapport au coût facturé par TNT, selon le type de service, la région de France (ex: Corse) ou le poids de l\'emballage.';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_7e0de5b1122d90d8bfb6ee3ffc5f96d1'] = 'Ajouter un service TNT via son code spécifique';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_91396a85cdff74c571ec0bdc5a9bc136'] = '(Cf. guide de configuration ci-joint)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_490aa6e856ccf208a054389e47ce0d06'] = 'Id';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_49ee3087348e8d44e1feda1917443987'] = 'Nom';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Description';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_c13367945d5d4c91047b3b50234aa7ab'] = 'Code';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_ce0022ab4f29f07dcc5f63ac1ed92bfa'] = 'Frais Supplémentaires ()';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_cb456215c3333db0551bd0788bc258c7'] = 'Actif';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_de95b43bceeb4b998aed4aed5cef1ae7'] = 'modifier';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>service_099af53f601532dbd31e0ea99ffdeb64'] = 'supprimer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_49ee3087348e8d44e1feda1917443987'] = 'Nom';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Description';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_c13367945d5d4c91047b3b50234aa7ab'] = 'Code';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_51866de17fcc83e505a2a43fa054082d'] = 'Frais Supplémentaires';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_cb456215c3333db0551bd0788bc258c7'] = 'Actif';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>serviceform_43781db5c40ecc39fd718685594f0956'] = 'Enregistrer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_ea9cf7e47ff33b2be14e6dd07cbcefc6'] = 'Expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_e7b47c58815acf1d3afa59a84b5db7fb'] = 'Nom de l\'entreprise';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_e9f79aa2b1f455a52497a126d9442582'] = 'Adresse ligne 1';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_3d4d4cac03e194ab20154382cd544e0f'] = 'Adresse ligne 2';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_25f75488c91cb6c3bab92672e479619f'] = 'Code postal';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_57d056ed0984166336b7879c2af3657f'] = 'Ville';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_957ed71874c1481df52fd2141dc6e6b7'] = 'Nom du contact';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_251a7b59d516d8335d81a4e3ab930f76'] = 'Prénom du contact';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_c019e2e64906ee18ab5628981c2c9e41'] = 'Adresse Email du contact';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_789511c3c50cc84ffd48cd496ce3f128'] = 'Numéro de téléphone du contact';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_7ac2964ba0a2e00142b66d2564878c2c'] = 'Cochez cette case si vous êtes en ramassage sur demande';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_e078781b0e29ebcf39083d65cfb144e6'] = 'Horaire de passage du livreur TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_dc86b23a40568ae3ece2d3008ca61442'] = 'Format de l\'étiquette pour l\'impression (Cette étiquette doit être collée sur l\'emballage)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_2976cd63d00184e3f0a45c1337cd31f0'] = 'impression A4';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_2f95a5450ee306f7faca792e379ccb34'] = 'sans imprimer le logo de TNT';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_44fca4829aecbdf69a2200ea0a10a8aa'] = 'avec une impression inverse';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_a67ee8b3121d0ceb601e9f0600db9692'] = 'sans imprimer le logo TNT et avec une impression inverse';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_43781db5c40ecc39fd718685594f0956'] = 'Enregistrer';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingform_70397c4b252a5168c5ec003931cea215'] = 'Champs obligatoire';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_c3f15ecc6da0827a8da712cb43a0b596'] = 'L\'information d\'expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_4d344ab4392dca3969a9af3cedbd560d'] = 'Merci de vérifier que chaque colis pèse un maximum de';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_2ce124d87604bed00f310d4585d26ea7'] = 'Kg';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_4d8a6577fb58ee0adbc4b1b578e1ea8d'] = 'Afin d\'obtenir un numéro d\'expédition, merci de modifier le statut de la commande à \"En cours de livraison\"';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_337d01bac642ef65f5c694d91a78551c'] = 'Numéro(s) d\'expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_0b77915df34c7873750ea67e88c88451'] = 'Etiquette';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_d5aad80114d8aa47f31a6f5050ef6835'] = 'Expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_0c458988127eb2150776881e2ef3f0c4'] = 'Adresse d\'expédition';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_e19726b466603bc3e444dd26fbcde074'] = 'Adresse du client';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>shippingnumber_25364beb50b7a39331177a65760e18f7'] = 'Adresse du point relais';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_c3f15ecc6da0827a8da712cb43a0b596'] = 'Informations de livraison';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_d66bafd92f698ed7fac400597d08db9f'] = 'Votre paquet doit faire plus de 0.1Kg et';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_56d721ccadb8bbfd8b47390d82a6ea4b'] = 'Kg';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_06752dfc0286b9fa9e541f204f32f201'] = 'Poids (Kg)';
|
||||||
|
$_MODULE['<{tntcarrier}prestashop>weightform_7f090bbab1cc7f9c08bf4e54d932d3c0'] = 'Modifier';
|
BIN
www/modules/tntcarrier/img/5-puce-choix-gris2.gif
Normal file
After Width: | Height: | Size: 894 B |
BIN
www/modules/tntcarrier/img/bt-CodePostal-1.jpg
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
www/modules/tntcarrier/img/bt-CodePostal-2.jpg
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
www/modules/tntcarrier/img/bt-Continuer-1.jpg
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
www/modules/tntcarrier/img/bt-Continuer-2.jpg
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
www/modules/tntcarrier/img/bt-OK-1.jpg
Normal file
After Width: | Height: | Size: 961 B |
BIN
www/modules/tntcarrier/img/bt-OK-2.jpg
Normal file
After Width: | Height: | Size: 978 B |
BIN
www/modules/tntcarrier/img/bt-Retour.gif
Normal file
After Width: | Height: | Size: 912 B |
BIN
www/modules/tntcarrier/img/close.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
www/modules/tntcarrier/img/close_icon_double.png
Normal file
After Width: | Height: | Size: 436 B |
BIN
www/modules/tntcarrier/img/exception.gif
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
www/modules/tntcarrier/img/exception2.gif
Normal file
After Width: | Height: | Size: 954 B |
BIN
www/modules/tntcarrier/img/google/agenceTnt.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
www/modules/tntcarrier/img/google/red-pushpin-s.png
Normal file
After Width: | Height: | Size: 713 B |
BIN
www/modules/tntcarrier/img/google/red-pushpin.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
www/modules/tntcarrier/img/google/relaisColis.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
35
www/modules/tntcarrier/img/index.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2013 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/afl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2013 PrestaShop SA
|
||||||
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||||
|
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||||
|
|
||||||
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||||
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
|
header("Pragma: no-cache");
|
||||||
|
|
||||||
|
header("Location: ../../../");
|
||||||
|
exit;
|
BIN
www/modules/tntcarrier/img/lg_tnt.gif
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
www/modules/tntcarrier/img/livreur.gif
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
www/modules/tntcarrier/img/logo-tnt-petit.jpg
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
www/modules/tntcarrier/img/logo_24_chezmoi.jpg
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
www/modules/tntcarrier/img/logo_24_relaiscolis.jpg
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
www/modules/tntcarrier/img/logo_24h_chezmoi_RVB.gif
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
www/modules/tntcarrier/img/logo_24h_relaiscolis_RVB.gif
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
www/modules/tntcarrier/img/logos_24.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
www/modules/tntcarrier/img/loupe.gif
Normal file
After Width: | Height: | Size: 649 B |
BIN
www/modules/tntcarrier/img/notes.gif
Normal file
After Width: | Height: | Size: 1021 B |
BIN
www/modules/tntcarrier/img/picto-delai.gif
Normal file
After Width: | Height: | Size: 403 B |
BIN
www/modules/tntcarrier/img/picto_localiser.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
www/modules/tntcarrier/img/tnt_logo.gif
Normal file
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 58 B |
After Width: | Height: | Size: 56 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_11x11_icon_close.gif
Normal file
After Width: | Height: | Size: 62 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_11x11_icon_doc.gif
Normal file
After Width: | Height: | Size: 64 B |
After Width: | Height: | Size: 61 B |
After Width: | Height: | Size: 61 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_11x11_icon_minus.gif
Normal file
After Width: | Height: | Size: 56 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_11x11_icon_plus.gif
Normal file
After Width: | Height: | Size: 61 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_7x7_arrow_down.gif
Normal file
After Width: | Height: | Size: 52 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_7x7_arrow_left.gif
Normal file
After Width: | Height: | Size: 53 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_7x7_arrow_right.gif
Normal file
After Width: | Height: | Size: 53 B |
BIN
www/modules/tntcarrier/img/ui-dialog/217bc0_7x7_arrow_up.gif
Normal file
After Width: | Height: | Size: 52 B |
After Width: | Height: | Size: 58 B |
After Width: | Height: | Size: 56 B |
BIN
www/modules/tntcarrier/img/ui-dialog/469bdd_11x11_icon_doc.gif
Normal file
After Width: | Height: | Size: 64 B |
BIN
www/modules/tntcarrier/img/ui-dialog/469bdd_11x11_icon_minus.gif
Normal file
After Width: | Height: | Size: 56 B |
BIN
www/modules/tntcarrier/img/ui-dialog/469bdd_11x11_icon_plus.gif
Normal file
After Width: | Height: | Size: 61 B |
After Width: | Height: | Size: 61 B |
BIN
www/modules/tntcarrier/img/ui-dialog/469bdd_7x7_arrow_down.gif
Normal file
After Width: | Height: | Size: 52 B |
BIN
www/modules/tntcarrier/img/ui-dialog/469bdd_7x7_arrow_left.gif
Normal file
After Width: | Height: | Size: 53 B |
BIN
www/modules/tntcarrier/img/ui-dialog/469bdd_7x7_arrow_right.gif
Normal file
After Width: | Height: | Size: 53 B |
BIN
www/modules/tntcarrier/img/ui-dialog/469bdd_7x7_arrow_up.gif
Normal file
After Width: | Height: | Size: 52 B |
After Width: | Height: | Size: 58 B |
After Width: | Height: | Size: 56 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_11x11_icon_close.gif
Normal file
After Width: | Height: | Size: 62 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_11x11_icon_doc.gif
Normal file
After Width: | Height: | Size: 64 B |
After Width: | Height: | Size: 61 B |
After Width: | Height: | Size: 61 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_11x11_icon_minus.gif
Normal file
After Width: | Height: | Size: 56 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_11x11_icon_plus.gif
Normal file
After Width: | Height: | Size: 61 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_7x7_arrow_down.gif
Normal file
After Width: | Height: | Size: 52 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_7x7_arrow_left.gif
Normal file
After Width: | Height: | Size: 53 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_7x7_arrow_right.gif
Normal file
After Width: | Height: | Size: 53 B |
BIN
www/modules/tntcarrier/img/ui-dialog/6da8d5_7x7_arrow_up.gif
Normal file
After Width: | Height: | Size: 52 B |
After Width: | Height: | Size: 235 B |
After Width: | Height: | Size: 325 B |
After Width: | Height: | Size: 308 B |
After Width: | Height: | Size: 58 B |
After Width: | Height: | Size: 56 B |
BIN
www/modules/tntcarrier/img/ui-dialog/f9bd01_11x11_icon_close.gif
Normal file
After Width: | Height: | Size: 62 B |
BIN
www/modules/tntcarrier/img/ui-dialog/f9bd01_11x11_icon_doc.gif
Normal file
After Width: | Height: | Size: 64 B |
After Width: | Height: | Size: 61 B |
After Width: | Height: | Size: 61 B |
BIN
www/modules/tntcarrier/img/ui-dialog/f9bd01_11x11_icon_minus.gif
Normal file
After Width: | Height: | Size: 56 B |