MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

HI! Credit card problem !!!



Here is my problem:

When I set  "mv_credit_card_number=required" in checkout.html, I don't
have the receipt.html page loaded, because "We need your card
information" ( or something like that I translated in french ...).

When it isn't set, checkout accepts all cards ( without any number for
instance ... ) but the mail I receive don't mentions the card ( type
unknown).


How should I get It work, in order to check if the card is ok and
without leting everyone to put any number  ?

Thank you very much



This is my checkout.html, if you need ( a little of french won't fear
you I wish)


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Bon de commande -- __COMPANY__</title>

  </head>

  <body>

  [include pages/logobar]



[if !value pays]<!-- [value name=pays set="F"] -->[/if]


[if session logged_in]
[then]

[set Se d&#233;connecter]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=logout clear=1]
[/set]

    <TABLE CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
    <TR><TD>
    <FORM ACTION="[process-target]" METHOD=POST>
    Bonjour M. [value name] [value s_nickname]! Vous &ecirc;tes
identifi&#233; sous  <B>[value mv_username]</B>.<BR>
 <TABLE><TR><TD><INPUT TYPE=submit NAME="mv_click" VALUE="Se
d&#233;connecter"></TD>
  <TD><A HREF="[area new_account]">Changer le mot de passe</A><BR>
  [if type=data term="userdb::acl::[data session username]"]
  <A HREF="[area query/check_orders]">Check order status</A>
  [/if]</TD></TR></TABLE>
 </FORM>
 </TD></TR></TABLE>

[/then]
[else]

[set Login]
mv_todo=return
mv_nextpage=ord/checkout
[userdb login]
[/set]
[if session failure]
<P>
[data session failure]
<P>
[/if]
Si vous etes d&#233;j&#224; enregistr&#233;(e), entrez vos login et mot de passe.
<P>
    <FORM ACTION="[process-target]" METHOD=POST>
    <INPUT TYPE=hidden NAME=mv_click VALUE=Login>
    <INPUT TYPE=hidden NAME=mv_doit  VALUE=return>
    <INPUT TYPE=hidden NAME=mv_nextpage VALUE="ord/checkout">

    <TABLE CELLSPACING=0 CELLPADDING=0>
 <TR><TD ALIGN=RIGHT>Login</TD>
        <TD><INPUT NAME=mv_username VALUE="[value mv_username]" SIZE=10>

  &nbsp;&nbsp;&nbsp;[page new_account]Je ne suis pas
enregistr&#233;(e)[/page]
        </TD></TR>

    <TR><TD ALIGN=RIGHT>Mot de passe</TD>
        <TD><INPUT
    onChange="this.form.submit()"
     TYPE=password NAME=mv_password VALUE="" SIZE=10>
        <INPUT TYPE=submit VALUE="Connection"> &nbsp;&nbsp;
        </TD></TR>
    </TABLE>

    </FORM>

[/else][/if]




[value name=soust set="0"]
[value name=ttax set="0"]
[value name=pds_total set="0"]
[value name=tmp1 set="0"]
[value name=tmp2 set="0"]





<!-- [sql type=list query="select liv_zone from pays where code='[value
pays]'"][value name=zone set="[sql-code]"][/sql] -->


<FORM ACTION="[process-target secure=1]" METHOD="POST">
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
[if items]
[then]



<TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=600 BORDER=2 BGCOLOR="#ffe7ba">

<CAPTION ALIGN=LEFT VALIGN=BOTTOM>
 <FONT SIZE="+1" COLOR="__HEADERTEXT__">R&#233;capitulatif</FONT>
</CAPTION>

<TR>
  <TD ALIGN=LEFT><B>Titre</B></TD>
  <TD ALIGN=RIGHT><FONT COLOR=#8b7b8b><B>Quantit&#233;</B></FONT></TD>
  <TD ALIGN=RIGHT><B>Prix unitaire</B></TD>
  <TD ALIGN=RIGHT><FONT COLOR=#8b7b8b><B>Total HT</B></FONT></TD>
  <TD ALIGN=RIGHT><B>%TVA</B></TD>
  <TD ALIGN=RIGHT><FONT COLOR=#8b7b8b><B>TOTAL</B></FONT></TD>
</TR>

[item-list]


<TR>


 <INPUT TYPE="hidden" NAME="[quantity-name]" value="[item-quantity]">
 </TD>
 <TD>
 [item-field titre]</A>
 </TD>
 <TD ALIGN=RIGHT>[item-quantity]</TD>
 <TD ALIGN=RIGHT>[item-price]&nbsp;F</TD>
 <TD ALIGN=RIGHT>[calc][item-quantity]*[item-price][/calc]&nbsp;F</TD>


        <TD ALIGN=RIGHT>[calc]
                         return 0 if (('[value zone]' < '7')and('[value
zone]'>1));
                         return 5.5 if '[item-field type]' eq 'A';
                         return 20.6 if '[item-field type]' eq 'B';
                       [/calc]


        <TD ALIGN=RIGHT>


            [value name=tmp1 set="
               [calc]
                 return int(([item-quantity]*[item-price])*10)/10 if
(('[value zone]' < 7)and('[value zone]'>1));
                 return
int((([item-quantity]*[item-price])*1.055)*10)/10 if '[item-field type]'
eq 'A';
                 return
int((([item-quantity]*[item-price])*1.206)*10)/10 if '[item-field type]'
eq 'B';
                 return 0;
               [/calc] "]&nbsp;F


               <!-- [value name=tmp2 set="
                [calc]
                 return 0 if (('[value zone]' < 7)and('[value zone]'
>1));
                 return (([item-quantity]*[item-price])*0.055) if
'[item-field type]' eq 'A';
                 return (([item-quantity]*[item-price])*0.206) if
'[item-field type]' eq 'B';
                 return 0;
               [/calc] "]




              [value name=pds_total set="
                [calc]
                 return [item-quantity]*[item-field poids] if '[value
pds_total]' eq '0';
                 return '[value pds_total]'+[item-quantity]*[item-field
poids];
              [/calc] "]



                   [value name=ttax set="

               [calc]
                 return '[value tmp2]' if '[value ttax]' eq '0';
                 return '[value ttax]'+ '[value tmp2]';
               [/calc] "]



               [value name=soust set="

               [calc]
                 return '[value tmp1]' if '[value soust]' eq '0';
                 return '[value soust]'+ '[value tmp1]';
               [/calc] "] -->



</TR>
[/item-list]
<TR>
 <TD COLSPAN=2 ROWSPAN=5><A HREF="[area ord/basket]">Retour au
panier</A><BR></TD>
 <TD>sous-total</TD>
 <TD ALIGN=RIGHT COLSPAN=4>[value soust] &nbsp;F</TD>
</TR>
[if value ttax ~='0']

<TR>
 <TD>dont tva</TD>
 <TD ALIGN=RIGHT COLSPAN=4>[calc]int('[value
ttax]'*10)/10;[/calc]&nbsp;F</TD>

</TR>

[/if]
<TR>

<TR>
 <TD>poids / port</TD>
[comment]1.05 car on estime le poids de l'emballage &#224; 5% du poids du
colis[/comment]

        <TD ALIGN=RIGHT COLSPAN=2>[value name=poids_colis
set="[calc]return int('[value pds_total]'*1.05)[/calc]"]&nbsp;g</TD>


<TD COLSPAN=2 ALIGN=RIGHT>

         [sql type=list
           query="select prix from port, pays where
port.liv_zone=pays.liv_zone and pays.code='[value pays]' and
port.min<='[value poids_colis]' and port.max>'[value poids_colis]'"]

[comment]20.6% tva sur port pour pays cee[/comment]
           [value name=prix_port set="[calc]return int('[sql-code]') if
(('[value zone]' < 7)and('[value zone]'>1));return
int('[sql-code]'*1.206);[/calc]"]&nbsp;F

         [/sql]


</TD>



</TR>

[sql type=list query="select formule from port where liv_zone='[value
zone]' and min<='[value poids_colis]' and max > '[value poids_colis]'"]
     [value name=pb_poids set="[sql-code]"]
[/sql]


<TR>
 <TD><FONT COLOR="RED">TOTAL</FONT></TD>
 <TD ALIGN=RIGHT COLSPAN=4><FONT COLOR="RED" SIZE="+1">

[if value pb_poids]
  [value pb_poids]
[else]
[value name=total_commande set="[calc]return '[value soust]'+'[value
prix_port]'[/calc]"]&nbsp;F
[/else]
[/if]
[value name=pb_poids set=""]

</FONT></TD>
</TR>
</TABLE>




<P>
[/then]
[else]



<H2>Votre panier est vide</H2>
<P>
<I>Vous pouvez remplir les champs propos&#233;s, mais pensez &#224; commander un
article !</I>

[/else]
[/if]

<INPUT TYPE="hidden" NAME="mv_doit" VALUE="return">
<INPUT TYPE="hidden" NAME="mv_orderpage" VALUE="ord/checkout">
<INPUT TYPE="hidden" NAME="mv_nextpage" VALUE="ord/checkout">
<INPUT TYPE="hidden" NAME="mv_order_report" VALUE="../etc/report">
<INPUT TYPE="hidden" NAME="mv_failpage" VALUE="special/needfield">
<INPUT TYPE="hidden" NAME="mv_order_profile" VALUE="checkout_profile">


<BR><BR>
<TABLE WIDTH=600><TR><TD>
<FONT SIZE="+2" COLOR="__HEADERTEXT__"><B>Adresse</B></FONT>
</TD></TR></TABLE>

<TABLE WIDTH=90%>

<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Nom</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="name" VALUE="[value name]" size=40>
 </TD>
</TR>


<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Pr&#233;nom</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="s_nickname" VALUE="[value s_nickname]"
size=40>
 </TD>
</TR>




<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Adresse</B></TD>
 <TD ALIGN=LEFT>
  <INPUT TYPE="text" NAME="address" VALUE="[value address]" size=40>
 </TD>
</TR>

<TR>
 <TD ALIGN=RIGHT>
  <BR>
 <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><BR><B>Ville</B></TD>
 <TD VALIGN=BOTTOM>
 <TABLE CELLPADDING=0 MARGINWIDTH=0>
 <TR>
  <TD VALIGN=BOTTOM>
  <INPUT TYPE="text" NAME="city" VALUE="[value city]" size=20>
  </TD>
  <TD ALIGN=RIGHT>
  <BR>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
  </TD>
  <TD ALIGN=CENTER VALIGN=BOTTOM>
  Code Postal<BR>
  <INPUT TYPE="text" NAME="zip" VALUE="[value zip]" size=10>

  </TD>
 </TR>

        </TABLE>
 </TD>
</TR>


<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Email</B></TD>
 <TD ALIGN=LEFT>
  <INPUT TYPE="text" NAME="email" VALUE="[value email]" size=40>
 </TD>
</TR>


 <TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
        <TD ALIGN=RIGHT><B>Pays</B></TD>
                <TD>
                 <SELECT NAME=pays onChange="submit()">
                  <OPTION SELECTED VALUE="[value pays]">[sql type=list
query="select nom_pays from pays where code='[value
pays]'"][sql-code][/sql]</OPTION>
                  <OPTION VALUE="[value pays]">[sql type=list
query="select code from pays where code!='[value pays]' order by
code"]</OPTION>
                  <OPTION VALUE="[sql-code]">[sql-code]</OPTION>[/sql]
          </SELECT>
                </TD>
        </TR>


<TR>
 <TD ALIGN=RIGHT>
 <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>T&#233;l&#233;phone journ&#233;e</B></TD>
 <TD>
 <TABLE>
 <TR>
  <TD>
  <INPUT TYPE="text" NAME="phone_day" VALUE="[value phone_day]" size=16>

  </TD>
  <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="bg.gif">
  </TD>
  <TD ALIGN=RIGHT>
  <B>soir&#233;e</B>
  </TD>
  <TD>
  <INPUT TYPE="text" NAME="phone_night" VALUE="[value phone_night]"
size=16>
  </TD>
 </TR>
 </TABLE>
</TR>

<TR>
 <TD ALIGN=RIGHT>
 <IMG WIDTH="12" HEIGHT="12" SRC="redball.gif">
 </TD>
 <TD COLSPAN=2>
  <I>Champs obligatoires</I>
 </TD>
</TR>
</TABLE>




[if session logged_in]
  [userdb function=get_shipping_names]

[set Sauver entr&#233;e]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=set_shipping]
[/set]

[set Rappeler adresse]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=get_shipping]
[/set]

[set Supprimer adresse]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=delete_shipping]
[/set]

[/if]


<TABLE WIDTH=600><TR><TD>
<FONT SIZE="+2" color=" __HEADERTEXT__"><B>Carte de
cr&#233;dit</B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG
SRC="smallvisa.gif">&nbsp;&nbsp;<IMG SRC="smallmc.gif">
</TD></TR></TABLE>

<P>
<TABLE><TR><TD VALIGN=TOP>
Num&#233;ro de carte<BR>
<input type="text" name="mv_credit_card_number" value="" size=19>
</TD>
<TD VALIGN=TOP>
 Date d'expiration
<BR>
   <SELECT name="mv_credit_card_exp_month">
  <OPTION VALUE=1 [selected mv_credit_card_exp_month 1]> 01 - Janvier
  <OPTION VALUE=2 [selected mv_credit_card_exp_month 2]> 02 - F&#233;vrier
  <OPTION VALUE=3 [selected mv_credit_card_exp_month 3]> 03 - Mars
  <OPTION VALUE=4 [selected mv_credit_card_exp_month 4]> 04 - Avril
  <OPTION VALUE=5 [selected mv_credit_card_exp_month 5]> 05 - Mai
  <OPTION VALUE=6 [selected mv_credit_card_exp_month 6]> 06 - Juin
  <OPTION VALUE=7 [selected mv_credit_card_exp_month 7]> 07 - Juillet
  <OPTION VALUE=8 [selected mv_credit_card_exp_month 8]> 08 - Aout
  <OPTION VALUE=9 [selected mv_credit_card_exp_month 9]> 09 - Septembre
  <OPTION VALUE=10 [selected mv_credit_card_exp_month 10]> 10 - Octobre
  <OPTION VALUE=11 [selected mv_credit_card_exp_month 11]> 11 - Novembre

  <OPTION VALUE=12 [selected mv_credit_card_exp_month 12]> 12 - D&#233;cembre

 </SELECT>
 <SELECT name="mv_credit_card_exp_year">
  <OPTION VALUE=99 [selected mv_credit_card_exp_year 99]> 1999
  <OPTION VALUE=00 [selected mv_credit_card_exp_year 00]> 2000
  <OPTION VALUE=01 [selected mv_credit_card_exp_year 01]> 2001
  <OPTION VALUE=02 [selected mv_credit_card_exp_year 02]> 2002
  <OPTION VALUE=03 [selected mv_credit_card_exp_year 03]> 2003
  <OPTION VALUE=04 [selected mv_credit_card_exp_year 04]> 2004
  <OPTION VALUE=05 [selected mv_credit_card_exp_year 05]> 2005
  <OPTION VALUE=06 [selected mv_credit_card_exp_year 06]> 2006
  <OPTION VALUE=07 [selected mv_credit_card_exp_year 07]> 2007
  <OPTION VALUE=08 [selected mv_credit_card_exp_year 08]> 2008
  <OPTION VALUE=09 [selected mv_credit_card_exp_year 09]> 2009
  <OPTION VALUE=10 [selected mv_credit_card_exp_year 10]> 2010
 </SELECT>
</TD></TR></TABLE>


<TABLE WIDTH=600><TR><TD>
<FONT SIZE="+2" color="__HEADERTEXT__"><B>Adresse de livraison (si
diff&#233;rente)</B></FONT>
</TD></TR></TABLE>

<TABLE>
<TR>
 <TD ALIGN=RIGHT><B>Nom</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="b_name" VALUE="[value b_name]" size=60>
 </TD>
</TR>

<TR>
 <TD ALIGN=RIGHT><B>Adresse</B></TD>
 <TD ALIGN=LEFT>
  <INPUT TYPE="text" NAME="b_address" VALUE="[value b_address]" size=60>

 </TD>
</TR>
<TR>
 <TD ALIGN=RIGHT><B>Ville, code postal</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="b_city" VALUE="[value b_city]" size=60>
 </TD>
</TR>
</TABLE>


[if session logged_in]
  [userdb function=get_billing_names]
[set Sauver paiement]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=set_billing]
[/set]

[set Rappeler paiement]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=get_billing]
[/set]

[set Supprimer paiement]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=delete_billing]
[/set]
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1 WIDTH=600>
 <TR>
 <TD VALIGN=TOP>
 <FONT SIZE="-1">
 Vous pouvez cr&#233;er une nouvelle adresse de paiement dans votre
"book".<BR>Pseudo:
 <INPUT TYPE=text   NAME="b_nickname" SIZE=10>
 <INPUT TYPE=submit NAME="mv_check" VALUE="Sauver paiement"><BR>
 </FONT>
 </TD>
 [if value accounts]
 <TD>
 <FONT SIZE="-1">
 Vous pouvez sauver une adresse de paiement dans votre "book".<BR>
  [loop arg="[value accounts]" ]
  <INPUT TYPE=checkbox NAME="b_nickname" VALUE="[loop-code]">
[loop-code]
  [/loop]
 <INPUT TYPE=submit NAME="mv_check" VALUE="Sauver paiement">
 </FONT>
 </TD></TR><TR>
 <TD>
 <FONT SIZE="-1">
 Vous pouvez chercher une adresse de paiement dans votre "book".<BR>
  [loop arg="[value accounts]" ]
  <INPUT TYPE=checkbox NAME="b_nickname" VALUE="[loop-code]">
[loop-code]
  [/loop]
 <INPUT TYPE=submit NAME="mv_check" VALUE="Rappeler paiement">
 </FONT>
 </TD>
 <TD>
 <FONT SIZE="-1">
 Vous pouvez supprimer une adresse de paiement de votre "book".<BR>
  [loop arg="[value accounts]" ]
  <INPUT TYPE=checkbox NAME="b_nickname" VALUE="[loop-code]">
[loop-code]
  [/loop]
 <INPUT TYPE=submit NAME="mv_check" VALUE="Supprimer paiement">
 </FONT>
 </TD>
 [/if]
 </TR>
</TABLE>
[/if]

[set Envoyer]
mv_todo=submit
[/set]


<TABLE><TR><TD>
<INPUT TYPE=radio NAME=email_copy [checked email_copy 1] VALUE="1">Oui
<INPUT TYPE=radio NAME=email_copy [checked name=email_copy value=0
default=1] VALUE="0">Non
</TD><TD>
<I>M'envoyer un email de confirmation</I>
</TD></TR>
[if session logged_in]
<TR><TD ALIGN=RIGHT>
<INPUT TYPE=checkbox NAME=mv_check CHECKED VALUE="Save_database">
</TD><TD>
<I> Sauver mes informations personnelles dans la base de donn&#233;es.</I>
[set Save_database]
[userdb save]
[/set]
[/if]
</TD></TR></TABLE>



<!-- [value name=country set="[value pays]"] -->
<!-- [value name=shipping set="[value prix_port]"] -->
<!-- [value name=total-cost set="[value total-commande]"] -->
<!-- [value name=salestax set="[value ttax]"] -->




<CENTER>
<B><INPUT TYPE=submit NAME=mv_click VALUE="Envoyer"></B><BR>
<FONT SIZE="-1"><INPUT TYPE=submit VALUE="Mettre &#224; jour sans
envoyer"></FONT>
</CENTER>
<P>
<B>Commentaires, instructions, ...<BR>
<TEXTAREA NAME=gift_note ROWS=5 COLS=72>[value gift_note]</TEXTAREA>
</FORM>
<P>
<CENTER><A HREF="/">Retour &#224; l'accueil de  __COMPANY__</A></CENTER>







</body> </html>

[set checkout_profile]
name=required
s_nickname=required
address=required
city=required
country=required
zip=required
[calc]
 my $country = q{[cgi country]};
 $country =~ s/\W+//g;
 return 'phone_day=phone' unless $country =~
/^(US|CA|USA|UnitedStates|Canada)$/i;
 return "state=state_province\nzip=zip\nphone_day=phone_us";
[/calc]
email=required
email=email
&fatal = yes

&set=mv_payment Credit Card ([default mv_credit_card_type unknown])

[comment][/comment]

mv_credit_card_number=required

mv_credit_card_exp_year=required
mv_credit_card_exp_month=required
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Bon de commande -- __COMPANY__</title>

  </head>

  <body>

  [include pages/logobar]



[if !value pays]<!-- [value name=pays set="F"] -->[/if]


[if session logged_in]
[then]

[set Se d&#233;connecter]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=logout clear=1]
[/set]

    <TABLE CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
    <TR><TD>
    <FORM ACTION="[process-target]" METHOD=POST>
    Bonjour M. [value name] [value s_nickname]! Vous &ecirc;tes
identifi&#233; sous  <B>[value mv_username]</B>.<BR>
 <TABLE><TR><TD><INPUT TYPE=submit NAME="mv_click" VALUE="Se
d&#233;connecter"></TD>
  <TD><A HREF="[area new_account]">Changer le mot de passe</A><BR>
  [if type=data term="userdb::acl::[data session username]"]
  <A HREF="[area query/check_orders]">Check order status</A>
  [/if]</TD></TR></TABLE>
 </FORM>
 </TD></TR></TABLE>

[/then]
[else]

[set Login]
mv_todo=return
mv_nextpage=ord/checkout
[userdb login]
[/set]
[if session failure]
<P>
[data session failure]
<P>
[/if]
Si vous etes d&#233;j&#224; enregistr&#233;(e), entrez vos login et mot de passe.
<P>
    <FORM ACTION="[process-target]" METHOD=POST>
    <INPUT TYPE=hidden NAME=mv_click VALUE=Login>
    <INPUT TYPE=hidden NAME=mv_doit  VALUE=return>
    <INPUT TYPE=hidden NAME=mv_nextpage VALUE="ord/checkout">

    <TABLE CELLSPACING=0 CELLPADDING=0>
 <TR><TD ALIGN=RIGHT>Login</TD>
        <TD><INPUT NAME=mv_username VALUE="[value mv_username]" SIZE=10>

  &nbsp;&nbsp;&nbsp;[page new_account]Je ne suis pas
enregistr&#233;(e)[/page]
        </TD></TR>

    <TR><TD ALIGN=RIGHT>Mot de passe</TD>
        <TD><INPUT
    onChange="this.form.submit()"
     TYPE=password NAME=mv_password VALUE="" SIZE=10>
        <INPUT TYPE=submit VALUE="Connection"> &nbsp;&nbsp;
        </TD></TR>
    </TABLE>

    </FORM>

[/else][/if]




[value name=soust set="0"]
[value name=ttax set="0"]
[value name=pds_total set="0"]
[value name=tmp1 set="0"]
[value name=tmp2 set="0"]





<!-- [sql type=list query="select liv_zone from pays where code='[value
pays]'"][value name=zone set="[sql-code]"][/sql] -->


<FORM ACTION="[process-target secure=1]" METHOD="POST">
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
[if items]
[then]



<TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=600 BORDER=2 BGCOLOR="#ffe7ba">

<CAPTION ALIGN=LEFT VALIGN=BOTTOM>
 <FONT SIZE="+1" COLOR="__HEADERTEXT__">R&#233;capitulatif</FONT>
</CAPTION>

<TR>
  <TD ALIGN=LEFT><B>Titre</B></TD>
  <TD ALIGN=RIGHT><FONT COLOR=#8b7b8b><B>Quantit&#233;</B></FONT></TD>
  <TD ALIGN=RIGHT><B>Prix unitaire</B></TD>
  <TD ALIGN=RIGHT><FONT COLOR=#8b7b8b><B>Total HT</B></FONT></TD>
  <TD ALIGN=RIGHT><B>%TVA</B></TD>
  <TD ALIGN=RIGHT><FONT COLOR=#8b7b8b><B>TOTAL</B></FONT></TD>
</TR>

[item-list]


<TR>


 <INPUT TYPE="hidden" NAME="[quantity-name]" value="[item-quantity]">
 </TD>
 <TD>
 [item-field titre]</A>
 </TD>
 <TD ALIGN=RIGHT>[item-quantity]</TD>
 <TD ALIGN=RIGHT>[item-price]&nbsp;F</TD>
 <TD ALIGN=RIGHT>[calc][item-quantity]*[item-price][/calc]&nbsp;F</TD>


        <TD ALIGN=RIGHT>[calc]
                         return 0 if (('[value zone]' < '7')and('[value
zone]'>1));
                         return 5.5 if '[item-field type]' eq 'A';
                         return 20.6 if '[item-field type]' eq 'B';
                       [/calc]


        <TD ALIGN=RIGHT>


            [value name=tmp1 set="
               [calc]
                 return int(([item-quantity]*[item-price])*10)/10 if
(('[value zone]' < 7)and('[value zone]'>1));
                 return
int((([item-quantity]*[item-price])*1.055)*10)/10 if '[item-field type]'
eq 'A';
                 return
int((([item-quantity]*[item-price])*1.206)*10)/10 if '[item-field type]'
eq 'B';
                 return 0;
               [/calc] "]&nbsp;F


               <!-- [value name=tmp2 set="
                [calc]
                 return 0 if (('[value zone]' < 7)and('[value zone]'
>1));
                 return (([item-quantity]*[item-price])*0.055) if
'[item-field type]' eq 'A';
                 return (([item-quantity]*[item-price])*0.206) if
'[item-field type]' eq 'B';
                 return 0;
               [/calc] "]




              [value name=pds_total set="
                [calc]
                 return [item-quantity]*[item-field poids] if '[value
pds_total]' eq '0';
                 return '[value pds_total]'+[item-quantity]*[item-field
poids];
              [/calc] "]



                   [value name=ttax set="

               [calc]
                 return '[value tmp2]' if '[value ttax]' eq '0';
                 return '[value ttax]'+ '[value tmp2]';
               [/calc] "]



               [value name=soust set="

               [calc]
                 return '[value tmp1]' if '[value soust]' eq '0';
                 return '[value soust]'+ '[value tmp1]';
               [/calc] "] -->



</TR>
[/item-list]
<TR>
 <TD COLSPAN=2 ROWSPAN=5><A HREF="[area ord/basket]">Retour au
panier</A><BR></TD>
 <TD>sous-total</TD>
 <TD ALIGN=RIGHT COLSPAN=4>[value soust] &nbsp;F</TD>
</TR>
[if value ttax ~='0']

<TR>
 <TD>dont tva</TD>
 <TD ALIGN=RIGHT COLSPAN=4>[calc]int('[value
ttax]'*10)/10;[/calc]&nbsp;F</TD>

</TR>

[/if]
<TR>

<TR>
 <TD>poids / port</TD>
[comment]1.05 car on estime le poids de l'emballage &#224; 5% du poids du
colis[/comment]

        <TD ALIGN=RIGHT COLSPAN=2>[value name=poids_colis
set="[calc]return int('[value pds_total]'*1.05)[/calc]"]&nbsp;g</TD>


<TD COLSPAN=2 ALIGN=RIGHT>

         [sql type=list
           query="select prix from port, pays where
port.liv_zone=pays.liv_zone and pays.code='[value pays]' and
port.min<='[value poids_colis]' and port.max>'[value poids_colis]'"]

[comment]20.6% tva sur port pour pays cee[/comment]
           [value name=prix_port set="[calc]return int('[sql-code]') if
(('[value zone]' < 7)and('[value zone]'>1));return
int('[sql-code]'*1.206);[/calc]"]&nbsp;F

         [/sql]


</TD>



</TR>

[sql type=list query="select formule from port where liv_zone='[value
zone]' and min<='[value poids_colis]' and max > '[value poids_colis]'"]
     [value name=pb_poids set="[sql-code]"]
[/sql]


<TR>
 <TD><FONT COLOR="RED">TOTAL</FONT></TD>
 <TD ALIGN=RIGHT COLSPAN=4><FONT COLOR="RED" SIZE="+1">

[if value pb_poids]
  [value pb_poids]
[else]
[value name=total_commande set="[calc]return '[value soust]'+'[value
prix_port]'[/calc]"]&nbsp;F
[/else]
[/if]
[value name=pb_poids set=""]

</FONT></TD>
</TR>
</TABLE>




<P>
[/then]
[else]



<H2>Votre panier est vide</H2>
<P>
<I>Vous pouvez remplir les champs propos&#233;s, mais pensez &#224; commander un
article !</I>

[/else]
[/if]

<INPUT TYPE="hidden" NAME="mv_doit" VALUE="return">
<INPUT TYPE="hidden" NAME="mv_orderpage" VALUE="ord/checkout">
<INPUT TYPE="hidden" NAME="mv_nextpage" VALUE="ord/checkout">
<INPUT TYPE="hidden" NAME="mv_order_report" VALUE="../etc/report">
<INPUT TYPE="hidden" NAME="mv_failpage" VALUE="special/needfield">
<INPUT TYPE="hidden" NAME="mv_order_profile" VALUE="checkout_profile">


<BR><BR>
<TABLE WIDTH=600><TR><TD>
<FONT SIZE="+2" COLOR="__HEADERTEXT__"><B>Adresse</B></FONT>
</TD></TR></TABLE>

<TABLE WIDTH=90%>

<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Nom</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="name" VALUE="[value name]" size=40>
 </TD>
</TR>


<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Pr&#233;nom</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="s_nickname" VALUE="[value s_nickname]"
size=40>
 </TD>
</TR>




<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Adresse</B></TD>
 <TD ALIGN=LEFT>
  <INPUT TYPE="text" NAME="address" VALUE="[value address]" size=40>
 </TD>
</TR>

<TR>
 <TD ALIGN=RIGHT>
  <BR>
 <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><BR><B>Ville</B></TD>
 <TD VALIGN=BOTTOM>
 <TABLE CELLPADDING=0 MARGINWIDTH=0>
 <TR>
  <TD VALIGN=BOTTOM>
  <INPUT TYPE="text" NAME="city" VALUE="[value city]" size=20>
  </TD>
  <TD ALIGN=RIGHT>
  <BR>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
  </TD>
  <TD ALIGN=CENTER VALIGN=BOTTOM>
  Code Postal<BR>
  <INPUT TYPE="text" NAME="zip" VALUE="[value zip]" size=10>

  </TD>
 </TR>

        </TABLE>
 </TD>
</TR>


<TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>Email</B></TD>
 <TD ALIGN=LEFT>
  <INPUT TYPE="text" NAME="email" VALUE="[value email]" size=40>
 </TD>
</TR>


 <TR>
 <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
        <TD ALIGN=RIGHT><B>Pays</B></TD>
                <TD>
                 <SELECT NAME=pays onChange="submit()">
                  <OPTION SELECTED VALUE="[value pays]">[sql type=list
query="select nom_pays from pays where code='[value
pays]'"][sql-code][/sql]</OPTION>
                  <OPTION VALUE="[value pays]">[sql type=list
query="select code from pays where code!='[value pays]' order by
code"]</OPTION>
                  <OPTION VALUE="[sql-code]">[sql-code]</OPTION>[/sql]
          </SELECT>
                </TD>
        </TR>


<TR>
 <TD ALIGN=RIGHT>
 <IMG WIDTH=12 HEIGHT=12 SRC="redball.gif">
 </TD>
 <TD ALIGN=RIGHT><B>T&#233;l&#233;phone journ&#233;e</B></TD>
 <TD>
 <TABLE>
 <TR>
  <TD>
  <INPUT TYPE="text" NAME="phone_day" VALUE="[value phone_day]" size=16>

  </TD>
  <TD ALIGN=RIGHT>
  <IMG WIDTH=12 HEIGHT=12 SRC="bg.gif">
  </TD>
  <TD ALIGN=RIGHT>
  <B>soir&#233;e</B>
  </TD>
  <TD>
  <INPUT TYPE="text" NAME="phone_night" VALUE="[value phone_night]"
size=16>
  </TD>
 </TR>
 </TABLE>
</TR>

<TR>
 <TD ALIGN=RIGHT>
 <IMG WIDTH="12" HEIGHT="12" SRC="redball.gif">
 </TD>
 <TD COLSPAN=2>
  <I>Champs obligatoires</I>
 </TD>
</TR>
</TABLE>




[if session logged_in]
  [userdb function=get_shipping_names]

[set Sauver entr&#233;e]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=set_shipping]
[/set]

[set Rappeler adresse]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=get_shipping]
[/set]

[set Supprimer adresse]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=delete_shipping]
[/set]

[/if]


<TABLE WIDTH=600><TR><TD>
<FONT SIZE="+2" color=" __HEADERTEXT__"><B>Carte de
cr&#233;dit</B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG
SRC="smallvisa.gif">&nbsp;&nbsp;<IMG SRC="smallmc.gif">
</TD></TR></TABLE>

<P>
<TABLE><TR><TD VALIGN=TOP>
Num&#233;ro de carte<BR>
<input type="text" name="mv_credit_card_number" value="" size=19>
</TD>
<TD VALIGN=TOP>
 Date d'expiration
<BR>
   <SELECT name="mv_credit_card_exp_month">
  <OPTION VALUE=1 [selected mv_credit_card_exp_month 1]> 01 - Janvier
  <OPTION VALUE=2 [selected mv_credit_card_exp_month 2]> 02 - F&#233;vrier
  <OPTION VALUE=3 [selected mv_credit_card_exp_month 3]> 03 - Mars
  <OPTION VALUE=4 [selected mv_credit_card_exp_month 4]> 04 - Avril
  <OPTION VALUE=5 [selected mv_credit_card_exp_month 5]> 05 - Mai
  <OPTION VALUE=6 [selected mv_credit_card_exp_month 6]> 06 - Juin
  <OPTION VALUE=7 [selected mv_credit_card_exp_month 7]> 07 - Juillet
  <OPTION VALUE=8 [selected mv_credit_card_exp_month 8]> 08 - Aout
  <OPTION VALUE=9 [selected mv_credit_card_exp_month 9]> 09 - Septembre
  <OPTION VALUE=10 [selected mv_credit_card_exp_month 10]> 10 - Octobre
  <OPTION VALUE=11 [selected mv_credit_card_exp_month 11]> 11 - Novembre

  <OPTION VALUE=12 [selected mv_credit_card_exp_month 12]> 12 - D&#233;cembre

 </SELECT>
 <SELECT name="mv_credit_card_exp_year">
  <OPTION VALUE=99 [selected mv_credit_card_exp_year 99]> 1999
  <OPTION VALUE=00 [selected mv_credit_card_exp_year 00]> 2000
  <OPTION VALUE=01 [selected mv_credit_card_exp_year 01]> 2001
  <OPTION VALUE=02 [selected mv_credit_card_exp_year 02]> 2002
  <OPTION VALUE=03 [selected mv_credit_card_exp_year 03]> 2003
  <OPTION VALUE=04 [selected mv_credit_card_exp_year 04]> 2004
  <OPTION VALUE=05 [selected mv_credit_card_exp_year 05]> 2005
  <OPTION VALUE=06 [selected mv_credit_card_exp_year 06]> 2006
  <OPTION VALUE=07 [selected mv_credit_card_exp_year 07]> 2007
  <OPTION VALUE=08 [selected mv_credit_card_exp_year 08]> 2008
  <OPTION VALUE=09 [selected mv_credit_card_exp_year 09]> 2009
  <OPTION VALUE=10 [selected mv_credit_card_exp_year 10]> 2010
 </SELECT>
</TD></TR></TABLE>


<TABLE WIDTH=600><TR><TD>
<FONT SIZE="+2" color="__HEADERTEXT__"><B>Adresse de livraison (si
diff&#233;rente)</B></FONT>
</TD></TR></TABLE>

<TABLE>
<TR>
 <TD ALIGN=RIGHT><B>Nom</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="b_name" VALUE="[value b_name]" size=60>
 </TD>
</TR>

<TR>
 <TD ALIGN=RIGHT><B>Adresse</B></TD>
 <TD ALIGN=LEFT>
  <INPUT TYPE="text" NAME="b_address" VALUE="[value b_address]" size=60>

 </TD>
</TR>
<TR>
 <TD ALIGN=RIGHT><B>Ville, code postal</B></TD>
 <TD>
 <INPUT TYPE="text" NAME="b_city" VALUE="[value b_city]" size=60>
 </TD>
</TR>
</TABLE>


[if session logged_in]
  [userdb function=get_billing_names]
[set Sauver paiement]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=set_billing]
[/set]

[set Rappeler paiement]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=get_billing]
[/set]

[set Supprimer paiement]
mv_todo=return
mv_nextpage=ord/checkout
[userdb function=delete_billing]
[/set]
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1 WIDTH=600>
 <TR>
 <TD VALIGN=TOP>
 <FONT SIZE="-1">
 Vous pouvez cr&#233;er une nouvelle adresse de paiement dans votre
"book".<BR>Pseudo:
 <INPUT TYPE=text   NAME="b_nickname" SIZE=10>
 <INPUT TYPE=submit NAME="mv_check" VALUE="Sauver paiement"><BR>
 </FONT>
 </TD>
 [if value accounts]
 <TD>
 <FONT SIZE="-1">
 Vous pouvez sauver une adresse de paiement dans votre "book".<BR>
  [loop arg="[value accounts]" ]
  <INPUT TYPE=checkbox NAME="b_nickname" VALUE="[loop-code]">
[loop-code]
  [/loop]
 <INPUT TYPE=submit NAME="mv_check" VALUE="Sauver paiement">
 </FONT>
 </TD></TR><TR>
 <TD>
 <FONT SIZE="-1">
 Vous pouvez chercher une adresse de paiement dans votre "book".<BR>
  [loop arg="[value accounts]" ]
  <INPUT TYPE=checkbox NAME="b_nickname" VALUE="[loop-code]">
[loop-code]
  [/loop]
 <INPUT TYPE=submit NAME="mv_check" VALUE="Rappeler paiement">
 </FONT>
 </TD>
 <TD>
 <FONT SIZE="-1">
 Vous pouvez supprimer une adresse de paiement de votre "book".<BR>
  [loop arg="[value accounts]" ]
  <INPUT TYPE=checkbox NAME="b_nickname" VALUE="[loop-code]">
[loop-code]
  [/loop]
 <INPUT TYPE=submit NAME="mv_check" VALUE="Supprimer paiement">
 </FONT>
 </TD>
 [/if]
 </TR>
</TABLE>
[/if]

[set Envoyer]
mv_todo=submit
[/set]


<TABLE><TR><TD>
<INPUT TYPE=radio NAME=email_copy [checked email_copy 1] VALUE="1">Oui
<INPUT TYPE=radio NAME=email_copy [checked name=email_copy value=0
default=1] VALUE="0">Non
</TD><TD>
<I>M'envoyer un email de confirmation</I>
</TD></TR>
[if session logged_in]
<TR><TD ALIGN=RIGHT>
<INPUT TYPE=checkbox NAME=mv_check CHECKED VALUE="Save_database">
</TD><TD>
<I> Sauver mes informations personnelles dans la base de donn&#233;es.</I>
[set Save_database]
[userdb save]
[/set]
[/if]
</TD></TR></TABLE>



<!-- [value name=country set="[value pays]"] -->
<!-- [value name=shipping set="[value prix_port]"] -->
<!-- [value name=total-cost set="[value total-commande]"] -->
<!-- [value name=salestax set="[value ttax]"] -->




<CENTER>
<B><INPUT TYPE=submit NAME=mv_click VALUE="Envoyer"></B><BR>
<FONT SIZE="-1"><INPUT TYPE=submit VALUE="Mettre &#224; jour sans
envoyer"></FONT>
</CENTER>
<P>
<B>Commentaires, instructions, ...<BR>
<TEXTAREA NAME=gift_note ROWS=5 COLS=72>[value gift_note]</TEXTAREA>
</FORM>
<P>
<CENTER><A HREF="/">Retour &#224; l'accueil de  __COMPANY__</A></CENTER>







</body> </html>

[set checkout_profile]
name=required
s_nickname=required
address=required
city=required
country=required
zip=required
[calc]
 my $country = q{[cgi country]};
 $country =~ s/\W+//g;
 return 'phone_day=phone' unless $country =~
/^(US|CA|USA|UnitedStates|Canada)$/i;
 return "state=state_province\nzip=zip\nphone_day=phone_us";
[/calc]
email=required
email=email
&fatal = yes

&set=mv_payment Credit Card ([default mv_credit_card_type unknown])

[comment][/comment]

mv_credit_card_number=required

mv_credit_card_exp_year=required
mv_credit_card_exp_month=required

&final = yes
&set=mv_email [value email]

[/set]


&final = yes
&set=mv_email [value email]

[/set]





Search for: Match: Format: Sort by: