Hi...
not everything is perfectly... :rolleyes:
In login.php i set as follows:
$error = false;
if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
$password = tep_db_prepare_input($HTTP_POST_VARS['password']);
//firsttime user
if ($check_prevord[0] < 1) {
$first_time_customer = true;
} else {
$first_time_customer = false;
}
tep_session_register('first_time_customer');
// Check if email exists
$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
if (!tep_db_num_rows($check_customer_query)) {
and in shopping_cart.php
$any_out_of_stock = 0;
$products = $cart->get_products();
//first order
if($first_time_customer)
{
if ($check_prevord[0] < 1) {
$easy_discount->set('CQTY','5,00 Euro Eröffnungrabatt',5);
} else {
$easy_discount->remove_type('CQTY');
}
}
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
The problem is, that the customer get the discount everytime, also when he is logged out and came back....
Where is the mistake, could you help me please?
Regards
Gerd