Jump to content

2-b-fit

Members
  • Content count

    7
  • Joined

  • Last visited

Profile Information

  • Real Name
    Bent Bjoernskov
  1. 2-b-fit

    Get 1 Free

    "Get 1 free 1.1b" seems to be empty to me!? Rgds. Bent Bjørnskov
  2. 2-b-fit

    Multi-Stores Multiple Shops Support

    Prices $0 I have implemented the MS-contrib and thereby also the M-S_pricing part. Now I should like to also put in the contrib; http://www.oscommerce.com/community/contributions,1826 in order to get rid of prices $0. I run into problems everywhere the function getPriceStringShort placed in catalog/includes/classes/price_schedule.php is called. Precicely it have problems changing the files: catalog/includes/boxes/ whats_new.php catalog/includes/modules/ new_products.php product_listing.php that has to be changed according to the 1826 contrib. Anyone else ran into this and have found a solution to combine the two contribs? Kind regards Bent Bj?rnskov
  3. 2-b-fit

    Order IP Recorder v1.0

    Hi Steve Thank you for your kind coorporation effort, but last night I found the error in my code. Due to the "reverse" explanation in the install instruction I left out this line: $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"]; in the catalog/checkout_process.php and thereby also missed out the recording of the IP-address. I also had to make some other small addjustments to the code in order to get the right looks, but theese were mainly of the typograpfical kind. Would be nice if someone dit a work-over of the install instruction, but at least now the things work for me. Rgds. Bent Bj?rnskov
  4. 2-b-fit

    Order IP Recorder v1.0

    Still no recording in the database of the IP. Only the ISP is recorded! I have a feeling that it has something to do with this section in the Install.txt: __________________________________________________________________ (5) catalog/checkout_process.php * FIND: include('includes/application_top.php'); * CHANGE TO: include('includes/application_top.php'); $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"]; $client = gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]); $str = preg_split("/\./", $client); $i = count($str); $x = $i - 1; $n = $i - 2; $isp = $str[$n] . "." . $str[$x]; /* Version 1.2 */ FIND AND DELETE: $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"]; REPLACE WITH ABOVE * FIND: 'currency_value' => $order->info['currency_value'); * CHANGE TO: 'currency_value' => $order->info['currency_value'], 'ipaddy' => $ip, 'ipisp' => $isp); /* Version 1.2 */ FIND: 'ipaddy' => $ip); REPLACE WITH: 'ipaddy' => $ip, 'ipisp' => $isp); ----------------------------------------------------------------------------------------- Any suggestions?
  5. 2-b-fit

    Order IP Recorder v1.0

    Seems to work now :rolleyes: What I found was an error in my correction of the catalog/admin/includes/classes/order.php In the instruction it says: --------------------------------------------------------------------- AFTER THE LAST FIELD NAME JUST LIKE THE NEXT ONE ADD: ", ipaddy, ipisp" without quotes --------------------------------------------------------------------- but since this this is supposed to be put in before the field last_modified I ended up without the comma after ipisp and the things did not work. Here you have the whole line that works (line 29 in my file): __________________________________________________________________ $order_query = tep_db_query("select customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, currency, currency_value, date_purchased, orders_status, ipaddy, ipisp, last_modified from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'"); __________________________________________________________________ Rgds. Bent Bj?rnskov
  6. 2-b-fit

    Order IP Recorder v1.0

    I also expirience the same missing display of the IP and ISP in the Admin section and that id after I indstalled the version 1.2 with the ISP extra. Up until that moment I did not se the IP in the Admin section either, but it was recorded in the database allright. After the 1.2 installation no IP is stored anymore, but the ISP is recordes alright in the database. But no show in the Admin! Rgds. Bent Bj?rnskov www.2-b-fit.dk info@2-b-fit.dk
×