dremhmrk2 Posted May 21, 2010 Posted May 21, 2010 Bummer, right? On my product_info.php, this is the code responsible for showing the add to cart drop down menu (which shows available stock) and then adding that stock to the cart. Right now, it displays the drop down menu correctly, but when a customer attempts to add, say 2, 3 or 10 items to the cart, only one item is added. I'm sure it's a relatively easy fix, I'm just not seeing it. <td class="main"> <?php if ($product_info['products_quantity'] - $product_info['products_ordered'] == 0) { echo TEXT_PRODUCT_STOCK; if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available']));} } else { echo "<select size=\"1\" name=\"quantityTop\" id=\"quantityTop\" onChange=\"selectEventTop(this)\">"; for ($i=1; $i <= $product_info['products_quantity'] - $product_info['products_ordered']; $i++) { if($i > 20)break; echo "<option>".$i."</option>"; } echo "</select>"; } ?> </td> Thanks for your help folks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.