Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello and thank you for reading.

 

I hope someone can point out what is wrong with the following code. I have searched for others with the same issue and the one guy that had the same problem got no response. Please help!

 

I am getting the following error:

 

Warning: Missing argument 3 for tep_check_stock() in ... /includes/functions/general.php on line 133

 

Below is the section of code where the error supposedly resides. The uncommented "function" line is line 133.

 

// Check if the required stock is available
// If insufficent stock is available return an out of stock message

// Yuval - Start - Fix a bug:: check stock per product attribute quantity
//  function tep_check_stock($products_id, $products_quantity) {
 function tep_check_stock($products_id,$products_attributes_id, $products_quantity) {
$stock_left = tep_get_products_stock($products_id, $products_attributes_id) - $products_quantity;
//	$stock_left = tep_get_products_stock($products_id) - $products_quantity;
// Yuval - End - Fix a bug:: check stock per product attribute quantity

 

Thanks again for your time.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...