Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

chefsache

Archived
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Real Name
    Gerd
  • Gender
    Male
  • Location
    Germany

chefsache's Achievements

  1. Hi christoffer, still 5,00 EUR for everybody and everytime.... But thanks for your answer.......i´am really :wacko: in the moment..... I think i will look for another contribution at the weekend, or is there anybody out there with other idea´s ? :-) regards Gerd
  2. Hi @ all, really no ideas? Our shop starts at the 1st of September and it would be fine, when we could use this contribution :wub: ;) Thanks you....
  3. ...i think that this part is the problem: //first order if($first_time_customer) { [b]if ($check_prevord[0] < 1) {[/b] $easy_discount->set('CQTY','5,00 Euro Eröffnungrabatt',5); } else { $easy_discount->remove_type('CQTY'); } } when the user logged in, OSC checked if he is a first time customer.... and in the shopping_cart.php in the second line OSC checked again the same part with if ($check_prevord[0] < 1) { like in login.php is this right?
  4. Hi christoffer, i put it in checkout and logoff and nothing changed.....when i logged in again i get also the discount again.... hmmm...... :blush: Tanks a lot...:-)
  5. Hi @all, l looked again at the code but i saw no mistakes..... Any solutions? Thanks!
  6. 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
  7. Hi @all, first of all - everything works perfectly :-) I´ve used that code in login.php and shopping_cart.php //firsttime user if ($check_prevord[0] < 1) { $first_time_customer = true; } else { $first_time_customer = false; } tep_session_register('first_time_customer'); ----------------------------------------------- //erste Bestellung if($first_time_customer) { if ($cart->count_contents() > 0) { $easy_discount->add('NEW','10% Off New Customer',$cart->show_total()*0.10); } else { $easy_discount->remove_type('NEW'); } } My question now is if it is possible to give the discount to the net price (price without tax)? Thanks a lot and regards from Germany Gerd
×
×
  • Create New...