ecroswell21 Posted June 15, 2010 Posted June 15, 2010 What's the best way to allow a customer to change the quantity without having to add the item to the cart and updating the quantity? Thanks.
Guest Posted June 15, 2010 Posted June 15, 2010 Erik, Try this: http://addons.oscommerce.com/info/4720 Chris
knifeman Posted June 15, 2010 Posted June 15, 2010 What's the best way to allow a customer to change the quantity without having to add the item to the cart and updating the quantity? Thanks. This mod: http://addons.oscommerce.com/info/5553 adds a quantity box to the product info page. There is another that I installed that adds a drop down to the shopping cart page. It auto updates when a number is selected. http://addons.oscommerce.com/info/1518 Tim
ecroswell21 Posted June 15, 2010 Author Posted June 15, 2010 Chris, that one lets the customer update the quantity only once its in the cart, correct? I was looking for one that would allow a customer to assign a quantity at the Product Info page, before adding it to the cart. Erik
rescuestat Posted June 16, 2010 Posted June 16, 2010 Chris, that one lets the customer update the quantity only once its in the cart, correct? I was looking for one that would allow a customer to assign a quantity at the Product Info page, before adding it to the cart. Erik Hi Erik, REAL simple way of doing it...add a quantity input box to product_info.php page. FIRST THING.....always back up any file before you change it. Search for the following code in your product_info.php page.. </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); And insert this code just before the above code... <span class="main" style="margin-left: 5px;"><b>Quantity: </b></span><input type="text" name="quantity" value="1" maxlength="2" size="2"><br> You can change the value to whatever you what the default quantity to be. You can get fancy with setting a style class or doing any number of things, but this is the basics. It doesn't get much simpler. Frank
Guest Posted June 16, 2010 Posted June 16, 2010 Or this for Product Info Page: http://addons.oscommerce.com/info/7430 Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.