Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Inventory is not adjusting


Recommended Posts

I have a client that has a store not adjusting her inventory when she makes a sale. This was working correctly until recently. I did not set this store up, I am just trying to fix a problem. Let me just add that our server went down a few times, not sure if that may have affected it but I have a feeling that it did. Anyhow, I checked the checkout_process.php file and everything looks alright. Here's what I found in there.

// do not decrement quantities if products_attributes_filename exists
       if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) {
         $stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty'];
       } else {
         $stock_left = $stock_values['products_quantity'];

       if ( $stock_left <= STOCK_REORDER_LEVEL ) {
         // WebMakers.com Added: add to low stock email
         $email_low_stock .=  'ID# ' . tep_get_prid($order->products[$i]['id']) . "\t\t" . $order->products[$i]['model'] . "\t\t" . $order->products[$i]['name'] . "\t\t" . ' Qty Left: ' . $stock_left . "\n";

Any suggestions on how I can get this working again? Thanks.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...