osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> rediriger une page suivant le montant
badibad
posté 15 Jun 2007, 10:55
Message #1


Ceinture orange+ OSC
Icône de groupe

Groupe : Membres
Messages : 309
Inscrit : 20-January 05
Lieu : Oyonnax
Membre no 4446



bonjour

Voilla j'essaye de rediriger une page suivant le montant du client donc j'ai fait ce code
CODE
<?php

  require('includes/application_top.php');

  $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
  $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'");

  include(DIR_WS_CLASSES . 'order.php');
  $order = new order($oID);

$montant = $order->info['total'];
tep_session_register('orders_total');
$orders_id=$insert_id;
tep_session_register('orders_id');

if ($this->enabled == true) {
if ($order->info['total'] <= 1000) {
if ($this->enabled = false){
if ($this == false( tep_redirect('createPOaccount1.php')));
if ($this == true( tep_redirect(FILENAME_CREATEPOACCOUNT )));
}
  }
}

?>


mais la page reste bloquer
merci d'avance de votre aide
Go to the top of the page
 

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 26th May 2013 - 02:46
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)