/
commander_fin.php
53 lines (45 loc) · 1.76 KB
/
commander_fin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
include ("kernel/main.php");
include ("_affiche_vignette.php");
# Pas loggué...
if (!$_COMPTE) $Navig->fix_page_demande_connect_compte(true);
# Caddie vide...
if (!$Caddie->infos['nb']) $Navig->redirect("caddie.php");
//
// Variables...
//
session_var("mode_paiement_fin", 0, 'I');
if (!$mode_paiement_fin) $Navig->redirect("caddie.php");
session_var("id_commande_fin", 0, 'I');
# Vider Caddie paiement par chèque...
if ($mode_paiement_fin==2) $Caddie->vider();
# Historique...
$titre_historique = "Commander";
# CB...
if ($mode_paiement_fin==$_CB) extract($_SESSION['pay']);
//////////////////////////////////////////////////
?>
<div class="catalogue clearfix">
<div class="head">Confirmation de commande</div>
<div class="padding">
<?php if ($mode_paiement_fin==$_CB) { // CB... ?>
<h2 class="header2">>> Commande Par Carte Bancaire</h2>
<?php include ("kernel/pay/call_request.php"); ?>
<?php } ?>
<?php if ($mode_paiement_fin==$_CHEQUE) { // CHEQUE... ?>
<h2 class="header2">>> Commande Par Chèque</h2>
<p>Votre commande par chèque a bien été enregistrée.</p>
<p>Elle ne sera définitivement enregistrée qu'à réception de votre chèque d'un montant du total de votre commande, libellé à l'ordre de : <b>UNIVERS DISCOUNT</b></p>
<p>à l'adresse : <br>
<?php echo nl2br($_PAIEMENT_CHEQUE_ADRESSE); ?></p>
<p><a href="javascript:facture('<?php echo $id_commande_fin; ?>');"><b>Cliquez-ici</b></a> pour imprimer votre facture.</p>
<p>Retrouvez l'ensemble de vos factures dans <a href="compte.php"><b>votre compte</b></a>.</p>
<?php } ?>
</div>
</div>
<?php
modele_page("_modele_page.php", "Commander");
# RAZ...
$mode_paiement_fin = 0;
$id_commande_fin = 0;
?>