WebSite X5Help Center

 
Axel  
Axel  
User

Comment récupérer des variables ecommerce dans une page de remerciements  fr

Author: Axel  
Visited 258, Followers 1, Shared 0  

Hello KolAsim,

Comme convenu voici mon post:

Comment récupérer des variables eCommerce (nom acheteur, Numéro commande, email acheteur) pour les intégrer dans une page de remerciements à créer ?

Sur mon site de demo: wsx5demo.afsoftware.fr

Axel

Posted on the
30 ANSWERS - 3 USEFUL - 1 CORRECT
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... OK ... ... si vous faites référence à mon message dans ce sujet EN, mon idée est basée sur faire apparaître un résumé du mail_form dans une showbox de superposition merci dans le même cart/#STEP4, (ou dans un DIV_CUSTOM)...
... donc si vous êtes intéressé comme mentionné pour l'#STEP4, faites-le moi savoir...
... alors je vais faire quelques tests en simulant de faux achats pour tester...

.

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

Oui c'est bien cela !

merci

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... OK ... je ferai quelques tests d'achat, et ensuite je vous tiendrai au courant...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

Cool.... merci

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

...malheureusement dans votre panier il y a d'autres codes EXTRA et dans #sterp4 une redirection est également active qui ne vous permet pas de visualiser et de confirmer la même #step4...
...de toute façon, j'ai quand même essayé d'adapter mon code...
...tu peux essayer ceci :

<script>
/** --- rilevamento dati mail_form x messaggio in showbox nello #step4 x cart WSx5 by KolAsim -- **/
$( document ).ready(function() { //K>;
anchorK = location.hash;
controlloK()
}); //K<<;
///----------------------------------
$(window).on("hashchange", function() {//K1>;
anchorK = location.hash;
controlloK()
}); //K1<<;
///------------------------------------
$(window).on("hashchange", function() {//k2>;
anchorK = location.hash;
if (anchorK == "#step4"){ //K3>;
setTimeout(function() {//K4>;
x5engine.imShowBox({'media': [{'type': 'K','width': 450,'height':300}]});
},500);//K4<<;
}//K3<<;
$("#imShowBox > div > img").parent().html( testoK);
setTimeout(function(){//K5>;
$("#imShowBox").html( testoK);
}, 1000)//K5<<;
});//k2<<;
//------------------------
function controlloK(){//K6>;
if (anchorK == "#step1/guest_order" || anchorK == "#step1" ){ //K7>;
setTimeout(function() {//K8>;
$(".btn-next input,#div_K2").click(function(){//K9>;
rilevaDatiK();
messaggioK();
}) //K9<<;
},500);//K8<<;
}//K7<<;
}//K6<<;
//------------------------------
function rilevaDatiK(){//K10>;
Company = $("#Company").val();
Name = $("#Name").val()
LastName = $("#LastName").val()
Address1 = $("#Address1").val()
Address2 = $("#Address2").val()
ZipPostalCode = $("#ZipPostalCode").val()
City = $("#City").val()
StateRegion = $("#StateRegion").val()
Country = $("#Country").val()
Phone = $("#Phone").val()
Mobile = $("#Mobile").val()
Email = $("#Email").val()
} //K10<<;
//----------------------------------
function messaggioK(){//K11>;
testoK = '<div id = "divK" style="width:95%;height:95%;background-color:yellow;overflow-y:scroll;padding:10px">'+
'<span style="color:blue;font-size:24px;">'+
'Gentile Cliente, la rigraziamo cordialmente per averci scelto.</span><br>'+
'<span style="color:green;font-size:20px;">'+
'Si prega di concludere l\'ordine effettuando il pagamento nella scheda predisposta. Grazie!</span><br><hr>'+
'<span style="color:red;font-size:18px;">'+
'Company = ' + Company + '<br>' +
'Name = ' + Name + '<br>' +
'LastName = ' + LastName + '<br>' +
'Address1 = ' + Address1 + '<br>' +
'Address2 = '+ Address2 + '<br>' +
'ZipPostalCode = ' + ZipPostalCode + '<br>' +
'City = ' + City + '<br>' +
'StateRegion = ' + StateRegion + '<br>' +
'Country = ' + Country + '<br>' +
'Phone = ' +Phone + '<br>' +
'Mobile = ' + Mobile + '<br>' +
'Email = ' +Email +
'</span>><hr></div>';
} //K11<<;
</script>

.........................................

.

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

Hello KolAsim,

J'ai supprimé tous les codes dans la page du Panier/Caisse et copier ton code avant la fermeture </HEAD>

