Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

trophy

Members
  • Posts

    212
  • Joined

  • Last visited

Profile Information

  • Real Name
    G Andrews

Recent Profile Visitors

13,113 profile views

trophy's Achievements

  1. Does this add on round up to nearest 10 cents? If not can it be moded to do so?
  2. Yes I am very interested in this as well, it's what I need.
  3. Hello I would like to know where the files go. I am a greenie and the text with the contribution is a tad vague to me. The following files are affected by this contribution (all in the Admin section): price_updater.php (new file) GOES WHERE? price_updater.php (new file)(language file) GOES WHERE? catalog.php (modify) english.php (modify) filenames.php (modify) ========== New Files: ========== Just drop the files into the correct location. WHICH IS WHERE? The code file goes in your Admin directory WHAT CODE FILE? (Actually, into whatever you have renamed your admin directory to. You have renamed it, haven't you?) The language file goes in <admin>/includes/languages/english/. I haven't included any translations because I don't feel competent to translate this into any other languages. If you do, please include your translation in an updated version of this Contribution. Do I have to rename admin directory? Appreciate any help Gill A
  4. Yes I have that correct but when I look in catalog/includes/application_top.php I see I have loaded in the counter.php which I am thinking is in correct and I need to reload that page. Where can I go to get just that page to reload?
  5. Coopco thank you for the reply. I am confused as you mention catalog . When I connect with my site I see a blank folder, I then expand it and I see admin, cgi-bin, download, images, includes, pub. If I expand admin I see backups, images, includes. Now as I have two includes which one do I post into? Gill A
  6. Instructions below. Where is the correct location? Gill A The following files are affected by this contribution (all in the Admin section): readme.txt (this file) gpl.txt (your license) price_updater.php (new file) price_updater.php (new file)(language file) catalog.php (modify) english.php (modify) filenames.php (modify) ========== New Files: ========== Just drop the files into the correct location. The code file goes in your Admin directory (Actually, into whatever you have renamed your admin directory to. You have renamed it, haven't you?) The language file goes in <admin>/includes/languages/english/. I haven't included any translations because I don't feel competent to translate this into any other languages. If you do, please include your translation in an updated version of this Contribution.
  7. There is a file called price_updater.php (new file). I would like to know where to put it, the instructions are not that clear to me. Gill A
  8. I need some help as I have spent hours trying to get this contribution to work, I keep getting errors. I am confused as to the instructions in the first line, there is no counter in catalog/includes to copy. I don't have a catalog only an admin, is that the same as a catalog and all below it. I can't help feeling the below is missing some words or it has the wrong wording. All help greatly appreciated Gill A These are the instructions that come with the contribution. - Copy the counter.php in the catalog/includes directory. Or change it manually, see file below. - Edit catalog/includes/application_top.php Search for the who's online function call, and remove/remark it: // include the who's online functions // require(DIR_WS_FUNCTIONS . 'whos_online.php'); // tep_update_whos_online(); (Be smart, copy these lines in your clipboard....) - Edit catalog/includes/footer.php Paste the lines (without the remarks :-) just below require(DIR_WS_INCLUDES . 'counter.php'); (Important!! If you place it above this line, your counter will not work!) require(DIR_WS_INCLUDES . 'counter.php'); // include the who's online functions require(DIR_WS_FUNCTIONS . 'whos_online.php'); tep_update_whos_online(); That's all! For the manual freaks, here's the counter.php: <?php /* $Id: counter.php,v 1.5 2003/02/10 22:30:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ $wo_session_id = tep_session_id(); $known_customer_query = tep_db_query("select count(*) as count from " . TABLE_WHOS_ONLINE . " where session_id = '" . $wo_session_id . "'"); $known_customer = tep_db_fetch_array($known_customer_query); $counter_query = tep_db_query("select startdate, counter from " . TABLE_COUNTER); if ($known_customer['count'] > 0) { // User already known, don't add 1... $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter']); } else { if (!tep_db_num_rows($counter_query)) { $date_now = date('Ymd'); tep_db_query("insert into " . TABLE_COUNTER . " (startdate, counter) values ('" . $date_now . "', '1')"); $counter_startdate = $date_now; $counter_now = 1; } else { $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter'] + 1); tep_db_query("update " . TABLE_COUNTER . " set counter = '" . $counter_now . "'"); } } $counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4))); ?>
  9. Well I am now I am confused as this is what I have. Which inbcludes should I have the counter in? when I log onto my server this is what I see. - folder / - admin backups images + includes cgi -bin download fresh images + includes pub
  10. Hi Jared appreciate you help. Yes I have, this is what is in the admin/includes Gill A <?php /* $Id: counter.php,v 1.5 2003/02/10 22:30:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ $wo_session_id = tep_session_id(); $known_customer_query = tep_db_query("select count(*) as count from " . TABLE_WHOS_ONLINE . " where session_id = '" . $wo_session_id . "'"); $known_customer = tep_db_fetch_array($known_customer_query); $counter_query = tep_db_query("select startdate, counter from " . TABLE_COUNTER); if ($known_customer['count'] > 0) { // User already known, don't add 1... $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter']); } else { if (!tep_db_num_rows($counter_query)) { $date_now = date('Ymd'); tep_db_query("insert into " . TABLE_COUNTER . " (startdate, counter) values ('" . $date_now . "', '1')"); $counter_startdate = $date_now; $counter_now = 1; } else { $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter'] + 1); tep_db_query("update " . TABLE_COUNTER . " set counter = '" . $counter_now . "'"); } } $counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4))); ?>
  11. Here is the compltete contribution, counter/php. I feel pretty confident that I have done it all correct. If there is an error in the programme then I am out of my depth. - Copy the counter.php in the catalog/includes directory. Or change it manually, see file below. - Edit catalog/includes/application_top.php Search for the who's online function call, and remove/remark it: // include the who's online functions // require(DIR_WS_FUNCTIONS . 'whos_online.php'); // tep_update_whos_online(); (Be smart, copy these lines in your clipboard....) - Edit catalog/includes/footer.php Paste the lines (without the remarks :-) just below require(DIR_WS_INCLUDES . 'counter.php'); (Important!! If you place it above this line, your counter will not work!) require(DIR_WS_INCLUDES . 'counter.php'); // include the who's online functions require(DIR_WS_FUNCTIONS . 'whos_online.php'); tep_update_whos_online(); That's all! For the manual freaks, here's the counter.php: <?php /* $Id: counter.php,v 1.5 2003/02/10 22:30:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ $wo_session_id = tep_session_id(); $known_customer_query = tep_db_query("select count(*) as count from " . TABLE_WHOS_ONLINE . " where session_id = '" . $wo_session_id . "'"); $known_customer = tep_db_fetch_array($known_customer_query); $counter_query = tep_db_query("select startdate, counter from " . TABLE_COUNTER); if ($known_customer['count'] > 0) { // User already known, don't add 1... $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter']); } else { if (!tep_db_num_rows($counter_query)) { $date_now = date('Ymd'); tep_db_query("insert into " . TABLE_COUNTER . " (startdate, counter) values ('" . $date_now . "', '1')"); $counter_startdate = $date_now; $counter_now = 1; } else { $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter'] + 1); tep_db_query("update " . TABLE_COUNTER . " set counter = '" . $counter_now . "'"); } } $counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4))); ?>
  12. I have installed "Enhanced" visitor counter onto my site, When I go into admin I get an error message as below. I have checked and searched hi and lo but can not find the problem. Instalation of add on is correct, from what I can see. All help appreciated Warning: require(includes/counter.php) [function.require]: failed to open stream: No such file or directory in /home/hobbiesp/public_html/admin/includes/footer.php on line 13 Fatal error: require() [function.require]: Failed opening required 'includes/counter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hobbiesp/public_html/admin/includes/footer.php on line 13
  13. That looks like what I need. Here's hoping there is something out there.
  14. mpiscopo, I have taken on board your advise and have looked at purchasing quickbooks but there are so many different models, can you suggest which model I should get? My inventory is about 3,000 parts. Thanks.
×
×
  • Create New...