Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

zodis2

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  1. zodis2

    NEW! Complete Order Editing Tool!

    1.73 or 1.75 both have same inventory bug
  2. zodis2

    NEW! Complete Order Editing Tool!

    Or it could be some kind of while or for syntax that is running more than it should.
  3. zodis2

    NEW! Complete Order Editing Tool!

    Version: 1.75a Oscommerce version: Fresh installation of oscommerce 2.2 Milestone 2 Bug description: Product inventory bug. If I delete the first product in an order by setting the quantity to zero the inventory changes by -1, BUT, edit_orders.php also changes the second products inventory by -1. The secound product is still visual in the order but the inventory has been changed by -1. Does anyone have any id?as how to fix this problem? Also tried earlier versions of edit_orders.php but they seems to have the same problem. I tried to isolate the problem lines, and I think this is the problem lines: } else { // b.) null quantity found --> delete $Query = "delete from " . TABLE_ORDERS_PRODUCTS . " where orders_products_id = '$orders_products_id';"; tep_db_query($Query); $order = tep_db_fetch_array($order_query); if ($products_details["qty"] != $order['products_quantity']){ $quantity_difference = ($products_details["qty"] - $order['products_quantity']); tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = products_quantity - " . $quantity_difference . ", products_ordered = products_ordered + " . $quantity_difference . " where products_id = '" . (int)$order['products_id'] . "'"); } $Query = "delete from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_products_id = '$orders_products_id';"; tep_db_query($Query);
×