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 )));
}
}
}
?>
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