Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  1. revolutionsales

    How to add a input field in Payment Module

    In case anyone finds this thread, an input for a card issuer phone number isn't really necessary. The Visa and MC merchants helplines can provide you with the phone number for any domestic card.
  2. Yep, simple solutions are best. Just gave them a call and they stopped sending out gateway emails.
  3. revolutionsales

    New UPS XML Shipping Module available

    Installed UPS XML Rates and Services v1.2.6. Appears to be working, I'm getting accurate rates and delivery times in my checkout and in my shopping cart shipping calculator. Checking out with a UPS method works fine as well. However, everytime a UPS quote is requested I receive the following pair of "PHP error_log message" emails: -and- Don't know if it matters but I have all but UPS Ground and 2nd Day disabled. Does something need to be fixed or should I just ignore them since the module is working?
  4. revolutionsales

    Easy Populate & Products Attributes

    Just installed Easy Populate 2.76c and I'm having trouble downloading/creating an initial txt file due to "Maximum execution time exceeded" fatal errors. I've come across a post referencing another post that apparently described how to edit easypopulate.php to output in small enough segments. I haven't been able find this post, though, so I wonder if someone could point me in the right direction. :D
  5. revolutionsales

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    Figured it out. For some reason on the new host it's necessary for the .htaccess rewritebase to include the folder that the catalog is in as well. RewriteBase /*user account*/catalog/
  6. revolutionsales

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    I've had this contribution (v2.1c) running on my site without any problems. I'm in the process of changing hosts and after transfering all files and the database I find that ultimate SEO no longer works and all product and category pages come up as "page cannot be found". Other than this everything else works, if ultimate seo is turned off. I checked the install directions and all the file changes are there and correct. Update: I've installed a stock copy of OSC and tried installing Ultimate SEO URLs, I get the same "page cannot be found". Could this be a server problem? It seems to meet requirements, PHP Version is 4.4.4 and it's a Linux server with mod_rewrite. Anyone know where I might look to fix this?
  7. revolutionsales

    [Contribution] Session Regeneration

    The server and account names are in the links and the paths appear to be correct, I just changed them to Xs for posting here. I believe the paths are set correctly in the both configure.php. To clarify my last post, I only get 404s from all of the product and category links; anything SEO changes to html. Everything else, such as the information box links, shopping_cart, account, etc work and are in SSL.
  8. revolutionsales

    [Contribution] Session Regeneration

    With the code positioned as below I get 404s from all of the product and category links. Looks like the site is looking for html pages on the secure server and not finding them. Links look like "https://xxx.ipowerweb.com/xxx/catalog/swap-magic-c-81.html". //// // Ultimate SEO URLs v2.1 // The HTML href link wrapper function if (SEO_ENABLED == 'true') { //run chemo's code function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $seo_urls; //-MS- Enforce secure connection for logged in customers if( tep_session_is_registered('customer_id') ) { $connection = 'SSL'; } //-MS- Enforce secure connection for logged in customers EOM if ( !is_object($seo_urls) ){ if ( !class_exists('SEO_URL') ){ include_once(DIR_WS_CLASSES . 'seo.class.php'); } global $languages_id; $seo_urls = new SEO_URL($languages_id); } return $seo_urls->href_link($page, $parameters, $connection, $add_session_id); }
  9. revolutionsales

    [Contribution] Session Regeneration

    Yes, with my cookies disabled it works great. I inserted that code into catalog\includes\functions\html_output.php however it wasn't running because of the Ultimate SEO code (below). I disabled SEO and tried the site. The cart contents were maintained but I got alot of 'moving from secure to unsecure' EI prompts. Can the SEO code be modified or is there another way to enable a continues secure connection? Also, are there any disadvantages to a continuous secure connection? Would getting a dedicated SSL help? //// // Ultimate SEO URLs v2.1 // The HTML href link wrapper function if (SEO_ENABLED == 'true') { //run chemo's code function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $seo_urls; if ( !is_object($seo_urls) ){ if ( !class_exists('SEO_URL') ){ include_once(DIR_WS_CLASSES . 'seo.class.php'); } global $languages_id; $seo_urls = new SEO_URL($languages_id); } return $seo_urls->href_link($page, $parameters, $connection, $add_session_id); } } else { //run original code // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; //-MS- Enforce secure connection for logged in customers if( tep_session_is_registered('customer_id') ) { $connection = 'SSL'; } //-MS- Enforce secure connection for logged in customers EOM
  10. revolutionsales

    [Contribution] Session Regeneration

    Recreate Session has been set to False to avoid the problem. Or did you mean something else? Either way, I'll set it to true so you can see what's happending. Thanks for your help.
  11. revolutionsales

    [Contribution] Session Regeneration

    Thank you the reply, here's the info. I've also removed the links from the header. PHP Version 4.4.1 Register Globals patch isn't installed Shared SSL sessions.php: <?php /* $Id: sessions.php,v 1.19 2003/07/02 22:10:34 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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) { $value_query = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "' and expiry > '" . time() . "'"); $value = tep_db_fetch_array($value_query); if (isset($value['value'])) { return $value['value']; } return false; } function _sess_write($key, $val) { global $SESS_LIFE; $expiry = time() + $SESS_LIFE; $value = $val; $check_query = tep_db_query("select count(*) as total from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'"); $check = tep_db_fetch_array($check_query); if ($check['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() { global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS; $sane_session_id = true; if (isset($HTTP_GET_VARS[tep_session_name()])) { if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_GET_VARS[tep_session_name()]) == false) { unset($HTTP_GET_VARS[tep_session_name()]); $sane_session_id = false; } } elseif (isset($HTTP_POST_VARS[tep_session_name()])) { if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_POST_VARS[tep_session_name()]) == false) { unset($HTTP_POST_VARS[tep_session_name()]); $sane_session_id = false; } } elseif (isset($HTTP_COOKIE_VARS[tep_session_name()])) { if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_COOKIE_VARS[tep_session_name()]) == false) { $session_data = session_get_cookie_params(); setcookie(tep_session_name(), '', time()-42000, $session_data['path'], $session_data['domain']); $sane_session_id = false; } } if ($sane_session_id == false) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } return session_start(); } function tep_session_register($variable) { global $session_started; if ($session_started == true) { return session_register($variable); } else { return false; } } 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 (!empty($sessid)) { return session_id($sessid); } else { return session_id(); } } function tep_session_name($name = '') { if (!empty($name)) { return session_name($name); } else { return session_name(); } } function tep_session_close() { if (PHP_VERSION >= '4.0.4') { return session_write_close(); } elseif (function_exists('session_close')) { return session_close(); } } function tep_session_destroy() { return session_destroy(); } function tep_session_save_path($path = '') { if (!empty($path)) { return session_save_path($path); } else { return session_save_path(); } } //-MS- Add session regeneration function tep_session_regenerate() { global $SID, $navigation; if (PHP_VERSION > 4.3) { if (STORE_SESSIONS == 'mysql') { session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); } session_regenerate_id(); // set SID once, even if empty $SID = (defined('SID') ? SID : ''); $navigation->update_session(); return true; } return false; } //-MS- Add session regeneration EOM function tep_session_recreate() { if (PHP_VERSION >= 4.1) { //-MS- Add session regeneration if( SESSION_FORCE_COOKIE_USE != 'True' ) { if( tep_session_regenerate() ) return; } //-MS- Add session regeneration EOM $session_backup = $_SESSION; unset($_COOKIE[tep_session_name()]); tep_session_destroy(); if (STORE_SESSIONS == 'mysql') { session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); } tep_session_start(); $_SESSION = $session_backup; unset($session_backup); } } ?>
  12. revolutionsales

    [Contribution] Session Regeneration

    In an effort to solve a problem with multiple customers using the same session I recently turned Recreate Sessions to True, removed a LoginBox contrib and installed this contribution. I'm now seeing some unusual cart behavior with customer who already have an account. Without logging in, a customer adds any number of products to Cart -> Clicks 'Checkout' -> Logs in -> The contents of the cart are dropped. From this point, moving to any non-SSL page appears to log the customer out; the 'Log Off' link is removed. Additionally the cart contents returns to whatever it contained prior to logging in. The session id stays the same from ssl to non-ssl. And for some reason if it's a first-time customer and he/she creates an account instead, the cart contents are maintained correctly and the customer can checkout. The problem only occurs when trying to use an existing account. Changing Recreate Session to False fixes this problem. Both my configs are set to define('STORE_SESSIONS', 'mysql'); Admin/Config/Sessions are: Session Directory /tmp Force Cookie Use False Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions True Recreate Session True (but False at the moment to avoid the problem) Any help would be much appreciated.
  13. I'm using the Link Point Card Services V2 payment module and was wondering how I might go about adding an input field to the module, specifically a textbox where the customer would enter the phone number of their credit card company. The number would then be stored in the database in case the transaction needs to be verified.
  14. revolutionsales

    Credit Class/Gift Vouchers/Discount Coupons 5.10

    I'm having the same problem; click "Redeem" and I'm redirected to the login page. Click back and the coupon has been entered. It appears to be an interaction with Ultimate SEO that's causing the problem, if I turn SEO off the Redeem button works correctly. I've found several posts of this redirect problem but no solutions. Anyone know of a possible fix?