prepare( "UPDATE products SET status = :status, stock = :stock WHERE id = :id" ); $stmt->bindValue(':status', $status); $stmt->bindValue(':stock', $stock, PDO::PARAM_INT); $stmt->bindValue(':id', $productId, PDO::PARAM_INT); $stmt->execute(); flash_set('success', 'Product updated.'); } else { flash_set('error', 'Product not found.'); } header('Location: /product.php?id=' . $productId); exit; } $product = $productId ? get_product($productId) : null; if (!$product) { render_header('Product not found'); ?>

Product not found

The requested product does not exist.

Back to catalog

SKU

Store:

Price

Stock on hand

Status

Update inventory

Use this for quick stock corrections before orders are fulfilled.