You could try this new test ...
Put all your files back how they were and just make this one change to the file:
/includes/functions/functions_lookups.php
And add the code in RED:
Code:
function zen_check_stock($products_id, $products_quantity) {
//$stock_left = zen_get_products_stock($products_id) - $products_quantity;
$stock_left = zen_get_products_stock($products_id) - $_SESSION['cart']->in_cart_mixed($products_id);
$out_of_stock = '';
if ($stock_left < 0) {
$out_of_stock = '<span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>';
}
return $out_of_stock;
}
Just to that one function and see if it fixes everything from the PayPal button, to shopping_cart to checkout_shipping, to checkout_payment to checkout_confirmation and ipn_main_handler...