minglou Posted May 16, 2003 Share Posted May 16, 2003 1. copy this code near your in_cart button in product_info.php, actually you can add this code anywhere. --------------------------------------------- <input type="text" name="quantity" value="1" maxlength="2" size="2"> -------------------------------------------- 2. search your application_top.php find this code: --------------------------------------------- $HTTP_POST_VARS['id']))+1 -------------------------------------------- replace with this one ------------------------------------------ $HTTP_POST_VARS['id']))+$quantity ------------------------------------------ done!! Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2003 Share Posted May 17, 2003 Thanks :) Link to comment Share on other sites More sharing options...
Akshara Posted May 19, 2003 Share Posted May 19, 2003 Thank you! This is the simplest option for adding a quantity box in the product info page - it worked in less than five minutes. :D Link to comment Share on other sites More sharing options...
burt Posted May 19, 2003 Share Posted May 19, 2003 Nice little mod, thanks, but before I implement it; ~ Are you sure this causes no errors elsewhere ? ~ Do you have this working on a live site ? ~ Have there been any problems ? Link to comment Share on other sites More sharing options...
Akshara Posted May 19, 2003 Share Posted May 19, 2003 You can see it here... http://www.ethereanmusic.com/modules/catal...?products_id=41 It works fine for us so far. It's extremely simple and non-invasive compared to the other offered solutions. Link to comment Share on other sites More sharing options...
Akshara Posted May 19, 2003 Share Posted May 19, 2003 Oh yeah... it sums the items. So if you have 2 in the cart, go back to the page and input 3 more, the total in the cart will be 5 not 3. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.