Full service web hosting, great prices and support. Starts at $1.99/month!
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Shopping cart deleted w/ new customer signup

  1. #1
    RocksIT
    Guest


    Default Shopping cart deleted w/ new customer signup

    Hi I'm actually using the creloaded version of oscommerce. wbut I think mayn other people are having this problem, when A customer shops at my store first, then creates an accountr, their shopping cart is emptied. and they have to start over, is there a way to change my settings to allow this but not disrupt checkout like "force cookies" seems to do?

  2. #2
    Paulblo
    Guest


    Default Ditto

    Hell I am having a simular problem. Are you using SSL? I think it has something to do with the session information being transferred from http to https and the other way around.

    Try to disable SSL in your configure.php file (/catalog/includes/configure.php) and see if it behaves the same... if it is like mine, it won't have the same problem. I have been trying to figure out what is going on too....

    Keep me posted...

    Thanks,

    Paul

  3. #3
    RocksIT
    Guest


    Default

    yes i am using SSL as welll since its a secure site with customers rental information etc...

  4. #4
    RocksIT
    Guest


    Default

    Warning: main(/Rentals/templates/Original/boxes.tpl.php): failed to open stream: No such file or directory in /var/chroot/kenstanton/home/kenstanton/html/Rentals/includes/template_application_top.php on line 92
    help what did I do?? I was just editing includes/configure and admin/includes/configure & I started ghetting this!

    Fatal error: main(): Failed opening required '/Rentals/templates/Original/boxes.tpl.php' (include_path='.:/usr/share/pear') in /var/chroot/kenstanton/home/kenstanton/html/Rentals/includes/template_application_top.php on line 92

  5. #5
    makemethis
    Guest


    Default

    Pulling SSL from the config isn't the answer to problem. That is a bandaid. Look in your admin settings...one is called force cookies...try changing that...if it doesn't work...change it back...also look at sessions setting...one way it writes to files and the other way to mysql...good luck and remember to always save the original file on the ones you change so you can go back to it if what you change doesn't work

  6. #6
    gravenimage
    Guest


    Default

    If you're using a shared SSL certificate, make sure you change your HTTPS_COOKIE_DOMAIN to match your HTTPS_SERVER domain in configure.php so your session will be carried across. I've seen several configure.php files posted here that made that same mistake. Sessions use cookies, and cookies are inherently tied to domains such that a cookie from one domain cannot be accessed by another domain. So if both HTTPS domain settings do not match, the cookie will be created for one domain, and inaccessible by the other when hopping back and forth between http and https protocols.

    Correct config example:
    Code:
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
      define('HTTP_SERVER', 'http://webpage.com'); // eg, http://localhost - should not be empty for productive servers
      define('HTTPS_SERVER', 'https://www.sslserver.com/webpage'); // eg, https://localhost - should not be empty for productive servers
      define('ENABLE_SSL', true); // secure webserver for checkout procedure?
      define('HTTP_COOKIE_DOMAIN', 'webpage.com');
      define('HTTPS_COOKIE_DOMAIN', 'www.sslserver.com');
    ...
    ...
    ...
    The behavior I was seeing was very similar to what I've seen others report elsewhere in the forums:
    - Customer logs and adds some things to the cart
    - Customer goes to check out and is met with the login screen again, and after logging in again, their cart is empty.
    - The cycle repeats itself

    I just spent an hour and a half troubleshooting this issue and couldn't find this simple answer anywhere in the forums to what seems to be a very commonplace problem. Granted, there are several things which can cause similar behavior in OSC, so here's one more possible solution. Hope it helps!

  7. #7
    RocksIT
    Guest


    Default

    define('HTTPS_COOKIE_DOMAIN', 'www.sslserver.com'); how would I put my secure server information the actual server domain.. mydomain.com doesn't seem to work..

  8. #8
    gravenimage
    Guest


    Default

    If you're using a shared certificate (if you haven't purchased one, you probably are) then you'll need to get the SSL server URL from your webhost. The only way you can use your own domain for the SSL domain is if you're not on a shared one. If you still have problems after getting and plugging in that info, reply and attach your configure.php file.

    Good luck!

  9. #9
    RocksIT
    Guest


    Default

    ok just double checked it is our own SSL certificate and www.kenstanton.com is the domain name..
    here's my configure.php file.. i'm double checking my other files trying to make sure I didn't miss anything else..

    <?php
    /*
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.kenstantonmusic.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://www.kenstantonmusic.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'http://kenstantonmusic.com');
    define('HTTPS_COOKIE_DOMAIN', 'https://www.kenstantonmusic.com');
    define('HTTP_COOKIE_PATH', '/Rentals/');
    define('HTTPS_COOKIE_PATH', '/Rentals/');
    define('DIR_WS_HTTP_CATALOG', '/Rentals/');
    define('DIR_WS_HTTPS_CATALOG', '/Rentals/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

    //Added for BTS1.0
    define('DIR_WS_TEMPLATES', 'templates/');
    define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
    define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
    //End BTS1.0
    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/var/chroot/kenstanton/home/kenstanton/html/Rentals/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'myusername');
    define('DB_SERVER_PASSWORD', 'mypassword');
    define('DB_DATABASE', 'mydatabase');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    ?>

  10. #10
    RocksIT
    Guest


    Default

    I did a re-install and re-uploaded the create account & create account.tpl scripts from my test server and same issue

    so think maybe its a sessions settings issue???

    and below is my current config file since re-install

    have them set as follows

    Session Directory /tmp
    Force Cookie Use False
    Check SSL Session ID True
    Check User Agent False
    Check IP Address False
    Prevent Spider Sessions True
    Recreate Session True

    <?php
    /*
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.kenstantonmusic.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://www.kenstantonmusic.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'www.kenstantonmusic.com');
    define('HTTPS_COOKIE_DOMAIN', 'www.kenstantonmusic.com');
    define('HTTP_COOKIE_PATH', '/Rentals/');
    define('HTTPS_COOKIE_PATH', '/Rentals/');
    define('DIR_WS_HTTP_CATALOG', '/Rentals/');
    define('DIR_WS_HTTPS_CATALOG', '/Rentals/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

    //Added for BTS1.0
    define('DIR_WS_TEMPLATES', 'templates/');
    define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
    define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
    //End BTS1.0
    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/var/chroot/kenstanton/home/kenstanton/html/Rentals/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'myusername');
    define('DB_SERVER_PASSWORD', 'mypassword');
    define('DB_DATABASE', 'mydatabase');
    define('USE_PCONNECT', 'true'); // use persistent connections?
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    ?>

Page 1 of 2 12 LastLast

Similar Threads

  1. Shopping cart
    By decoster in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 12-05-2006, 09:12 AM
  2. Which shopping cart should I use? Please help.
    By earth-friendly in forum osCmax v2 Customization/Mods
    Replies: 6
    Last Post: 07-16-2006, 12:36 PM
  3. Can not add items to shopping cart
    By sjleather in forum osCMax v1.7 Installation
    Replies: 8
    Last Post: 10-10-2005, 10:53 AM
  4. Can't login/signup new customer
    By jbianco in forum osCommerce 2.2 Installation Help
    Replies: 7
    Last Post: 04-06-2004, 12:56 PM
  5. have shopping cart on a schedule
    By lopeel in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 10-07-2003, 09:28 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •