Jump to content

inquisitivemind

Members
  • Content count

    191
  • Joined

  • Last visited

Everything posted by inquisitivemind

  1. inquisitivemind

    Contribution to insert cost

    Thanks Mate ill try that
  2. inquisitivemind

    Contribution to insert cost

    Thats ok 99% of the time the price goes down so it doesnt really matter. i would like the cost so that if someone asks me if i can better the price or if i find a cheaper price somewhere else i can modify my sell price imediatly without having to search through tons of diffrent price lists look for the cost. it would also be good to have a box for supplier maybe so that i can remember which supplier had the cheaper price for that particular item.
  3. inquisitivemind

    Contribution to insert cost

    How would one create a box for the cost in both the admin and in the database to store this info? and is it possible to do something similar to the two boxes in MS2 where you could have: Sell price-Cost Price=Gross profit Thanks for you help
  4. inquisitivemind

    Login as any user with your master password..

    Hi all, My login.php doesnt look anything like this, it looks more like this: // Check that password is good if (!validate_password($password, $check_customer['customers_password'])) { $HTTP_GET_VARS['login'] = 'fail'; } else { $check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $check_customer['customers_id'] . "' and address_book_id = '1'"); $check_country = tep_db_fetch_array($check_country_query); $customer_id = $check_customer['customers_id']; $customer_default_address_id = $check_customer['customers_default_address_id']; $customer_first_name = $check_customer['customers_firstname']; $customer_country_id = $check_country['entry_country_id']; $customer_zone_id = $check_country['entry_zone_id']; tep_session_register('customer_id'); tep_session_register('customer_default_address_id'); tep_session_register('customer_first_name'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); setcookie('email_address', $email_address, time()+2592000, substr(DIR_WS_CATALOG, 0, -1)); $date_now = date('Ymd'); tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . $customer_id . "'"); How should i modify this so it will work. many thanks in advance
×