homewetbar Posted December 19, 2004 Posted December 19, 2004 Hello, What I'm trying to do is set my checkout page to display various ship times dependant upon the # of item in stock. I've done this on the product page but I cannot figure out the logic on the shopping_cart.php page instead of using $product_info['products_quantity'] to determine the products stock I must have to use something else involving the $products[$i]['quantity'] variable or another variable I don't know about. For example, if the product stock is for -10000 I want it to display ships in 1-2 weeks or if it was a positive number display ships in 1-2 days.... This is what I'm trying to use on the shopping_cart.php page but it is not working to check the stock... if (($products[$i]['quantity']) < -1) { $products_name .= 'test'; } Any ideas on how to make this work would be much appreciated! :thumbsup: Thanks! Most Valuable OsCommerce Contributions: Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294 FedEx Automated Labels -- Contribution 2244 RMA Returns system -- Contribution 1136 Sort Products By Dropdown -- Contribution 4312 Ultimate SEO URLs -- Contribution 2823 Credit Class & Gift Voucher -- Contribution 282 Cross-Sell -- Contribution 5347
Recommended Posts
Archived
This topic is now archived and is closed to further replies.