Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Out of Stock


Guest

Recommended Posts

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.

Link to comment
Share on other sites

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']) . "'");

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...