View Single Post
  #162  
Old 11-15-2005, 01:17 PM
 
technicaldata technicaldata is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 32
 

Default

Quote:
Originally Posted by NuAlpha
Quote:
Originally Posted by Light Speed
For some reason my inventory was off and Part B is not in stock.

This already causes problems with customers adding an item to their cart and the product just happens to go out of stock right before they hit the "add to cart" button. Rather than an intelligent and comprehendable message about the product now being out of stock when they add it to their cart, they get a message saying their cart is empty. The frustrated customer then hits the back button and tries to add it over and over again, becomes frustrated and gives up their desire to ever do business with the store again, figuring their shopping cart system doesn't work. This is even worse when the customer is in the middle of checkout and suddenly the product disappears.

Carrying over 100,000 products we get emails from baffled customers regularly. I have started checking when this happens by the presence of the line "Invalid argument supplied for foreach()" in relation to "$productindexes" in "cart.php" in our error logs and the frequency that it occurs is about every 3-4 days.

I concur, and I don't understand why this happens either. If a customer tries to add a product that is out of stock then when the cart comes up there should be a dialog_tools message that tells them that the product they just tried to add is out of stock. Also, when a customer logs in after adding items to their cart, but then logs out the items are saved to the database and the cart is cleared. If the customer logs back in, then the items are recovered and are viewable. However, if a customer adds more items to their cart while logged out, and then logs back in, then the items in the database are lost, replaced by the new items that were selected while logged out. This is a tad bit screwy, and can frustrate a user who doesn't know what's going on. Is there any known hack or workaround for either of these problem anybody? Thanks Y'all.
__________________
X-Cart Version 4.0.17
Red Hat Enterprise Linux Host
Windows XP Pro running XAMPP Dev Platform
X-RMA 4.0.17
X-AOM 4.0.17
X-Configurator 4.0.17