En validant la commande j'ai cette erreur .

Je ne trouve pas la référence à la fonction TestOk !

Le site est en ligne avec ton code ajouté !

Merci pour ton aide...

Axel

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... pour que le code soit implémenté, vous devez remplir le mail_form dans CART/#step1/guest_order;(erreur testoK)!...

...J'ai fait un test...
...le panier ne fonctionne plus bien, il n'avance pas régulièrement quand on clique sur les boutons du CART; (erreur testoK)!...
...la structure a été modifiée par rapport à la précédente...
... pour pouvoir vérifier à nouveau vous devez supprimer mon code...
... vérifiez que le chariot fonctionne dans toutes ses étapes, et prévenez-moi lorsque vous l'aurez fait, je vais donc vérifier à nouveau...
.
ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

OK il n'y a plys AUCUN code et tout le panier fonctionne pour moi

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... OK... le code a fonctionné pour moi en simulation...
... seul le nom d'un bouton du mail_form a changé...
...J'ai remplacé dans la fonction K6> K9> cette ligne n'est pas conforme à la nouvelle structure :
$(".btn-next input,#div_K2").click(function(){//K9>;
...avec cette ligne corrigée :
$(".btn-go-next").click(function(){//K9>;

.

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

...!...rappelez-vous que pour que mon code fonctionne vous devez passer par la page mail_form...!...

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

C'est quoi cette page...le formulaire pour le nom et l'adresse ?

Read more
Posted on the from Axel  
Axel  
Axel  
User
Author

J'ai mis le code modifié ici

et ensuite

Et je n'arrive pas plus loin que cela !

Et toujours la même erreur !

Problème sur Chrome et Firefox ...

Même erreur

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL
Axel  
C'est quoi cette page...le formulaire pour le nom et l'adresse ?

... #STEP4 

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL
Axel  
J'ai mis le code modifié ici ... ... ... 

.... ... tu l'as fait correctement...

Read more
Posted on the from  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL
Axel  
... ... ...  Et toujours la même erreur ! Problème sur Chrome et Firefox ... Même erreur
 ‪ KolAsim ‪ ‪
...!...rappelez-vous que pour que mon code fonctionne vous devez passer par la page mail_form...!...

...!...rappelez-vous que pour que mon code fonctionne vous devez passer par la page mail_form...!...

>>  cart/index.html#step1/guest_order

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

Je n'arrive pas à aller plus loin que cette page... !!!!!!!!!!!!

La page cart/index.html#step1/guest_order est après !!!

Read more
Posted on the from Axel  
Axel  
Axel  
User
Author

As tu essayé depuis le site.

Ne marche pas non plus sur mon téléphone. bloqué au même endroit

Read more
Posted on the from Axel  
Axel  
Axel  
User
Author

Il y a une erreur dans le code ci dessus.

J'ai modifié le code suivant:

$(window).on("hashchange", function() {//k2>;
anchorK = location.hash;
if (anchorK == "#step4"){ //K3>;
setTimeout(function() {//K4>;
x5engine.imShowBox({'media': [{'type': 'K','width': 450,'height':300}]});
},500);//K4<<;
}//K3<<;
$("#imShowBox > div > img").parent().html( testoK);
setTimeout(function(){//K5>;
$("#imShowBox").html( testoK);
}, 1000)//K5<<;
});//k2<<;

par 

$(window).on("hashchange", function() {//k2>;
anchorK = location.hash;
if (anchorK == "#step4"){ //K3>;
setTimeout(function() {//K4>;
x5engine.imShowBox({'media': [{'type': 'K','width': 450,'height':300}]});
},500);//K4<<;

$("#imShowBox > div > img").parent().html( testoK);
setTimeout(function(){//K5>;
$("#imShowBox").html( testoK);
}, 1000)//K5<<;
}//K3<<;
});//k2<<;

Et cela avance dans la procédure.

Mais le fenêtre est affichée en gris !

Grrrrrrrrrrrrrrrr

Read more
Posted on the from Axel  
Axel  
Axel  
User
Author

J'ai toujours cette erreur et la showbox n'affiche rien !

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... malheureusement, je suis désolé, mais à partir de là, je ne comprends pas la raison de ce problème...
...essayez de faire ce changement...
... élimine la fonction initiale K> | K<<
... c'est-à-dire éliminer toute cette partie du code:

$( document ).ready(function() { //K>;
anchorK = location.hash;
controlloK()
}); //K<<;

.

ciao

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

Toujours grisée !!!

Pffffff yell

Read more
Posted on the from Axel  
Axel  
Axel  
User
Author

Je teste plusieurs choses.

No way ... toujours grisé !crycry et cette erreur sur la variable testoK

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

...essayons avec la dernière tentative...
...supprimez à nouveau tout mon code...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

OK code supprimé !

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

...En théorie cela devrait fonctionner...

<script>
/** --- rilevamento dati mail_form x messaggio in showbox nello #step4 x cart WSx5 by KolAsim -- **/
$( document ).ready(function() { //K>;
anchorK = location.hash;
if (anchorK == "#step1/guest_order" || anchorK == "#step1" ){ //K0>;
controlloK()
}//K0<<;
}); //K<<;
//------------------------------------
$(window).on("hashchange", function() {//K1>;
anchorK = location.hash;
controlloK()
}); //K1<<;
//------------------------------------
$(window).on("hashchange", function() {//k2>;
anchorK = location.hash;
if (anchorK == "#step4"){ //K3>;
setTimeout(function() {//K4>;
x5engine.imShowBox({'media': [{'type': 'K','width': 450,'height':300}]});
},500);//K4<<;
}//K3<<;
$("#imShowBox > div > img").parent().html( testoK);
setTimeout(function(){//K5>;
$("#imShowBox").html( testoK);
}, 1000)//K5<<;
});//k2<<;
//------------------------
function controlloK(){//K6>;
if (anchorK == "#step1/guest_order" || anchorK == "#step1" ){ //K7>;
setTimeout(function() {//K8>;
$(".btn-go-next").click(function(){//K9>;
rilevaDatiK();
messaggioK();
}) //K9<<;
},500);//K8<<;
}//K7<<;
}//K6<<;
//------------------------------
function rilevaDatiK(){//K10>;
Company = $("#Company").val();
Name = $("#Name").val()
LastName = $("#LastName").val()
Address1 = $("#Address1").val()
Address2 = $("#Address2").val()
ZipPostalCode = $("#ZipPostalCode").val()
City = $("#City").val()
StateRegion = $("#StateRegion").val()
Country = $("#Country").val()
Phone = $("#Phone").val()
Mobile = $("#Mobile").val()
Email = $("#Email").val()
} //K10<<;
//----------------------------------
function messaggioK(){//K11>;
testoK = '<div id = "divK" style="width:95%;height:95%;background-color:yellow;overflow-y:scroll;padding:10px">'+
'<span style="color:blue;font-size:24px;">'+
'Gentile Cliente, la rigraziamo cordialmente per averci scelto.</span><br>'+
'<span style="color:green;font-size:20px;">'+
'Si prega di concludere l\'ordine effettuando il pagamento nella scheda predisposta. Grazie!</span><br><hr>'+
'<span style="color:red;font-size:18px;">'+
'Company = ' + Company + '<br>' +
'Name = ' + Name + '<br>' +
'LastName = ' + LastName + '<br>' +
'Address1 = ' + Address1 + '<br>' +
'Address2 = '+ Address2 + '<br>' +
'ZipPostalCode = ' + ZipPostalCode + '<br>' +
'City = ' + City + '<br>' +
'StateRegion = ' + StateRegion + '<br>' +
'Country = ' + Country + '<br>' +
'Phone = ' +Phone + '<br>' +
'Mobile = ' + Mobile + '<br>' +
'Email = ' +Email +
'</span>><hr></div>';
} //K11<<;
</script>

..........................

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

Même Erreur sur testOk et fenêtre grisée

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... Je suis désolé, malheureusement je ne comprends pas d'où pourrait venir le problème...foot-in-mouth
... ça marche pour moi dans la simulation et à l'étape 4 cette fenêtre affichée avant apparaît...
... malheureusement je n'ai pas le programme car mon PC est très ancien, je ne peux pas vous en dire plus pour l'instant...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Author

Je regarderais demain..

Et si cela ne marche pas, on laissera tomber...

Etrange tout de même.

Merci...... 

Read more
Posted on the from Axel  
Axel  
Axel  
User
Author

Rien à faire... toujours cette erreur sur testoK.foot-in-mouth

Je vais laisser tomber car cela n'est pas stabel du tout. Dommage l'idée était bonne wink
Encore merci pour ton aide précieuse.

A bientôt !

Axel

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

...malheureusement, je ne comprends pas d'où vient le problème, car dans ma simulation, cela fonctionne comme vous l'avez vu sur mon STAMP...
... Je suis encore désolé, ce sera pour une autre fois...foot-in-mouth...ciao...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