zebraplayer Posted October 20, 2006 Posted October 20, 2006 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. Quote
zebraplayer Posted October 23, 2006 Author Posted October 23, 2006 Can no one help me with this or point me in the right direction? Any help at all is appreciated. Quote
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.
Note: Your post will require moderator approval before it will be visible.