Latest News: (loading..)

babykitty

Members
  • Content count

    7
  • Joined

  • Last visited

About babykitty

Profile Information

  • Real Name
    S Karras
  1. OK, hopefully you read this before you reply to the post above...as I was tinkering I realized I had spaces after the ?> ending, and it does not like this. I corrected them, as a few more popped up and I currently have no warrning. Thank you very, very much and will see how it all works now. And if no one has told you today...you are awesome!
  2. HI, Sorry about the file, I took a guess that you had the line right and file wrong, even though you took a piece of each, Here is the admin/includes/filenames.php. The reason the number changed was that I added a space to see if it would make a difference. The only thing that confuses me here, is that the error is on the line beyond the last line?!? when I do my counting. <?php /* $Id: filenames.php,v 1.1 2003/06/20 00:18:30 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // define the filenames used in the project define('FILENAME_BACKUP', 'backup.php'); define('FILENAME_BANNER_MANAGER', 'banner_manager.php'); define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php'); define('FILENAME_CACHE', 'cache.php'); define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_CATEGORIES', 'categories.php'); define('FILENAME_CONFIGURATION', 'configuration.php'); define('FILENAME_COUNTRIES', 'countries.php'); define('FILENAME_CURRENCIES', 'currencies.php'); define('FILENAME_CUSTOMERS', 'customers.php'); define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DEFINE_LANGUAGE', 'define_language.php'); define('FILENAME_FILE_MANAGER', 'file_manager.php'); define('FILENAME_GEO_ZONES', 'geo_zones.php'); define('FILENAME_LANGUAGES', 'languages.php'); define('FILENAME_MAIL', 'mail.php'); define('FILENAME_MANUFACTURERS', 'manufacturers.php'); define('FILENAME_MODULES', 'modules.php'); define('FILENAME_NEWSLETTERS', 'newsletters.php'); define('FILENAME_ORDERS', 'orders.php'); define('FILENAME_ORDERS_INVOICE', 'invoice.php'); define('FILENAME_ORDERS_PACKINGSLIP', 'packingslip.php'); define('FILENAME_ORDERS_STATUS', 'orders_status.php'); define('FILENAME_POPUP_IMAGE', 'popup_image.php'); define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php'); define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SERVER_INFO', 'server_info.php'); define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php'); define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php'); define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php'); define('FILENAME_TAX_CLASSES', 'tax_classes.php'); define('FILENAME_TAX_RATES', 'tax_rates.php'); define('FILENAME_WHOS_ONLINE', 'whos_online.php'); define('FILENAME_ZONES', 'zones.php'); //kgt - discount coupons define('FILENAME_DISCOUNT_COUPONS','coupons.php'); //end kgt - discount coupons ?> Thanks
  3. Ok, I have still been tinkering, but no luck as of yet. I still have the code as seen below. I had posted what was on line 67 in in the admin/includes/functions/sessions.php file above and it was : return session_start(); The whole file for this is posted below my errors that I am receiving. Hopefully you can spot something I dont see. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/filenames.php:58) in /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/filenames.php:58) in /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/functions/sessions.php on line 67 sessions.php file <?php /* $Id: sessions.php,v 1.9 2003/06/23 01:20:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if (STORE_SESSIONS == 'mysql') { if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) { $SESS_LIFE = 1440; } function _sess_open($save_path, $session_name) { return true; } function _sess_close() { return true; } function _sess_read($key) { $qid = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "' and expiry > '" . time() . "'"); $value = tep_db_fetch_array($qid); if ($value['value']) { return $value['value']; } return false; } function _sess_write($key, $val) { global $SESS_LIFE; $expiry = time() + $SESS_LIFE; $value = $val; $qid = tep_db_query("select count(*) as total from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'"); $total = tep_db_fetch_array($qid); if ($total['total'] > 0) { return tep_db_query("update " . TABLE_SESSIONS . " set expiry = '" . tep_db_input($expiry) . "', value = '" . tep_db_input($value) . "' where sesskey = '" . tep_db_input($key) . "'"); } else { return tep_db_query("insert into " . TABLE_SESSIONS . " values ('" . tep_db_input($key) . "', '" . tep_db_input($expiry) . "', '" . tep_db_input($value) . "')"); } } function _sess_destroy($key) { return tep_db_query("delete from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'"); } function _sess_gc($maxlifetime) { tep_db_query("delete from " . TABLE_SESSIONS . " where expiry < '" . time() . "'"); return true; } session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); } function tep_session_start() { return session_start(); } function tep_session_register($variable) { return session_register($variable); } function tep_session_is_registered($variable) { return session_is_registered($variable); } function tep_session_unregister($variable) { return session_unregister($variable); } function tep_session_id($sessid = '') { if ($sessid != '') { return session_id($sessid); } else { return session_id(); } } function tep_session_name($name = '') { if ($name != '') { return session_name($name); } else { return session_name(); } } function tep_session_close() { if (function_exists('session_close')) { return session_close(); } } function tep_session_destroy() { return session_destroy(); } function tep_session_save_path($path = '') { if ($path != '') { return session_save_path($path); } else { return session_save_path(); } } ?>
  4. Hi KGT, You have been a great help. I guess step 1A could have been step 4. I installed what you mentioned, but I also noted back in the install that that there was more to the list, do I need to install that as well? The reason I am asking is because now when I go into my commerce pannel I get this at the top. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/filenames.php:57) in /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/filenames.php:57) in /mnt/w0201/d29/s37/b0282505/www/Products/nfoscomm/catalog/admin/includes/functions/sessions.php on line 67 I went to that file and line and this is what is on line 67 (assuming I counted right) return session_start(); Thanks for the help!
  5. Ok, I got some help from my Customer support and they showed me how to do step 2 and update my PhP...but here is the problem I am having now. The manual says to go to your Catalog>Discount Coupons...well I dont seem to have the Discount Coupon show up under this heading, or any heading for that matter. I have installed it in the Modules>Order Total and given it a unique sort order. When I am in my SQL area and poking around in what is there, I can see the info that should be there as it has options to put in codes and dates, but ofcourse this cant be filled out in the SQL area. What could I try to do to get this to show up in my Catalog? I feel so close yet so far away as I have checked and double checked before posting here and must be missing something. Thankyou Muchly
  6. Ok, I dont know if I feel dumb or what, but it has already been a long day if I missed something really obvious. I am not getting an option for installing the discount coupon in Modules>Order Total because I have not been able to do step 2 of the installation where it tells you to 'run these statements via the SQL tab in phpMyAdmin.' I am using NetFirms and their Commerce Pro store. I cannot seem to find anywhere that I looked the SQL tab or a phpMyAdmin. If I could seriously be babystepped into where I could find this I would be most grateful. I see others have found this, but dont know if everyone is running the same thing. By the way, this is a great module to have...so a big thanks!
  7. Ok, I dont know if I feel dumb or what, but it has already been a long day if I missed something really obvious. I am not getting an option for installing the discount coupon in Modules>Order Total because I have not been able to do step 2 of the installation where it tells you to 'run these statements via the SQL tab in phpMyAdmin.' I am using NetFirms and their Commerce Pro store. I cannot seem to find anywhere that I looked the SQL tab or a phpMyAdmin. If I could seriously be babystepped into where I could find this I would be most grateful. I see others have found this, but dont know if everyone is running the same thing. By the way, this is a great module to have...so a big thanks!