Guest Posted February 17, 2009 Share Posted February 17, 2009 I am sure I have done this before but since updating the module have overwritten the code. The problem is that when someone purchases via PayPal the stock is deducted which is fine but when the level reaches zero the product is then taken out of stock. I would rather the product to still show on my site. I only wish the stock to be deducted. Anyone know what code to change ? Thanks. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2009 Share Posted February 17, 2009 I am sure I have done this before but since updating the module have overwritten the code. The problem is that when someone purchases via PayPal the stock is deducted which is fine but when the level reaches zero the product is then taken out of stock. I would rather the product to still show on my site. I only wish the stock to be deducted. Anyone know what code to change ? Thanks. OK sorted it. This is the code to remove. if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) { tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.