Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Missing argument 3 for tep_check_stock()


*c57.us*

Recommended Posts

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

 

Line 135 is the uncommented line that starts with function

 

////

// 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_quantity;

$stock_left = tep_get_products_stock($products_id, $products_attributes_id) - $products_quantity;

// Yuval - End - Fix a bug:: check stock per product attribute quantity

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