dremhmrk2 Posted October 28, 2009 Posted October 28, 2009 When a user attempts to add multiple products from our product_info.php pages, they only get one product added to their carts even when they select multiples. I beelive the problem lies in this part of the product_info.php file: <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> It will bring up a drop down showing the correct quantities available but selecting one doesnt do anything. An example of the issue: http://www.topperliquidators.com/assorted-fishing-tshirts-overstock-p-401.html thanks!
burt Posted November 10, 2009 Posted November 10, 2009 That won't do anything as all you appear to have done is made a list of product quantities you have on hand. You need to pass the quantity selected through the logic for the cart adding (application_top and shopping_cart classes as I recall).
dremhmrk2 Posted November 16, 2009 Author Posted November 16, 2009 That won't do anything as all you appear to have done is made a list of product quantities you have on hand. You need to pass the quantity selected through the logic for the cart adding (application_top and shopping_cart classes as I recall). Could you be a little more specific? I am relatively new to this.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.