Exemple de code de passage à la caisse

Voici un exemple de code pour le passage à la caisse.
Vous pouvez vous en servir comme base pour personnaliser votre passage à la caisse.


[[Template:Script]]
Declare Errors As Numeric Declare AtLeastOneShipping As Numeric Declare AtLeastOneShippingCPC As Numeric Declare AtLeastOneShippingUPS As Numeric Declare GrandTotal As Numeric Declare MyQuestionID As Numeric Declare CurrentYear As Numeric Declare Temp As String Declare TaxValue As Numeric Declare SwitchColor As Numeric Declare ShippingDate As String Declare ShipFirstName As String Declare ShipLastName As String Declare ShipCompany As String Declare ShipAddress As String Declare ShipCity As String Declare ShipStateID As Numeric Declare ShipState2 As String Declare ShipZIP As String Declare ShipPhone1 As String Declare ShipPhone2 As String Declare ShipFax As String Declare ShipEmail As String Declare ShipCountryID As Numeric Declare ShipCountryName As String Declare BillFirstName As String Declare BillLastName As String Declare BillCompany As String Declare BillAddress As String Declare BillCity As String Declare BillStateID As Numeric Declare BillState2 As String Declare BillZIP As String Declare BillPhone1 As String Declare BillPhone2 As String Declare BillFax As String Declare BillEmail As String Declare BillCountryID As Numeric Declare BillCountryName As String Declare QErrorMsg As String Declare UserAnswer As Numeric Declare QName As String Declare QAnswer As String
[[Template:EndScript]] [[Template:If System.Form.Input.Value(Name=SendPassword) EQ 1 Then]]
[[Template:If Checkout.PasswordSent]]
<center><font color="red">Votre mot de passe vous a été envoyé par courriel.</font></center>
[[Template:Else]]
<center><font color="red">Ce courriel n'est associé à aucun profil.</font></center>
[[Template:EndIf]]]
[[Template:EndIf]] [[Template:Checkout.Section.Begin]]
<html> <head>
<meta http-equiv="Content-Type" content="text/html"> <title>Panier de commande - [[Template:Store.Name]]</title>
</head> <body BACKGROUND="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#000080" ALINK="#FFFFFF" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0"> <center>
<p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="3" align="center">
<tr valign="center">
<td width="50%"><b><font face="verdana, arial, helvetica" size="3">Panier de commande : </font></b></td> <td width="50%" align="right"><font face="verdana, arial, helvetica" size="2"><b>Paiement express</b></font></td>
</tr> <tr>
<td colspan="2">
<table bgcolor="black" width="100%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td colspan="3">
<img src="/images/pixel_transparent.gif" width="600" height="1">
</td>
</tr>
</table>
</td>
</tr>
</table> <p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<!-- 1 --> <tr>
<td>
<font face="verdana, arial, helvetica" size="2">
<b>Passage à la caisse express</b> <p>Si vous n'avez pas de profil d'utilisateur Paiement express, vous devriez vous en créer un sous «Nouvel Utilisateur». Si vous ne souhaitez pas en avoir un, passez directement à la caisse ici.</p>
</font> <p align="left"> [[Template:Checkout.Form.Begin NextSection=1]]
<font face="verdana, arial, helvetica" size="2"><input style="color=#000000" type="submit" value="Passer à la caisse sans m'enregistrer"></font></p> <input TYPE="HIDDEN" NAME="Express" VALUE="0">
[[Template:Checkout.Form.End]]
</td>
</tr> <tr>
<td>
<hr size="1" width="100%" color="#000000">
</td>
</tr> <!-- 2 --> <tr>
<td>
[[Template:Checkout.Form.Begin NextSection=50]]
<font face="verdana, arial, helvetica" size="2"><b>Authentification</b></font> <p><font face="verdana, arial, helvetica" size="2">Si vous avez déjà un profil d'utilisateur Paiement express, veuillez entrer votre courriel et votre mot de passe.</font><br><br></p> <table>
<tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Courriel :</b></font></td> <td><input CLASS="input" TYPE="TEXT" name="ProfileEmail" MAXLENGTH="40" size="20" VALUE="[[Template:System.HTMLEncode(Input=System.Form.Input.Value(Name=ProfileEmail))]]"></td>
</tr> <tr>
<td><font face="verdana, arial, helvetica" size="2"><b>Mot de passe: </b></font></td> <td><input CLASS="input" type="password" NAME="ProfilePassword" MAXLENGTH="16" size="20"></td>
</tr>
</table> <br></p> <p align="left"><font face="verdana, arial, helvetica" size="2"> <input type="hidden" name="HasProfile" value="True" /> <input type="hidden" name="ProfileReuseInfo" value="True" /> <input style="color=#000000" type="submit" value=" Authentification... " name="B1"></font></p> <input TYPE="HIDDEN" NAME="Express" VALUE="0">
[[Template:Checkout.Form.End]]
</td>
</tr> <tr>
<td><hr size="1" width="100%" color="#000000"></td>
</tr> <!-- 3 --> <tr>
<td>
[[Template:Checkout.Form.Begin NextSection=1]]
<font face="verdana, arial, helvetica" size="2"> <b>Nouvel utilisateur</b> <p>Si vous n'avez pas de profil d'utilisateur Paiement express, vous pouvez en créez un ici en poursuivant le processus d'achat. <br><br>Lors de vos prochains achats, vous n'aurez plus à entrer vos coordonnées. </font> <p align="left"> <font face="verdana, arial, helvetica" size="2"><input style="color=#000000" type="submit" value=" Continuer... " name="B1"></font> </p> <input TYPE="HIDDEN" NAME="Express" VALUE="1">
[[Template:Checkout.Form.End]]
</td>
</tr> <tr>
<td><hr size="1" width="100%" color="#000000"></td>
</tr> <tr>
<td>
<form METHOD="POST" ACTION="/Scripts/Checkout/SendPassword.asp">
<input TYPE="HIDDEN" NAME="Custom" VALUE="1"> <input TYPE="HIDDEN" NAME="L" VALUE="[[Template:System.Form.Input.Value Name=Language]]"> <input TYPE="HIDDEN" NAME="Language" VALUE="[[Template:System.Form.Input.Value Name=Language]]"> <input TYPE="HIDDEN" NAME="m" VALUE="[[Template:System.Form.Input.Value Name=m]]"> <input TYPE="HIDDEN" NAME="b" VALUE="[[Template:System.Form.Input.Value Name=b]]"> <input TYPE="HIDDEN" NAME="SendPassword" VALUE="1"> <font face="verdana, arial, helvetica" size="2"><b>Un oubli?</b><p>Si vous ne vous souvenez plus de votre mot de passe, entrez votre courriel et nous vous le ferons parvenir.</font><br><br></p> <table>
<tr>
<td><font face="verdana, arial, helvetica" size="2"><b>Courriel :</b></font></td> <td><input CLASS="input" TYPE="TEXT" name="Email" MAXLENGTH="40" size="20">  <input style="color=#000000" type="submit" value=" Envoyer " name="B1"></td>
</tr>
</table> <br></p>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center> </body> </html>
[[Template:Checkout.Section.1]]
<html> <head>
<meta http-equiv="Content-Type" content="text/html"> <title>Panier de commande - étape 1/5 - [[Template:Store.Name]]</title>
</head> <body BACKGROUND="" BGCOLOR="#FFFFFF" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" text="#000000" link="#000080" vlink="#000080" alink="#FFFFFF"> <center>
<p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left" width="230">
<b><font face="verdana, arial, helvetica" size="3">Panier de commande :</font></b>
</td> <td align="left">
<table width="200">
<tr>
<td><font face="verdana, arial, helvetica" size="3"><img SRC="[[Template:Store.LogoURL]]"></font></td>
</tr>
</table>
</td> <td align="right" width="200">
<font face="verdana, arial, helvetica" size="2"><b>étape 1/5</b></font>
</td>
</tr> <tr>
<td colspan="3">
<table bgcolor="black" width="100%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td colspan="3"><img src="/images/pixel_transparent.gif" width="610" height="1"></td>
</tr>
</table>
</td>
</tr>
</table> <p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left">
[[Template:Checkout.Form.Begin NextSection=2]]
<font face="verdana, arial, helvetica" size="3"><b>Pays de livraison</b>.</font> <br> <font face="verdana, arial, helvetica" size="2">Veuillez choisir le pays où sera livrée la marchandise.</font> <p><br></p> <font face="verdana, arial, helvetica" size="2"><b>Pays :</b></font> <select name="ShipCountry" size="1">
[[Template:Checkout.Country.Loop.Begin]]
<option VALUE="[[Template:Checkout.Country.ID]]">[[Template:Checkout.Country.Name]]</option>
[[Template:Checkout.Country.Loop.End]]
</select> <input TYPE="HIDDEN" NAME="Express" VALUE="[[Template:System.Form.Input.Value Name=Express]]"> <p><br></p> <p><br></p> <table bgcolor="black" width="99%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td><img src="/images/pixel_transparent.gif" width="610" height="1"></td>
</tr>
</table> <br> <center>
<font face="verdana, arial, helvetica" size="2">
<input style="color=#000000" type="submit" value="Continuer..." name="B1">
</font>
</center>
[[Template:Checkout.Form.End]]
</td>
</tr>
</table>
</center> </body> </html>
[[Template:Checkout.Section.2]]
[[Template:If ShipCountryName EQ ""]]
[[Template:Set ShipCountryID = Checkout.Shipping.Country.ID]] [[Template:Set ShipCountryName = Checkout.Shipping.Country.Name]]
[[Template:EndIf]] <html> <head>
<meta http-equiv="Content-Type" content="text/html"> <title>Panier de commande - étape 2/5 - [[Template:Store.Name]]</title>
</head> <center>
<body BACKGROUND="" BGCOLOR="#FFFFFF" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" bgcolor="#FFFFFF" text="#000000" link="#000080" vlink="#000080" alink="#FFFFFF"> <p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left" width="230">
<b><font face="verdana, arial, helvetica" size="3">Panier de commande : </font></b>
</td> <td align="left">
<table width="200">
<tr>
<td><font face="verdana, arial, helvetica" size="3"><img SRC="[[Template:Store.LogoURL]]"></font></td>
</tr>
</table>
</td> <td align="right" width="200">
<font face="verdana, arial, helvetica" size="2"><b>étape 2/5</b></font>
</td>
</tr> <tr>
<td colspan="3">
<table bgcolor="black" width="100%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td colspan="3">
<img src="/images/pixel_transparent.gif" width="610" height="1">
</td>
</tr>
</table>
</td>
</tr>
</table> <p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left">
<font face="verdana, arial, helvetica" size="3"> [[Template:Script]]
If Errors == 1 Then
If QErrorMsg != "" Then
System.Write(Output=QErrorMsg)
EndIf If Checkout.Shipping.FirstName == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un prénom</b></font><br>")
EndIf If Checkout.Shipping.LastName == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un nom de famille</b></font><br>")
EndIf If Checkout.Shipping.Address == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer une adresse</b></font><br>")
EndIf If Checkout.Shipping.City == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer une ville</b></font><br>")
EndIf If Checkout.Shipping.ZIP == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un code postal/ZIP</b></font><br>")
EndIf If Checkout.Shipping.State.Name == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez choisir une province/état</b></font><br>")
EndIf If Checkout.Shipping.Phone1 == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un numéro de téléphone</b></font><br>")
EndIf If Not System.IsEmail(Email=Checkout.Shipping.Email) Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un courriel valide</b></font><br>")
EndIf If System.Form.Input.Value(Name=Express) == 1 And System.Form.Input.Value(Name=ProfilePassword) == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un mot de passe</b></font><br>")
EndIf
EndIf
[[Template:EndScript]] [[Template:If Cart.NbItems GT 0]]
<b>Adresse de livraison</b>
[[Template:Else]]
<b>Votre adresse</b>
[[Template:EndIf]] </font> <br> <font face="verdana, arial, helvetica" size="2">Attention : Les champs suivis d'un astérisque (*) sont obligatoires.</font> <p><br></p> [[Template:Checkout.Form.Begin NextSection=53]]
<input TYPE="HIDDEN" NAME="ShipCountry" VALUE="[[Template:ShipCountryID]]"> <input TYPE="HIDDEN" NAME="ProfileReuseInfo" VALUE="[[Template:System.Form.Input.Value Name=ProfileReuseInfo]]"> <input TYPE="HIDDEN" NAME="HasProfile" VALUE="[[Template:System.Form.Input.Value Name=HasProfile]]"> <input TYPE="HIDDEN" NAME="Express" VALUE="[[Template:System.Form.Input.Value Name=Express]]"> <table width="75%" cellspacing="0" cellpadding="7" align="center">
<tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Prénom* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipFirstName" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipFirstName)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Nom* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipLastName" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipLastName)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2">Nom d'entreprise :</font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipCompany" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipCompany)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Adresse* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipAddress" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipAddress)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Ville* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipCity" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipCity)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2">Pays :</font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="2">[[Template:ShipCountryName]]</font></td>
</tr> <tr>
<td width="50%">
<font face="verdana, arial, helvetica" size="2">
<b>[[Template:Checkout.Shipping.Country.DivisionName CountryID=ShipCountryID]]*</b> :
</font>
</td> <td width="50%" align="left">
<font face="verdana, arial, helvetica" size="2">
[[Template:If Checkout.State.NbElements(CountryID=ShipCountryID) GT 0]]
<select NAME="ShipState" size="1">
<option>S.V.P. Choisissez</option> [[Template:Checkout.State.Loop.Begin CountryID=ShipCountryID]]
<option VALUE="[[Template:Checkout.State.ID]]" [[Template:If ShipStateID EQ Checkout.State.ID]]SELECTED[[Template:EndIf]]>[[Template:Checkout.State.Name]]</option>
[[Template:Checkout.State.Loop.End]]
</select>
[[Template:Else]]
<input TYPE="TEXT" NAME="ShipState" VALUE="[[Template:System.HTMLEncode(Input=ShipState2)]]">
[[Template:EndIf]]
</font>
</td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Code postal* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipZIP" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipZIP)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Téléphone* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipPhone1" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipPhone1)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2">Télécopieur :</font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipFax" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipFax)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Courrier électronique* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="ShipEmail" size="16" VALUE="[[Template:System.HTMLEncode(Input=ShipEmail)]]"></font></td>
</tr> [[Template:If System.Form.Input.Value(Name=Express) EQ 1]]
<tr bgcolor="#eeeeee">
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Mot de passe* :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" type="password" name="ProfilePassword" size="16"></font></td>
</tr> <tr bgcolor="#eeeeee">
<td colspan="2">
<input type="checkbox" NAME="ProfileReuseInfo" CHECKED>: <font face="verdana, arial, helvetica" size="2">Conserver mes coordonnées et mon profil d'utilisateur</font>
</td>
</tr>
[[Template:EndIf]]
</table> <br> <p><br></p> <table bgcolor="black" width="99%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td><img src="/images/pixel_transparent.gif" width="1" height="1"></td>
</tr>
</table> <br> [[Template:Set MyQuestionID = 1]] [[Template:Checkout.Question.Loop.Begin]]
<input TYPE="HIDDEN" NAME="QuestionID" VALUE="[[Template:MyQuestionID]]"> <input TYPE="HIDDEN" NAME="QuestionName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Question.Name)]]"> <input TYPE="HIDDEN" NAME="QuestionShortName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Question.ShortName)]]"> <input TYPE="HIDDEN" NAME="AnswerRequired[[Template:MyQuestionID]]" VALUE="[[Template:If Checkout.Question.Answer.Required]]1[[Template:Else]]0[[Template:EndIf]]"> [[Template:Checkout.Question.Name]] [[Template:If Checkout.Question.Answer.Required]]*[[Template:EndIf]] : [[Template:If Checkout.Question.Answer.Type EQ 0]]
<input CLASS="input" TYPE="TEXT" NAME="Answer[[Template:MyQuestionID]]" MAXLENGTH="[[Template:Checkout.Question.Answer.MaxLength]]" SIZE="" VALUE="[[Template:System.Form.Input.Value Name=System.Concatenate(String1="Answer",String2=System.ToString(Input=MyQuestionID))]]">
[[Template:ElseIf Checkout.Question.Answer.Type EQ 1]]
[[Template:Checkout.Question.Answer.Loop.Begin]]
<input type="checkbox" NAME="Answer[[Template:MyQuestionID]]" VALUE="[[Template:Checkout.Question.Answer.Choice]]"> <font face="verdana, arial, helvetica" size="2">[[Template:Checkout.Question.Answer.Choice]]</font>
[[Template:Checkout.Question.Answer.Loop.End]]
[[Template:ElseIf Checkout.Question.Answer.Type EQ 2]]
[[Template:Checkout.Question.Answer.Loop.Begin]]
<input TYPE="RADIO" NAME="Answer[[Template:MyQuestionID]]" VALUE="[[Template:Checkout.Question.Answer.Choice]]"> <font face="verdana, arial, helvetica" size="2">[[Template:Checkout.Question.Answer.Choice]]</font>
[[Template:Checkout.Question.Answer.Loop.End]]
[[Template:ElseIf Checkout.Question.Answer.Type EQ 3]]
<select NAME="Answer[[Template:MyQuestionID]]">
[[Template:Checkout.Question.Answer.Loop.Begin]]
<option VALUE="[[Template:Checkout.Question.Answer.Choice]]">[[Template:Checkout.Question.Answer.Choice]]</option>
[[Template:Checkout.Question.Answer.Loop.End]]
</select>
[[Template:ElseIf Checkout.Question.Answer.Type EQ 4]]
<select NAME="Answer[[Template:MyQuestionID]]" MULTIPLE>
[[Template:Checkout.Question.Answer.Loop.Begin]]
<option VALUE="[[Template:Checkout.Question.Answer.Choice]]">[[Template:Checkout.Question.Answer.Choice]]</option>
[[Template:Checkout.Question.Answer.Loop.End]]
</select>
[[Template:EndIf]] [[Template:Set MyQuestionID = MyQuestionID + 1]] <br>
[[Template:Checkout.Question.Loop.End]] <br> <center>
<font face="verdana, arial, helvetica" size="2">
<b>Est-ce que l'adresse de facturation est la même que l'adresse de livraison?</b>
</font>
</center> <br> <table bgcolor="black" width="99%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table> <br> <center>
<input style="color=#000000" type="submit" value=" Oui " name="B1">   <input style="color=#000000" type="submit" value=" Non " name="B2">
</center>
[[Template:Checkout.Form.End]]
</td>
</tr>
</table>
</center> </body> </html>
[[Template:Checkout.Section.3]] <html> <head> <meta http-equiv="Content-Type" content="text/html"> <title>Panier de commande - étape 3/5 - [[Template:Store.Name]]</title> </head> <body BACKGROUND="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#000080" ALINK="#FFFFFF" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0"> <center>
<p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left" width="230">
<b><font face="verdana, arial, helvetica" size="3">Panier de commande : </font></b>
</td> <td align="left">
<table width="200">
<tr>
<td>
<font face="verdana, arial, helvetica" size="3"><img SRC="[[Template:Store.LogoURL]]"></font>
</td>
</tr>
</table>
</td> <td align="right" width="200">
<font face="verdana, arial, helvetica" size="2"><b>étape 3/5</b></font>
</td>
</tr> <tr>
<td colspan="3">
<table bgcolor="black" width="100%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td colspan="3">
<img src="/images/pixel_transparent.gif" width="610" height="1">
</td>
</tr>
</table>
</td>
</tr>
</table> <p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left">
[[Template:Script]]
If Errors == 1 And Order.NbItems > 0 Then
If Checkout.Billing.FirstName == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un prénom</b></font><br>")
EndIf If Checkout.Billing.LastName == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un nom de famille</b></font><br>")
EndIf If Checkout.Billing.Address == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer une adresse</b></font><br>")
EndIf If Checkout.Billing.City == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer une ville</b></font><br>")
EndIf If Checkout.Billing.ZIP == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un code postal/ZIP</b></font><br>")
EndIf If Checkout.Billing.Phone1 == "" Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un numéro de téléphone</b></font><br>")
EndIf If Not System.IsEmail(Email=Checkout.Billing.Email) Then
System.Write(Output="<font color=\"red\"><b>Vous devez entrer un courriel valide</b></font><br>")
EndIf If Cart.NbItems GT 0 And Store.Shipping.Type == 2 And Checkout.Shipping.ID == 0 Then
System.Write(Output="<font color=\"red\"><b>Vous devez choisir une méthode de livraison</b></font><br>")
EndIf
EndIf
[[Template:EndScript]] [[Template:If Cart.NbItems GT 0]]
<font face="verdana, arial, helvetica" size="3"><b>Adresse de facturation</b>.<br></font>
[[Template:EndIf]] <p><br></p> [[Template:Checkout.Form.Begin NextSection=54]]
<input TYPE="HIDDEN" NAME="ShipFirstName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.FirstName)]]"> <input TYPE="HIDDEN" NAME="ShipLastName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.LastName)]]"> <input TYPE="HIDDEN" NAME="ShipCompany" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Company)]]"> <input TYPE="HIDDEN" NAME="ShipAddress" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Address)]]"> <input TYPE="HIDDEN" NAME="ShipCity" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.City)]]"> <input TYPE="HIDDEN" NAME="ShipState" VALUE="[[Template:Checkout.Shipping.State.ID]]"> <input TYPE="HIDDEN" NAME="ShipCountry" VALUE="[[Template:Checkout.Shipping.Country.ID]]"> <input TYPE="HIDDEN" NAME="ShipZIP" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.ZIP)]]"> <input TYPE="HIDDEN" NAME="ShipPhone1" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Phone1)]]"> <input TYPE="HIDDEN" NAME="ShipPhone2" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Phone2)]]"> <input TYPE="HIDDEN" NAME="ShipFax" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Fax)]]"> <input TYPE="HIDDEN" NAME="ShipEmail" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Email)]]"> <input TYPE="HIDDEN" NAME="ProfileReuseInfo" VALUE="[[Template:System.Form.Input.Value Name=ProfileReuseInfo]]"> <input TYPE="HIDDEN" NAME="ProfilePassword" VALUE="[[Template:System.Form.Input.Value Name=ProfilePassword]]"> <input TYPE="HIDDEN" NAME="HasProfile" VALUE="[[Template:System.Form.Input.Value Name=HasProfile]]"> [[Template:System.Form.Input.Loop.Begin Name=QuestionID]]
<input TYPE="HIDDEN" NAME="QuestionID" VALUE="[[Template:System.Form.Input.Value Name="QuestionID"]]"> <input TYPE="HIDDEN" NAME="AnswerRequired[[Template:System.Form.Input.Value Name="QuestionID"]]" VALUE="[[Template:System.Form.Input.Value Name=System.Concatenate(String1="AnswerRequired",String2=System.ToString(Input=System.Form.Input.Index))]]"> <input TYPE="HIDDEN" NAME="Answer[[Template:System.Form.Input.Value Name="QuestionID"]]" VALUE="[[Template:System.Form.Input.Value Name=System.Concatenate(String1="Answer",String2=System.ToString(Input=System.Form.Input.Index))]]">
[[Template:System.Form.Input.Loop.End]] [[Template:System.Form.Input.Loop.Begin Name=QuestionName]]
<input TYPE="HIDDEN" NAME="QuestionName" VALUE="[[Template:System.HTMLEncode(Input=System.Form.Input.Value(Name=QuestionName))]]">
[[Template:System.Form.Input.Loop.End]] [[Template:System.Form.Input.Loop.Begin Name=QuestionShortName]]
<input TYPE="HIDDEN" NAME="QuestionShortName" VALUE="[[Template:System.HTMLEncode(Input=System.Form.Input.Value(Name=QuestionShortName))]]">
[[Template:System.Form.Input.Loop.End]] [[Template:If Cart.NbItems GT 0]]
<table width="75%" cellspacing="0" cellpadding="7" align="center">
<tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Prénom :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillFirstName" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillFirstName)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Nom :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillLastName" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillLastName)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2">Nom d'entreprise :</font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillCompany" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillCompany)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Adresse :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillAddress" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillAddress)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Ville :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillCity" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillCity)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Province / Région / État :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" NAME="BillState" SIZE="16" VALUE="[[Template:System.HTMLEncode(Input=BillState2)]]" MAXLENGTH="255"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Pays :</b></font></td> <td width="50%" align="left">
<font face="verdana, arial, helvetica" size="2"> <select name="BillCountry" size="1">
[[Template:Checkout.Country.Loop.Begin]]
<option VALUE="[[Template:Checkout.Country.ID]]" [[Template:If Checkout.Country.ID EQ BillCountryID]]SELECTED[[Template:EndIf]]>[[Template:Checkout.Country.Name]]</option>
[[Template:Checkout.Country.Loop.End]]
</select> </font>
</td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Code postal :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillZIP" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillZIP)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Téléphone :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillPhone1" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillPhone1)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2">Télécopieur :</font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillFax" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillFax)]]"></font></td>
</tr> <tr>
<td width="50%"><font face="verdana, arial, helvetica" size="2"><b>Courrier électronique :</b></font></td> <td width="50%" align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="BillEmail" size="16" VALUE="[[Template:System.HTMLEncode(Input=BillEmail)]]"></font></td>
</tr>
</table>
[[Template:Else]]
<input TYPE="HIDDEN" name="BillFirstName" VALUE="[[Template:System.HTMLEncode(Input=BillFirstName)]]"> <input TYPE="HIDDEN" name="BillLastName" VALUE="[[Template:System.HTMLEncode(Input=BillLastName)]]"> <input TYPE="HIDDEN" name="BillCompany" VALUE="[[Template:System.HTMLEncode(Input=BillCompany)]]"> <input TYPE="HIDDEN" name="BillAddress" VALUE="[[Template:System.HTMLEncode(Input=BillAddress)]]"> <input TYPE="HIDDEN" name="BillCity" VALUE="[[Template:System.HTMLEncode(Input=BillCity)]]"> <input TYPE="HIDDEN" NAME="BillState" VALUE="[[Template:System.HTMLEncode(Input=BillState2)]]"> <input TYPE="HIDDEN" name="BillCountry" VALUE="[[Template:BillCountryID]]"> <input TYPE="HIDDEN" name="BillZIP" VALUE="[[Template:System.HTMLEncode(Input=BillZIP)]]"> <input TYPE="HIDDEN" name="BillPhone1" VALUE="[[Template:System.HTMLEncode(Input=BillPhone1)]]"> <input TYPE="HIDDEN" name="BillFax" VALUE="[[Template:System.HTMLEncode(Input=BillFax)]]"> <input TYPE="HIDDEN" name="BillEmail" VALUE="[[Template:System.HTMLEncode(Input=BillEmail)]]">
[[Template:EndIf]] <p><br></p> <p><br></p> <table bgcolor="black" width="99%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table> <br> <table align="center" width="100%">
<tr>
<td align="center">
<font face="verdana, arial, helvetica" size="2"><b>Méthode de paiement choisie :</b></font> <select name="Payment">
[[Template:Checkout.Payment.Loop.Begin]]
<option value="[[Template:Checkout.Payment.ID]]">[[Template:Checkout.Payment.Name]]</option>
[[Template:Checkout.Payment.Loop.End]]
</select>
</td>
</tr> <tr>
<td align="center">
<p><br></p> [[Template:If Cart.NbItems GT 0]]
<font face="verdana, arial, helvetica" size="2"><b>Méthode de livraison choisie :</b></font> <br> <center>
[[Template:If Store.Shipping.Type EQ 0]]
<font face="verdana, arial, helvetica" size="2">Les frais de livraison sont inclus dans le prix</font>
[[Template:ElseIf Store.Shipping.Type EQ 1]]
<font face="verdana, arial, helvetica" size="2">Les frais de livraison vous seront communiqués plus tard</font>
[[Template:Else]]
[[Template:Set AtLeastOneShipping = 0]] [[Template:Set AtLeastOneShippingCPC = 0]] [[Template:Set AtLeastOneShippingUPS = 0]] [[Template:Checkout.Shipping.Loop.Begin]]
[[Template:If Checkout.Shipping.Carrier.ID EQ 1]]
[[Template:Set AtLeastOneShippingCPC = 1]]
[[Template:ElseIf Checkout.Shipping.Carrier.ID EQ 2]]
[[Template:Set AtLeastOneShippingUPS = 1]]
[[Template:EndIf]]
[[Template:Checkout.Shipping.Loop.End]] [[Template:If AtLeastOneShippingCPC EQ 1]]
<table border="0" width="425" bgcolor="#082173" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan=3>
<p align="center"><b><font size="2" COLOR="#FFFFFF" FACE="Verdana">Postes Canada</font></b></p<
</td>
</tr>
<tr>
<td width="100%">
<table border="0" width="425" cellspacing="1" cellpadding="3">
<tr>
<td bgcolor="#F2F4F8" align="center">
<b><font face="Verdana" size="2">&nbsp;Indiquez<br>votre&nbsp;choix&nbsp;</font></b>
</td> <td width="100%" bgcolor="#CFD5E4" align="center">
<b><font face="verdana" size="2">&nbsp;Dates de livraison</font></b>
</td> <td bgcolor="#F2F4F8" align="center">
<b><font face="verdana" size="2">Frais<br>de&nbsp;livraison</font></b>
</td>
</tr> [[Template:Set SwitchColor = 0]] [[Template:Set AtLeastOneShipping = 0]] [[Template:Checkout.Shipping.Loop.Begin]]
[[Template:If Checkout.Shipping.Carrier.ID EQ 1]]
[[Template:Set ShippingDate = Checkout.Shipping.Date]] [[Template:If AtLeastOneShipping EQ 0 AND Checkout.Shipping.AM]]
<tr>
<td width="100%" colspan="3" bgcolor="#082173">
<p align="center"><b><font color="#FFFFFF" size="2" face="Verdana">Livraison le jour</font></b></p>
</td>
</tr>
[[Template:EndIf]] <tr>
<td bgcolor="#[[Template:If SwitchColor EQ 0]]F2F4F8[[Template:Else]]CFD5E4[[Template:EndIf]]" align="center">
<input type="radio" name="shipping" VALUE="[[Template:Checkout.Shipping.ID]]" [[Template:If AtLeastOneShipping Eq 0]]checked[[Template:EndIf]]>
</td> <td bgcolor="#[[Template:If SwitchColor EQ 0]]F2F4F8[[Template:Else]]CFD5E4[[Template:EndIf]]" width="100%">
[[Template:If System.IsDate(Input=Checkout.Shipping.DeliveryDate)]]
<font face="verdana" size="2">&nbsp;[[Template:Checkout.Shipping.Name]]<br>&nbsp;le&nbsp;[[Template:System.Capitalize(Input=System.GetWeekDayName(Date=Checkout.Shipping.DeliveryDate))]],&nbsp;[[Template:System.GetDay(Date=Checkout.Shipping.DeliveryDate)]]&nbsp;[[Template:System.Capitalize(input=System.GetMonthName(Date=Checkout.Shipping.DeliveryDate))]]&nbsp;[[Template:System.GetYear(Date=Checkout.Shipping.DeliveryDate)]]&nbsp;[[Template:If Checkout.Shipping.AM]],&nbsp;Livraison le jour[[Template:EndIf]]</font>
[[Template:Else]]
<font face="verdana" size="2">&nbsp;[[Template:Checkout.Shipping.Name]]<br>&nbsp;&nbsp;[[Template:Checkout.Shipping.DeliveryDate]]</font>
[[Template:EndIf]]
</td> <td bgcolor="#[[Template:If SwitchColor EQ 0]]F2F4F8[[Template:Else]]CFD5E4[[Template:EndIf]]" align="center">
<font face="verdana" size="2">[[Template:System.FormatCurrency(Input=Checkout.Shipping.Price)]]</font>
</td>
</tr> [[Template:If SwitchColor EQ 0]]
[[Template:Set SwitchColor = 1]]
[[Template:Else]]
[[Template:Set SwitchColor = 0]]
[[Template:EndIf]] [[Template:Set AtLeastOneShipping = 1]]
[[Template:EndIf]]
[[Template:Checkout.Shipping.Loop.End]] <tr>
<td width="100%" colspan="3" bgcolor="#FFFFFF">
<p align="center"><b><font face="verdana" size="2">Basé sur une date d'expédition le [[Template:System.GetWeekDayName(Date=ShippingDate)]],&nbsp;[[Template:System.GetDay(Date=ShippingDate)]],&nbsp;[[Template:System.GetMonthName(Date=ShippingDate)]]&nbsp;[[Template:System.GetYear(Date=ShippingDate)]]</font></b></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
[[Template:EndIf]] [[Template:If AtLeastOneShippingUPS EQ 1]]
<p> <table border="1" width="425" bgcolor="#FFFFCC" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan=3>
<p align="center"><b><font size="2" COLOR="#FFFFFF" FACE="Verdana">UPS</font></b></p<
</td>
</tr>
<tr>
<td width="100%">
<table border="0" width="425" cellspacing="1" cellpadding="3">
<tr>
<td bgcolor="#F2F4F8" align="center">
<b><font face="Verdana" size="2">&nbsp;Indiquez<br>votre&nbsp;choix&nbsp;</font></b>
</td> <td width="100%" bgcolor="#CFD5E4" align="center">
<b><font face="verdana" size="2">&nbsp;Dates de livraison</font></b>
</td> <td bgcolor="#F2F4F8" align="center">
<b><font face="verdana" size="2">Frais<br>de&nbsp;livraison</font></b>
</td>
</tr> [[Template:Set SwitchColor = 0]] [[Template:Set AtLeastOneShipping = 0]] [[Template:Checkout.Shipping.Loop.Begin]]
[[Template:If Checkout.Shipping.Carrier.ID EQ 2]]
<tr>
<td bgcolor="#[[Template:If SwitchColor EQ 0]]FFF2AC[[Template:Else]]FFFFCC[[Template:EndIf]]" align="center">
<input type="radio" name="shipping" VALUE="[[Template:Checkout.Shipping.ID]]" [[Template:If AtLeastOneShipping Eq 0]]checked[[Template:EndIf]]>
</td> <td bgcolor="#[[Template:If SwitchColor EQ 0]]FFF2AC[[Template:Else]]FFFFCC[[Template:EndIf]]" width="100%">
[[Template:If System.IsDate(Input=Checkout.Shipping.DeliveryDate)]]
<font face="verdana" size="2">&nbsp;[[Template:Checkout.Shipping.Name]]<br>&nbsp;le&nbsp;[[Template:System.Capitalize(Input=System.GetWeekDayName(Date=Checkout.Shipping.DeliveryDate))]],&nbsp;[[Template:System.GetDay(Date=Checkout.Shipping.DeliveryDate)]]&nbsp;[[Template:System.Capitalize(input=System.GetMonthName(Date=Checkout.Shipping.DeliveryDate))]]&nbsp;[[Template:System.GetYear(Date=Checkout.Shipping.DeliveryDate)]]&nbsp;[[Template:If Checkout.Shipping.AM]],&nbsp;Livraison le jour[[Template:EndIf]]</font>
[[Template:Else]]
<font face="verdana" size="2">&nbsp;[[Template:Checkout.Shipping.Name]]<br>&nbsp;&nbsp;[[Template:Checkout.Shipping.DeliveryDate]]</font>
[[Template:EndIf]]
</td> <td bgcolor="#[[Template:If SwitchColor EQ 0]]FFF2AC[[Template:Else]]FFFFCC[[Template:EndIf]]" align="center">
<font face="verdana" size="2">[[Template:System.FormatCurrency(Input=Checkout.Shipping.Price)]]</font>
</td>
</tr> [[Template:If SwitchColor EQ 0]]
[[Template:Set SwitchColor = 1]]
[[Template:Else]]
[[Template:Set SwitchColor = 0]]
[[Template:EndIf]] [[Template:Set AtLeastOneShipping = 1]]
[[Template:EndIf]]
[[Template:Checkout.Shipping.Loop.End]]
</table>
</td>
</tr>
</table>
[[Template:EndIf]] <table border="0">
<tr>
<td>
[[Template:Checkout.Shipping.Loop.Begin]]
[[Template:If Checkout.Shipping.Carrier.ID EQ 0]]
<input TYPE="RADIO" NAME="Shipping" VALUE="[[Template:Checkout.Shipping.ID]]"> [[Template:Checkout.Shipping.Name]] (+ [[Template:System.FormatCurrency(Input=Checkout.Shipping.Price)]])<br> [[Template:Set AtLeastOneShipping = 1]]
[[Template:EndIf]]
[[Template:Checkout.Shipping.Loop.End]] [[Template:If AtLeastOneShipping EQ 0]]
<font face="verdana" size="2"><b>Le marchand n'a défini aucune méthode de livraison.</b></font>
[[Template:EndIf]]
</td>
</tr>
</table>
[[Template:EndIf]]
</center>
[[Template:EndIf]]
</td>
</tr>
</table> <br> <table bgcolor="black" width="99%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table> <br> <center>
<input style="color:#000000" type="submit" value="Continuer..." name="B1">
</center>
[[Template:Checkout.Form.End]]
</td>
</tr>
</table>
</center> </body> </html> [[Template:Checkout.Section.4]] <html> <head> <meta http-equiv="Content-Type" content="text/html"> <title>Panier de commande - étape 4/5 - [[Template:Store.Name]]</title> </head> <body BACKGROUND="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#000080" ALINK="#FFFFFF" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0"> <center>
[[Template:Checkout.Form.Begin NextSection=OrderConfirmation]]
<input TYPE="HIDDEN" NAME="Payment" VALUE="[[Template:Checkout.Payment.ID]]"> <input TYPE="HIDDEN" NAME="Shipping" VALUE="[[Template:Checkout.Shipping.ID]]"> <input TYPE="HIDDEN" NAME="BillFirstName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.FirstName)]]"> <input TYPE="HIDDEN" NAME="BillLastName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.LastName)]]"> <input TYPE="HIDDEN" NAME="BillCompany" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.Company)]]"> <input TYPE="HIDDEN" NAME="BillAddress" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.Address)]]"> <input TYPE="HIDDEN" NAME="BillCity" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.City)]]"> <input TYPE="HIDDEN" NAME="BillState" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.State.Name)]]"> <input TYPE="HIDDEN" NAME="BillCountry" VALUE="[[Template:Checkout.Billing.Country.ID]]"> <input TYPE="HIDDEN" NAME="BillZIP" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.ZIP)]]"> <input TYPE="HIDDEN" NAME="BillPhone1" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.Phone1)]]"> <input TYPE="HIDDEN" NAME="BillPhone2" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.Phone2)]]"> <input TYPE="HIDDEN" NAME="BillFax" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.Fax)]]"> <input TYPE="HIDDEN" NAME="BillEmail" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Billing.Email)]]"> <input TYPE="HIDDEN" NAME="ShipFirstName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.FirstName)]]"> <input TYPE="HIDDEN" NAME="ShipLastName" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.LastName)]]"> <input TYPE="HIDDEN" NAME="ShipCompany" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Company)]]"> <input TYPE="HIDDEN" NAME="ShipAddress" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Address)]]"> <input TYPE="HIDDEN" NAME="ShipCity" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.City)]]"> <input TYPE="HIDDEN" NAME="ShipState" VALUE="[[Template:Checkout.Shipping.State.ID]]"> <input TYPE="HIDDEN" NAME="ShipCountry" VALUE="[[Template:Checkout.Shipping.Country.ID]]"> <input TYPE="HIDDEN" NAME="ShipZIP" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.ZIP)]]"> <input TYPE="HIDDEN" NAME="ShipPhone1" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Phone1)]]"> <input TYPE="HIDDEN" NAME="ShipPhone2" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Phone2)]]"> <input TYPE="HIDDEN" NAME="ShipFax" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Fax)]]"> <input TYPE="HIDDEN" NAME="ShipEmail" VALUE="[[Template:System.HTMLEncode(Input=Checkout.Shipping.Email)]]"> <input TYPE="HIDDEN" NAME="ProfileReuseInfo" VALUE="[[Template:System.Form.Input.Value Name=ProfileReuseInfo]]"> <input TYPE="HIDDEN" NAME="ProfilePassword" VALUE="[[Template:System.Form.Input.Value Name=ProfilePassword]]"> [[Template:If System.Form.Input.Value(Name=Express) EQ 1 Or Checkout.Profile.Exists]]
<input TYPE="HIDDEN" NAME="HasProfile" VALUE="True">
[[Template:EndIf]] [[Template:System.Form.Input.Loop.Begin Name=QuestionID]]
<input TYPE="HIDDEN" NAME="QuestionID" VALUE="[[Template:System.Form.Input.Value Name="QuestionID"]]"> <input TYPE="HIDDEN" NAME="AnswerRequired[[Template:System.Form.Input.Value Name="QuestionID"]]" VALUE="[[Template:System.Form.Input.Value Name=System.Concatenate(String1="AnswerRequired",String2=System.ToString(Input=System.Form.Input.Index))]]"> <input TYPE="HIDDEN" NAME="Answer[[Template:System.Form.Input.Value Name="QuestionID"]]" VALUE="[[Template:System.Form.Input.Value Name=System.Concatenate(String1="Answer",String2=System.ToString(Input=System.Form.Input.Index))]]">
[[Template:System.Form.Input.Loop.End]] [[Template:System.Form.Input.Loop.Begin Name=QuestionName]]
<input TYPE="HIDDEN" NAME="QuestionName" VALUE="[[Template:System.HTMLEncode(Input=System.Form.Input.Value(Name=QuestionName))]]">
[[Template:System.Form.Input.Loop.End]] [[Template:System.Form.Input.Loop.Begin Name=QuestionShortName]]
<input TYPE="HIDDEN" NAME="QuestionShortName" VALUE="[[Template:System.HTMLEncode(Input=System.Form.Input.Value(Name=QuestionShortName))]]">
[[Template:System.Form.Input.Loop.End]] <p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left" width="230">
<b><font face="verdana, arial, helvetica" size="3">Panier de commande : </font></b>
</td> <td align="left">
<table width="200">
<tr>
<td>
<font face="verdana, arial, helvetica" size="3"><img SRC="[[Template:Store.LogoURL]]"></font>
</td>
</tr>
</table>
</td> <td align="right" width="200">
<font face="verdana, arial, helvetica" size="2"><b>étape 4/5</b></font>
</td>
</tr> <tr>
<td colspan="3">
<table bgcolor="black" width="100%" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td colspan="3">
<img src="/images/pixel_transparent.gif" width="610" height="1">
</td>
</tr>
</table>
</td>
</tr>
</table> [[Template:If Checkout.Error.NbElements GT 0]] Votre commande comporte les erreurs suivantes:<BR> <FONT COLOR="red"> [[Template:Checkout.Error.Loop.Begin]] <LI>[[Template:Checkout.Error.Message]] [[Template:Checkout.Error.Loop.End]] </FONT> [[Template:EndIf]] <p><br></p> <table border="0" width="610" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left">
<font face="verdana, arial, helvetica" size="3"><b>Total de la facture</b></font> <p><br></p> <center>
<table border="0" width="350" align="center" cellpadding="3">
<tr>
<td colspan="3">
<font face="verdana, arial, helvetica" size="2"><b>Paiement par [[Template:Checkout.Payment.Name]]</b></font>
</td>
</tr> [[Template:Script]]
Set GrandTotal = 0 Item.Loop.Begin
Set GrandTotal = GrandTotal + (Item.TotalPrice * Item.Cart.Quantity) Cart.AddToTotal
Item.Loop.End
[[Template:EndScript]] <tr>
<td width="75"><font face="verdana, arial, helvetica" size="2">Achats</font></td> <td align="right" colspan="2" width="225"><font face="verdana, arial, helvetica" size="2">[[Template:System.FormatCurrency(Input=GrandTotal)]]</font></td>
</tr> [[Template:Checkout.AddOn.Loop.Begin]]
<tr>
<td width="75"><font face="verdana, arial, helvetica" size="2">[[Template:Checkout.AddOn.Name]]</font></td> <td align="right" colspan="2" width="225"><font face="verdana, arial, helvetica" size="2">[[Template:System.FormatCurrency(Input=Checkout.AddOn.Cost)]]</font></td>
</tr> [[Template:Set GrandTotal = GrandTotal + Checkout.AddOn.Cost]]
[[Template:Checkout.AddOn.Loop.End]] <tr>
<td width="150">
<font face="verdana, arial, helvetica" size="2">Frais d'envoi
[[Template:If Store.Shipping.Type EQ 2]]
([[Template:Checkout.Shipping.Name)
[[Template:EndIf]]
</font>
</td> <td align="right" colspan="2" width="225">
<font face="verdana, arial, helvetica" size="2">
[[Template:If Store.Shipping.Type EQ 0]]
inclus
[[Template:ElseIf Store.Shipping.Type EQ 1]]
plus tard
[[Template:Else]]
[[Template:System.FormatCurrency(Input=Checkout.Shipping.Price)]] [[Template:Set GrandTotal = GrandTotal + Checkout.Shipping.Price]]
[[Template:EndIf]]
</font>
</td>
</tr> [[Template:If Checkout.Payment.Price GT 0]]
<tr>
<td width="75"><font face="verdana, arial, helvetica" size="2">Frais de paiement ([[Template:Checkout.Payment.Name]])</font></td> <td align="right" colspan="2" width="225"><font face="verdana, arial, helvetica" size="2">[[Template:System.FormatCurrency(Input=Checkout.Payment.Price)]]</font></td>
</tr> [[Template:Set GrandTotal = GrandTotal + Checkout.Payment.Price]]
[[Template:EndIf]] <tr>
<td colspan="3">
<table bgcolor="black" width="350" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table>
</td>
</tr> <tr>
<td width="75"><font face="verdana, arial, helvetica" size="2">Sous-total</font></td> <td align="right" colspan="2" width="225"><font face="verdana, arial, helvetica" size="2">[[Template:System.FormatCurrency(Input=GrandTotal)]]</font></td>
</tr> <tr>
<td colspan="3">
<table bgcolor="black" width="350" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table>
</td>
</tr> [[Template:Checkout.Total.Tax.Loop.Begin]]
<tr>
<td>
<font face="verdana, arial, helvetica" size="2">[[Template:Checkout.Total.Tax.Name]]</font>
</td> <td align="right" width="225">
<font face="verdana, arial, helvetica" size="2">[[Template:System.FormatCurrency(Input=Checkout.Total.Tax.Value)]]</font>
</td> [[Template:Set TaxValue = System.Truncate(Input=Checkout.Total.Tax.Value)]] [[Template:Set GrandTotal = GrandTotal + TaxValue]]
</tr>
[[Template:Checkout.Total.Tax.Loop.End]] [[Template:If Cart.Promotion.Coupon.Rebate GT 0]]
<tr>
<td colspan="3">
<table bgcolor="black" width="350" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table>
</td>
</tr> <tr>
<td width="75">
<strong><font face="verdana, arial, helvetica" size="2">Coupon-rabais</font></strong>
</td> <td align="right" colspan="2" width="225">
<strong><font face="verdana, arial, helvetica" size="2">[[Template:System.FormatCurrency(Input=Cart.Promotion.Coupon.Rebate)]]</font></strong>
</td>
</tr> [[Template:Set GrandTotal = GrandTotal - Cart.Promotion.Coupon.Rebate]]
[[Template:EndIf]] <tr>
<td colspan="3">
<table bgcolor="black" width="350" height="1" cellpadding="0" cellspacing="0" align="left">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table>
</td>
</tr> <tr>
<td width="75">
<strong><font face="verdana, arial, helvetica" size="2">Total</font></strong>
</td> <td align="right" colspan="2" width="225">
<strong><font face="verdana, arial, helvetica" size="2">[[Template:System.FormatCurrency(Input=GrandTotal)]]</font></strong>
</td>
</tr>
</table> <br>
</center>
</td>
</tr> <tr>
<td align="center">
<table bgcolor="black" width="100%" height="1" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table>
</td>
</tr> <tr>
<td align="center">
<br> <table border="0" width="450" align="center" cellpadding="6">
<tr>
<td align="center" colspan="2">
[[Template:If Checkout.PaymentType EQ 1 AND Checkout.EPayment.Type NE 1]]
<table border="0" width="400" align="center" cellpadding="6">
<tr>
<td colspan="2">
<font face="verdana, arial, helvetica" size="2"><b>Carte de crédit</b><br></font> <font size="1">Veuillez remplir tous les champs S.V.P.</font>
</td>
</tr> <tr>
<td><font face="verdana, arial, helvetica" size="2">Numéro de la carte*:</font></td> <td align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="CardNo" size="17" VALUE=""></font></td>
</tr> <tr>
<td><font face="verdana, arial, helvetica" size="2">Nom sur la carte* :</font></td> <td align="left"><font face="verdana, arial, helvetica" size="3"><input CLASS="input" TYPE="TEXT" name="CardName" size="17" VALUE=""></font></td>
</tr> <tr>
<td><font face="verdana, arial, helvetica" size="2">Date d'expiration* :</font></td> <td align="left"><font face="verdana, arial, helvetica" size="2">
<select NAME="CardExpMonth">
<option VALUE="01">01 (Jan)</option> <option VALUE="02">02 (Fév)</option> <option VALUE="03">03 (Mar)</option> <option VALUE="04">04 (Avr)</option> <option VALUE="05">05 (Mai)</option> <option VALUE="06">06 (Jun)</option> <option VALUE="07">07 (Jul)</option> <option VALUE="08">08 (Aoû)</option> <option VALUE="09">09 (Sep)</option> <option VALUE="10">10 (Oct)</option> <option VALUE="11">11 (Nov)</option> <option VALUE="12">12 (Déc)</option>
</select> <select NAME="CardExpYear">
[[Template:Set CurrentYear = System.GetYear]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option> [[Template:Set CurrentYear = CurrentYear + 1]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option> [[Template:Set CurrentYear = CurrentYear + 1]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option> [[Template:Set CurrentYear = CurrentYear + 1]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option> [[Template:Set CurrentYear = CurrentYear + 1]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option> [[Template:Set CurrentYear = CurrentYear + 1]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option> [[Template:Set CurrentYear = CurrentYear + 1]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option> [[Template:Set CurrentYear = CurrentYear + 1]] <option VALUE="[[Template:CurrentYear]]">[[Template:CurrentYear]]</option>
</select>
</td>
</tr> <tr>
<td><font face="verdana, arial, helvetica" size="2"><A TARGET="_new" HREF="/MainTemplate/Checkout/Popup_CVV2.html">Code de vérification</A> :</font></td> <td align="left"><font face="verdana, arial, helvetica" size="3"><input class="input" type="text" name="CardCVV" size="4" MAXLENGTH="4" VALUE=""></font></td>
</tr>
</table>
[[Template:EndIf]]
</td>
</tr> [[Template:If Checkout.Payment.Terms NE ""]]
<tr>
<td>
<font face="verdana, arial, helvetica" size="2"><strong>Modalités de paiement : </strong> [[Template:Checkout.Payment.Terms]] </font> <br>
</td>
</tr>
[[Template:EndIf]] <tr>
<td colspan="2" align="center">
<p><br></p> <font face="verdana, arial, helvetica" size="1"><b>Commentaires ou instructions spéciales:</b></font><br> <textarea NAME="comments" COLS="40" ROWS="5" WRAP></textarea>
</td>
</tr>
</table> <p><br></p> <table bgcolor="black" width="100%" height="1" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="/images/pixel_transparent.gif" width="1" height="1">
</td>
</tr>
</table> <center><p>
<font face="verdana, arial, helvetica" size="2"><input style="color=#000000" type="submit" value="Procéder"></font>
</center>
</td>
</tr>
</table>
[[Template:Checkout.Form.End]]
</center> <p><br></p> </body> </html> [[Template:Checkout.Section.50]]
[[Template:Script]]
If Checkout.Profile.Exists Then
Set ShipFirstName = Checkout.Profile.Shipping.FirstName Set ShipLastName = Checkout.Profile.Shipping.LastName Set ShipCompany = Checkout.Profile.Shipping.Company Set ShipAddress = Checkout.Profile.Shipping.Address Set ShipCity = Checkout.Profile.Shipping.City Set ShipZIP = Checkout.Profile.Shipping.ZIP Set ShipPhone1 = Checkout.Profile.Shipping.Phone1 Set ShipPhone2 = Checkout.Profile.Shipping.Phone2 Set ShipFax = Checkout.Profile.Shipping.Fax Set ShipEmail = Checkout.Profile.Shipping.Email Set ShipStateID = Checkout.Profile.Shipping.State.ID Set ShipState2 = Checkout.Profile.Shipping.State.Name Set ShipCountryID = Checkout.Profile.Shipping.Country.ID Set ShipCountryName = Checkout.Profile.Shipping.Country.Name Checkout.Redirect Section=2
Else
System.Write(Output="<center><font color=\"red\">Profil non trouvé. Courriel ou mot de passe invalide.</font></center>") Checkout.Redirect Section=Begin
EndIf
[[Template:EndScript]]
[[Template:Checkout.Section.53]]
[[Template:Script]]
Set Errors = 0 If Checkout.Shipping.FirstName == "" Then
Set Errors = 1
EndIf If Checkout.Shipping.LastName == "" Then
Set Errors = 1
EndIf If Checkout.Shipping.Address == "" Then
Set Errors = 1
EndIf If Checkout.Shipping.City == "" Then
Set Errors = 1
EndIf If Checkout.Shipping.ZIP == "" Then
Set Errors = 1
EndIf If Checkout.Shipping.State.Name == "" Then
Set Errors = 1
EndIf If Checkout.Shipping.Phone1 == "" Then
Set Errors = 1
EndIf If Not System.IsEmail(Email=Checkout.Shipping.Email) Then
Set Errors = 1
EndIf If System.Form.Input.Value(Name=Express) == 1 And System.Form.Input.Value(Name=ProfilePassword) == "" Then
Set Errors = 1
EndIf Set MyQuestionID = 1 Checkout.Question.Loop.Begin
If Checkout.Question.Answer.Required Then
Set QName = System.Form.Input.Value(Name=System.Concatenate(String1="Answer",String2=System.ToString(Input=MyQuestionID))) Set UserAnswer = 0 If Checkout.Question.Answer.Type == 0
If QName != "" Then
Set UserAnswer = 1
EndIf
Else
Checkout.Question.Answer.Loop.Begin
Set QAnswer = Checkout.Question.Answer.Choice If QAnswer == "" Then
If QName != "" Then
Set UserAnswer = 1
EndIf
Else
If QName == QAnswer Then
Set UserAnswer = 1
EndIf
EndIf
Checkout.Question.Answer.Loop.End
EndIf If UserAnswer == 0 Then
Set Errors = 1 Set QErrorMsg = System.Concatenate(String1=QErrorMsg,String2=System.Concatenate(String1="<br><FONT SIZE=2 COLOR=red>Vous n'avez pas répondu à la Question ",String2=System.ToString(Input=MyQuestionID))) Set QErrorMsg = System.Concatenate(String1=QErrorMsg,String2=System.Concatenate(String1=" concernant '",String2=System.Concatenate(String1=Checkout.Question.ShortName,String2="'.</FONT>")))
EndIf
EndIf Set MyQuestionID = MyQuestionID + 1
Checkout.Question.Loop.End If Errors == 0 Then
If System.Form.Input.Value(Name=B1) != "" Then
Set BillFirstName = Checkout.Shipping.FirstName Set BillLastName = Checkout.Shipping.LastName Set BillCompany = Checkout.Shipping.Company Set BillAddress = Checkout.Shipping.Address Set BillCity = Checkout.Shipping.City Set BillZIP = Checkout.Shipping.ZIP Set BillPhone1 = Checkout.Shipping.Phone1 Set BillPhone2 = Checkout.Shipping.Phone2 Set BillFax = Checkout.Shipping.Fax Set BillEmail = Checkout.Shipping.Email Set BillStateID = Checkout.Shipping.State.ID Set BillState2 = Checkout.Shipping.State.Name Set BillCountryID = Checkout.Shipping.Country.ID Set BillCountryName = Checkout.Shipping.Country.Name
EndIf Checkout.Redirect Section=3
Else
Set ShipFirstName = Checkout.Shipping.FirstName Set ShipLastName = Checkout.Shipping.LastName Set ShipCompany = Checkout.Shipping.Company Set ShipAddress = Checkout.Shipping.Address Set ShipCity = Checkout.Shipping.City Set ShipZIP = Checkout.Shipping.ZIP Set ShipPhone1 = Checkout.Shipping.Phone1 Set ShipPhone2 = Checkout.Shipping.Phone2 Set ShipFax = Checkout.Shipping.Fax Set ShipEmail = Checkout.Shipping.Email Set ShipStateID = Checkout.Shipping.State.ID Set ShipState2 = Checkout.Shipping.State.Name Set ShipCountryID = Checkout.Shipping.Country.ID Set ShipCountryName = Checkout.Shipping.Country.Name Checkout.Redirect Section=2
EndIf
[[Template:EndScript]]
[[Template:Checkout.Section.54]]
[[Template:Script]]
Set Errors = 0 If Checkout.Billing.FirstName == "" Then
Set Errors = 1
EndIf If Checkout.Billing.LastName == "" Then
Set Errors = 1
EndIf If Checkout.Billing.Address == "" Then
Set Errors = 1
EndIf If Checkout.Billing.City == "" Then
Set Errors = 1
EndIf If Checkout.Billing.ZIP == "" Then
Set Errors = 1
EndIf If Checkout.Billing.Phone1 == "" Then
Set Errors = 1
EndIf If Not System.IsEmail(Email=Checkout.Billing.Email) Then
Set Errors = 1
EndIf If Cart.NbItems GT 0 And Store.Shipping.Type == 2 And Checkout.Shipping.ID == 0 Then
Set Errors = 1
EndIf If Errors == 0 Then
Checkout.Redirect Section=4
Else
Set BillFirstName = Checkout.Billing.FirstName Set BillLastName = Checkout.Billing.LastName Set BillCompany = Checkout.Billing.Company Set BillAddress = Checkout.Billing.Address Set BillCity = Checkout.Billing.City Set BillZIP = Checkout.Billing.ZIP Set BillPhone1 = Checkout.Billing.Phone1 Set BillPhone2 = Checkout.Billing.Phone2 Set BillFax = Checkout.Billing.Fax Set BillEmail = Checkout.Billing.Email Set BillStateID = Checkout.Billing.State.ID Set BillState2 = Checkout.Billing.State.Name Set BillCountryID = Checkout.Billing.Country.ID Set BillCountryName = Checkout.Billing.Country.Name Checkout.Redirect Section=3
EndIf
[[Template:EndScript]]
[[Template:Checkout.Section.End]]