View Single Post
  #161  
Old 11-15-2005, 11:36 AM
 
NuAlpha NuAlpha is offline
 

X-Adept
  
Join Date: Aug 2003
Location: US
Posts: 598
 

Default

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.
__________________
X-Cart Pro 4.5.5 Platinum
X-Payments 1.0.6
PHP 5.3.14
MySQL 5.1.68
Apache 2.2.23