osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

I need help!

This is a discussion on I need help! within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I have a client, who insists that her customers are getting mixed up carts. She said that the cart will ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-13-2007, 03:42 PM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Arrow I need help!

I have a client, who insists that her customers are getting mixed up carts. She said that the cart will delete items on random, add items on random.

Here is a portion of an email from one of her customers:

i had alot of problems with the web site it kept putting my previous order on my new order, and would drop some of the items in my cart when i would go to another page

~~~~~~~~~
This does not happen with all customers, she has had two or three large orders today alone and steadily gets orders with quite a few customers throughout each day. I have checked to make certain that there is no session ids hardcoded into her site anywhere at all. I have checked the search engines to make sure there are no session ids that are linked in the search engines, nothing there that I could find.

She also checked today and said she saw that there were two carts with identical ip addresses in there at the same time but each cart had different items in it?


What do I check next?

Last edited by countingsheep; 04-13-2007 at 03:44 PM. Reason: Addition to questions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-13-2007, 07:30 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: I need help!

Your client hardcoded session ids somewhere and multiple customers are getting the same session id, thus they can see whatever else was put in that sessions cart by someone else. Look through all the custom pages and remove any hardcoded session IDs from any links.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-14-2007, 07:13 AM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: I need help!

Hi Michael, I have already checked the entire site for any session ids.. just to make sure I am checking the right thing, a session id is a link that looks like this:
http://www.website.com/shop/index.ph...61867784711aad

and instead of having the session id, it should look like this:

http://www.website.com/shop/index.php?cPath=1

Am I right? If so, there is nothing in there with the session ids linked. I double checked everything. If I am wrong, please let me know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-14-2007, 07:41 AM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Arrow Re: I need help!

After searching into things more, I need to know if I have the following set up correctly:
in her admin, for the sessions, heres what I have:

Sessions


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

In her includes/configure.php file here is what I have:




<?php
/*
osCMax v2.0, Open Source E-Commerce Solutions
osCommerce Documentation by OSCdox :: osCommerce and osCMax installation and users manual, discussion forums (News)

Copyright (c) 2005 osCMax

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.plumpurdy.com/'); // eg, cPanelŽ - should not be empty for productive servers
define('HTTPS_SERVER', 'https://black.countingsheepwebdesigns.com/~plumrm/'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '.plumpurdy.com');
define('HTTPS_COOKIE_DOMAIN', '.countingsheepwebdesigns.com');
define('HTTP_COOKIE_PATH', 'shop/');
define('HTTPS_COOKIE_PATH', 'shop/');
define('DIR_WS_HTTP_CATALOG', 'shop/');
define('DIR_WS_HTTPS_CATALOG', 'shop/');
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/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/home/plumrm/public_html/shop/');
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', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-14-2007, 08:51 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: I need help!

You need to change this:
Session Directory nothing

To a valid writable directory

or change this to 'mysql'

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to michael_s For This Useful Post:
countingsheep (04-14-2007)
  #6  
Old 04-14-2007, 08:59 AM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: I need help!

What about this part:
Cache


Use Cache false
Cache Directory I have nothing in there, does that need to be changed?


And which is better for the stored sessions? Mysql or a directory?

Last edited by countingsheep; 04-14-2007 at 09:04 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 04-14-2007, 09:17 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: I need help!

That is the only thing that can cause mixed sessions. Two or more people getting the same session ID. The only way this is possible is if the session ID is hardcoded in a url somewhere.

It could be indexed that way in a search engine, or somewhere on your site (or another site where someone posted a link with a session ID in it).

You could turn on 'Recreate Session' and when a users tries to check out, it doesn't matter what their initial session was, it will give them a new one. That will solve the issue once an for all.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 04-16-2007, 08:06 PM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: I need help!

Hi Michael I have included the option for recreating the sessions, however, the cart is still not including certain items. Are there symbols that conflict with the programming that may cause items to not be added to the cart? Or what else can I look for?

UPDATE: Ok, I removed symbols like these . ' # from the title of products as well as some symbols in the product descriptions that were in question, she has symbols in other product titles. I was then able to add all products the customer had attempted to add, signed into my account, trying to checkout and am unable to get past this:

This is currently the only shipping method available to use on this order.

United States Postal Service
An error occured with the USPS shipping calculations.
If you prefer to use USPS as your shipping method, please contact the store owner.

I verfied that my account has the correct shipping address as well as zip code and verified that her USPS was set up correctly. This WAS working she has had 1021 orders so far.

Whats next?

Last edited by countingsheep; 04-16-2007 at 09:06 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 04-18-2007, 06:26 AM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Exclamation Re: I need help!

Ok, after a couple days of testing things, removing symbols we thought we had the problem remedied. However, on the side bar, we had put a couple items that we were "featuring" and hardcoded the links to them. There was no session id in the link, so, when a person would click on one of the items, add it to cart, then another item that was listed in the actual category to add to cart, all went well, then when they went back to the hardcoded links to add the second hardcoded linked item to the cart, it would delete the two previous items from the cart. So, I am assuming that they had a session id going with the first two items, then when they clicked on the second hard coded item, it cleared their session as if they were starting over. Am I right in that assumption?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 05:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax